New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module-jni: add automatic conversions for date, hash, list, and object types #3026

Closed
davidnich opened this Issue Oct 4, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@davidnich
Copy link
Contributor

davidnich commented Oct 4, 2018

hash, list, date, binary

@davidnich davidnich added this to the 0.9 milestone Oct 4, 2018

@davidnich davidnich self-assigned this Oct 4, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 4, 2018

@davidnich davidnich changed the title module-jni: add automatic conversions between Qore & Java for more types module-jni: add automatic conversions between date and java.time.ZonedDateTime types Oct 4, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 4, 2018

@davidnich davidnich changed the title module-jni: add automatic conversions between date and java.time.ZonedDateTime types module-jni: add automatic conversions for date and hash types Oct 4, 2018

@davidnich davidnich changed the title module-jni: add automatic conversions for date and hash types module-jni: add automatic conversions for date, hash, and object types Oct 5, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 5, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 5, 2018

@davidnich davidnich changed the title module-jni: add automatic conversions for date, hash, and object types module-jni: add automatic conversions for date, hash, list, and object types Oct 5, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 5, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 7, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 10, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 10, 2018

refs qorelanguage/qore#3026 added Throwable to Qore function calls, u…
…pdated docs regarding weak reference handling

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 12, 2018

refs qorelanguage/qore#3026 added missing C++ exception handling for …
…native methods, implemented support for number <-> BigDecimal conversions

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 12, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 12, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 13, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 14, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 14, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 14, 2018

refs qorelanguage/qore#3026 implemented support for QoreJavaApi::call…
…FunctionSave() to allow for Qore to return objects to Java and save a strong reference in thread-local data

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 14, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 15, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 16, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 17, 2018

refs qorelanguage/qore#3026 added default byte[] -> binary conversion…
…s with a compatibility flag to maintain the old behavior

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 18, 2018

refs qorelanguage/qore#3026 implmented support for per-Program compat…
…-types settings overridingany global option, removed the unused QoreHashMap classand \

made automatic HashMap -> Hash conversions subject to the compat-types option

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 21, 2018

refs qorelanguage/qore#3026 added support for relative date/time conv…
…ersions between Java <-> Qore with a custom class

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 22, 2018

refs qorelanguage/qore#3026 updated QoreObjectWrapper::get() -> getQo…
…reObject() as Java methods cannot be overridden in child classes with a different return type

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 27, 2018

refs qorelanguage/qore#3026 simpler solution for saving strong refere…
…nces to Qore objects in thread-local data; objects are now stored in a list and prepended to the beginning so that they are destroyed in reverse order of creation (first created, last destroyed)

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 29, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Oct 29, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Nov 3, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Nov 19, 2018

davidnich added a commit that referenced this issue Nov 25, 2018

davidnich added a commit to qorelanguage/module-jni that referenced this issue Nov 25, 2018

sejvlond added a commit that referenced this issue Nov 26, 2018

refs #3026 added a move constructor to SimpleRefHolder (#3140)
* refs #3026 added a move constructor to SimpleRefHolder

sejvlond added a commit to qorelanguage/module-jni that referenced this issue Nov 26, 2018

