All Versions
17
Latest Version
Avg Release Cycle
128 days
Latest Release
372 days ago

Changelog History
Page 2

  • v0.7.2 Changes

    February 29, 2020

    ๐Ÿ‘ป C++ and Java exceptions hold the traceback as a Python exception
    cause. It is no longer necessary to call stacktrace() to retrieve
    the traceback information.

    Speed for call return path has been improved by a factor of 3.

    Multidimensional array buffer transfers increase speed transfers
    to numpy substantially (orders of magnitude). Multidimension primitive
    transfers are read-only copies produced inside the JVM with C contiguous
    layout.

    All exposed internals have been replaced with CPython implementations
    thus symbols __javaclass__, __javavalue__, and __javaproxy__
    ๐Ÿšš have been removed. A dedicated Java slot has been added to all CPython
    types derived from _jpype class types. All private tables have been
    ๐Ÿšš moved to CPython. Java types must derive from the metaclass JClass
    which enforces type slots. Mixins of Python base classes is not
    permitted. Objects, Proxies, Exceptions, Numbers, and Arrays
    derive directly from internal CPython implementations.

    ๐Ÿ‘ป Internal improvements to tracing and exception handling.

    Memory leak in convertToDirectBuffer has been corrected.

    ๐Ÿ‘ Arrays slices are now a view which support writeback to the original
    like numpy array. Array slices are no longer covariant returns of
    ๐Ÿ— list or numpy.array depending on the build procedure.

    ๐Ÿ‘ Array slices support steps for both set and get.

    Arrays now implement __reversed__

    Incorrect mapping of floats between 0 and 1 to False in setting
    Java boolean array members is corrected.

    Java arrays now properly assert range checks when setting elements
    from sequences.

    ๐Ÿ‘ Java arrays support memoryview API and no longer required numpy
    to transfer buffer contents.

    Numpy is no longer an optional extra. Memory transfer to numpy
    ๐Ÿ‘ is available without compiling for numpy support.

    JInterface is now a meta class. Use isinstance(cls, JInterface)
    โœ… to test for interfaces.

    ๐Ÿ›  Fixed memory leak in Proxy invocation

    ๐Ÿ›  Fixed bug with Proxy not converting when passed as an argument to
    Python functions during execution of proxies

    0๏ธโƒฃ Missing tlds "mil", "net", and "edu" added to default imports.

    โœจ Enhanced error reporting for UnsupportedClassVersion during startup.

    Corrections for collection methods to improve complience with
    Python containers.

    java.util.Map gives KeyError if the item is not found. Values that
    are null still return None as expected. Use get() if
    empty keys are to be treated as None.

    java.util.Collection __delitem__ was removed as it overloads
    ๐Ÿšš oddly between remove(Object) and remove(int) on Lists.
    ๐Ÿšš Use Java remove() method to access the original Java behavior,
    but a cast is strongly recommended to to handle the overload.

    java.lang.IndexOutOfBoundsException can be caught with IndexError
    for complience when accessing java.util.List elements.

  • v0.7.1 Changes

    January 03, 2020

    โšก๏ธ Updated the keyword safe list for Python 3.

    Automatic conversion of CharSequence from Python strings.

    ๐Ÿ‘ java.lang.AutoCloseable supports Python "with" statement.

    Hash codes for boxed types work properly in Python 3 and can be
    ๐Ÿ‘‰ used as dictionary keys again (same as JPype 0.6). Java arrays
    have working hash codes, but as they are mutable should not
    be used as dictionary keys. java.lang.Character, java.lang.Float,
    and java.lang.Double all work as dictionary keys, but due to
    differences in the hashing algorithm do not index to the same
    location as Python native types and thus may cause issues
    when used as dictionary keys.

    โšก๏ธ Updated getJVMVersion to work with JDK 9+.

    โž• Added support for pickling of Java objects using optional module
    jpype.pickle

    ๐Ÿ›  Fixed incorrect string conversion on exceptions. str() was
    incorrectly returning getMessage rather than toString.

    ๐Ÿ›  Fixed an issue with JDK 12 regarding calling methods with reflection.

    โœ‚ Removed limitations having to do with CallerSensitive methods. Methods
    affected are listed in :doc:caller-sensitive. Caller sensitive
    methods now receive an internal JPype class as the desut

    ๐Ÿ›  Fixed segfault when converting null elements while accessing a slice
    from a Java object array.

    ๐Ÿ‘ PyJPMethod now supports the FunctionType API.

    ๐Ÿ‘ Tab completion with Jedi is supported. Jedi is the engine behind
    tab completion in many popular editors and shells such as IPython.
    Jedi version 0.14.1 is required for tab completion as earlier versions
    ๐Ÿ‘ did not support annotations on compiled classes. Tab completion
    with older versions requires use of the IPython greedy method.

    JProxy objects now are returned from Java as the Python objects
    ๐Ÿ’… that originate from. Older style proxy classes return the
    ๐Ÿ’… inst or dict. New style return the proxy class instance.
    Thus proxy classes can be stored on generic Java containers
    and retrieved as Python objects.

  • v0.7 Changes

    June 24, 2019

    Doc strings are generated for classes and methods.

    Complete rewrite of the core module code to deal unattached threads,
    ๐Ÿ‘Œ improved hardening, and member management. Massive number of internal
    ๐Ÿ› bugs were identified during the rewrite and corrected.
    ๐Ÿ‘€ See the :doc:ChangeLog-0.7 for details of all changes.

    API breakage:

    Java strings conversion behavior has changed. The previous behavior was
    0๏ธโƒฃ switchable, but only the default convert to Python was working.
    Converting to automatically lead to problems in which is was impossible
    to work with classes like StringBuilder in Java. To convert a Java
    string use str(). Therefore, string conversion is currently selected
    0๏ธโƒฃ by a switch at the start of the JVM. The default shall be False
    0๏ธโƒฃ starting in JPype 0.8. New code is encouraged to use the future default
    0๏ธโƒฃ of False. For the transition period the default will be True with a
    โš  warning if not policy was selected to encourage developers to pick the
    string conversion policy that best applies to their application.

    ๐Ÿ‘ป Java exceptions are now derived from Python exception. The old wrapper
    ๐Ÿšš types have been removed. Catch the exception with the actual Java
    ๐Ÿ‘ป exception type rather than JException.

    Undocumented exceptions issued from within JPype have been mapped to the
    ๐Ÿ‘ป corresponding Python exception types such as TypeError and
    ValueError appropriately. Code catching exceptions from previous
    ๐Ÿ”– versions should be checked to make sure all exception paths are being
    ๐Ÿ– handled.

    Undocumented property import of Java bean pattern get/set accessors was
    โœ‚ removed as the default. It is available with import jpype.beans, but
    its use is discouraged.

    API rework:

    • JPype factory methods now act as base classes for dynamic
      class trees.
    • Static fields and methods are now available in object
      instances.
    • Inner classes are now imported with the parent class.
    • jpype.imports works with Python 2.7.
    • Proxies and customizers now use decorators rather than
      exposing internal classes. Existing JProxy code
      still works.
    • Decorator style proxies use @JImplements and @JOverload
      to create proxies from regular classes.
    • Decorator style customizers use @JImplementionFor
    • Module jpype.types was introduced containing only
      the Java type wrappers. Use from jpype.types import * to
      pull in this subset of JPype.

    ๐Ÿ”€ synchronized using the Python with statement now works
    for locking of Java objects.

    Previous bug in initialization of arrays from list has been
    corrected.

    โž• Added extra verbiage to the to the raised exception when an overloaded
    ๐Ÿ–จ method could not be matched. It now prints a list of all possible method
    signatures.

    ๐Ÿ—„ The following is now DEPRECATED

    • jpype.reflect.* - All class information is available with .class_

    - Unnecessary JException from string now issues a warning.

    ๐Ÿšš The following is now REMOVED

    • Python thread option for JPypeReferenceQueue. References are always handled with
      with the Java cleanup routine. The undocumented setUsePythonThreadForDaemon()
      ๐Ÿšš has been removed.
    • Undocumented switch to change strings from automatic to manual
      ๐Ÿšš conversion has been removed.
    • Artifical base classes JavaClass and JavaObject have been removed.
    • Undocumented old style customizers have been removed.
    • Many internal jpype symbols have been removed from the namespace to
      prevent leakage of symbols on imports.

    promoted --install-option to a --global-option as it applies to the build as well
    as install.

    Added --enable-tracing to setup.py to allow for compiling with tracing
    for debugging.

    ๐Ÿ— Ant is required to build jpype from source, use --ant= with setup.py
    to direct to a specific ant.

  • v0.6.3 Changes

    April 03, 2018

    Java reference counting has been converted to use JNI
    PushLocalFrame/PopLocalFrame. Several resource leaks
    ๐Ÿšš were removed.

    java.lang.Class<>.forName() will now return the java.lang.Class.
    โ†ช Work arounds for requiring the class loader are no longer needed.
    ๐Ÿ‘ Customizers now support customization of static members.

    ๐Ÿ‘Œ Support of java.lang.Class<>

    java.lang.Object().getClass() on Java objects returns a java.lang.Class
    rather than the Python class

    java.lang.Object(). class on Java objects returns the python class
    as do all python objects

    java.lang.Object.class_ maps to the java statement 'java.lang.Object.class' and
    returns the java.lang.Class<java.lang.object>

    ๐Ÿ‘ java.lang.Class supports reflection methods

    private fields and methods can be accessed via reflection

    annotations are avaiable via reflection

    Java objects and arrays will not accept setattr unless the
    attribute corresponds to a java method or field whith
    ๐Ÿ‘ป the exception of private attributes that begin with
    underscore.

    โž• Added support for automatic conversion of boxed types.

    Boxed types automatically convert to python primitives.

    Boxed types automatically convert to java primitives when resolving functions.

    Functions taking boxed or primitives still resolve based on closest match.

    Python integer primitives will implicitly match java float and double as per
    Java specification.

    โž• Added support for try with resources for java.lang.Closeable.
    ๐Ÿ‘‰ Use python "with MyJavaResource() as resource:" statement
    to automatically close a resource at the end of a block.

  • v0.6.2

    January 13, 2017
  • v0.6.1

    August 05, 2015
  • v0.6.0

    April 16, 2015