JavaCpp v1.4.2 Release Notes
Release Date: 2018-07-17 // almost 6 years ago-
- Add
Loader.getJavaVM()
method to get the JNIJavaVM
object as required to initialize some libraries - Fix
Parser
from outputting accessors not available withstd::forward_list
orstd::list
- Use
pthread_setspecific()
inGenerator
to detach automatically native threads on exit for Android (pull #243) - Fix issues with anonymous classes by calling
getEnclosingClass()
instead ofgetDeclaringClass()
- Add
android-arm-clang.properties
,android-arm64-clang.properties
,android-x86-clang.properties
andandroid-x86_64-clang.properties
- Search in
linkpath
beforepreloadpath
to avoid copying or loading unwanted libraries - Fix
Builder
not bundling libraries containing a#
fragment only useful at load time - Make
Parser
take into account implicit constructors even when inheriting some withusing
declarations - Pick up
Parser
translation of enum and macro expressions fromInfo.javaNames
- Let
Parser
defineInfo.pointerTypes
also for partially specialized templates with default arguments - Tweak
Pointer.formatBytes()
to increase the number of digits returned (issue #240) - Enhance
InfoMap
andStringAdapter
with default mappings and casts forstd::wstring
- Templatize
StringAdapter
to allow other character types likewchar_t
and add corresponding@StdWString
annotation - Prevent
Loader
from creating symbolic links to rename libraries, which does not always work - Fix memory leak that occurs with "org.bytedeco.javacpp.nopointergc" (issue #239)
- Make
Generator
useGENERIC_EXCEPTION_TOSTRING
macro onGENERIC_EXCEPTION_CLASS
instead of the defaultwhat()
- Fall back on Android-friendly
System.loadLibrary()
inLoader.load()
instead of "java.library.path" (issue bytedeco/javacv#970) - Add to Java enums an
intern()
method and use it intoString()
to return non-null strings - Add
PointerScope
to manage more easily the resources of a group ofPointer
objects - Fix
Parser
failing onconst void*&
or similar function arguments, and on constructors of class templates - Add
Info.skipDefaults
to have theParser
ignore default function arguments and prevent method overloading - Accelerate copy and extraction of resources by using larger buffers for file operations
- Fix
Parser
incorrectly referring to function arguments with impossibly qualified names - Allow using
new Info().enumerate()
to map all C++enum
to Javaenum
types by default - Fix
Parser
issues surrounding enum classes, anonymous namespaces, and pure virtual classes - Avoid
synchronized
on first call tophysicalBytes()
inPointer.deallocator()
to reduce contention (pull #232)
- Add