Feature/3026 jni date (#39)
* refs #3019 fixed qore-jni.jar build and install in a predictable location
refs #3023 added the define_class() function

* refs qorelanguage/qore#3023 added missing file

* refs #3023 added new test

* refs qorelanguage/qore#3023 set program context when calling java methods

* refs qorelanguage/qore#3023 fixed define_class(); depends on a pending Qore pull request

* refs qorelanguage/qore#3026 started implementing date conversions (WIP)

* refs qorelanguage/qore#3026 date <-> ZonedDateTime conversions

* refs qorelanguage/qore#3026 started adding support for wrapping weak references to Qore objects in Java

* refs qorelanguage/qore#3026 added missing file

* refs qorelanguage/qore#3026 added new QoreArray methods

* refs qorelanguage/qore#3026 implemented Qore object <-> Java object conversions

* refs qorelanguage/qore#3026 changed QoreObject.getClassName() -> className() to align with the Qore API

* refs qorelanguaeg/qore#3026 implemented the QoreObject.instanceOf() method and fixed a reference error in Java -> Qore QoreObject conversions

* refs qorelanguage/qore#3026 added Throwable to Qore function calls, updated docs regarding weak reference handling

* refs qorelanguage/qore#3023 implemented support for defining a class and importing it from a parse cmd

* refs qorelanguage/qore#3026 added missing C++ exception handling for native methods, implemented support for number <-> BigDecimal conversions

* refs qorelanguage/qore#3026 added docs about number conversions

* refs qorelanguage/qore#3026 Qore <-> Java marshalling fixes, fixed Java -> qore array conversions

* refs qorelanguage/qore#3019 do not install qore-jni.jar, as the functionality is built in to the jni module; added Java docs to module docs

* refs qorelanguage/qore#3026 added needed warning override to compile array actions without warnings

* refs qorelanguage/qore#3019 install jar file so that java code referencing native functionality can be compiled

* refs qorelanguage/qore#3026 fixed QoreObject.className()

* refs qorelanguage/#3026 implemented the define-pending-class directive + classloader support to resolve circular references in inner classes

* refs qorelanguage/qore#3026 fixed define-pending-class with classes in packages

* refs qorelanguage/qore#3026 implemented support for QoreJavaApi::callFunctionSave() to allow for Qore to return objects to Java and save a strong reference in thread-local data

* refs qorelanguage/qore#3026 implemented support for creating Qore objects from Java

* refs #3026 fixed issues with native Java threads calling Qore functionality and setting Qore thread-local data from native Java threads

* refs qorelanguage/qore#3026 define-pending-class and thread-local data handling fixes

* refs qorelanguage/qore#3023 fixed callback test

* refs qorelanguage/qore#3026 added missing file

* refs qorelanguage/qore#3026 added default byte[] -> binary conversions with a compatibility flag to maintain the old behavior

* refs qorelanguage/qore#3026 implmented support for per-Program compat-types settings overridingany global option, removed the unused QoreHashMap classand \
made automatic HashMap -> Hash conversions subject to the compat-types option

* refs qorelanguage/qore#3026 added support for relative date/time conversions between Java <-> Qore with a custom class

* refs qorelanguage/qore#3026 updated QoreObjectWrapper::get() -> getQoreObject() as Java methods cannot be overridden in child classes with a different return type

* refs qorelanguage/qore#3019 qorelanguage/qore#3023 updated from review feedback

* qorelanguage/qore#3023 fixed namespace handling

* refs qorelanguage/qore#3026 simpler solution for saving strong references to Qore objects in thread-local data; objects are now stored in a list and prepended to the beginning so that they are destroyed in reverse order of creation (first created, last destroyed)

* refs qorelanguage/qore#3026 added support for calling Qore static methods from Java

* refs qorelanguage/qore#3026 fixed error msg with static method calls

* refs qorelanguage/qore#3026 updated docs

* refs qorelanguage/aore#3026 removed dependency on serialization

* refs #3026 fixed handling of thread-local data from Java threads; we have to deregister the Qore thread in every call, because if we allow the thread to terminate normally, then somehow our thread-local data is removed/destroyed before we get to our cleanup routing, leading to a memory leak

* refs qorelanguage/qore#3026 added Qore Java API to the jni module

* refs qorelanguage/qore#3026 updates from review comments

* refs #3026 updated from review comments

@davidnich davidnich added the fixed label Nov 26, 2018

@davidnich davidnich closed this Nov 26, 2018

davidnich added a commit that referenced this issue Jan 16, 2019

refs #3026 updated to WebUtil and HTTP infrastructure to allow for cl…
…asses derived from WebUtil to serve arbitrary content such as *.gz files for the file name without the gz suffix and to set the Content-Type accordingly; the internal streaming methods were updated to use streams as well

davidnich added a commit that referenced this issue Jan 16, 2019

pvanek added a commit that referenced this issue Jan 16, 2019

Merge pull request #3261 from qorelanguage/bugfix/3026_WebUtil_fixes
refs #3026 updated to WebUtil and HTTP infrastructure to allow for cl…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment