summaryrefslogtreecommitdiff
path: root/Lib/java
Commit message (Collapse)AuthorAgeFilesLines
* interface macro argument name tweaksWilliam S Fulton2016-03-111-2/+2
|
* Change the name of the interface in %feature to be more portableWilliam S Fulton2016-03-081-1/+1
| | | | | | Use SwigInterface as a suffix to the class name when naming the interface class instead of using a simple I as a prefix. %feature_custom can be used to use I as a prefix if so desired.
* Rename feature_interface.i to swiginterface.iWilliam S Fulton2016-03-031-0/+9
|
* Use rstrip instead of regex encoder in %feature_renameWilliam S Fulton2016-03-031-1/+1
| | | | The regex encoder is not always available in SWIG builds.
* Interface macros: %interface %interface_impl %interface_customWilliam S Fulton2016-03-021-9/+14
|
* Add $interfacename family of special variable expansionsWilliam S Fulton2016-02-291-6/+10
| | | | | | | | | | This is a simple expansion expanding to the name of the interface and is not qualified like $javainterfacename and $csinterfacename. Expansion within typemaps is much like $javainterfacename otherwise. Note that expansion within the pure java code typemap, 'javainterfacecode' and similarly pure C# code typemap, 'csinterfacecode' works like $javaclassname/$csclassname and $&interfacename should not be used, just $interfacename.
* Interface name handling improvements and special variable changesWilliam S Fulton2016-02-291-21/+23
| | | | | | | | | | Support expansion of name attribute in: %feature("interface", name="%s") %s expands to the proxy class name and all the usual %rename functions can be used (regex, strip, camelcase etc) to derive the interface name from the proxy class name. Rename $interfacename family of special variables to $javainterfacename for Java Rename $interfacename family of special variables to $csinterfacename for C# This is to free up $interfacename for simple interface name expansion in forthcoming commit
* interface feature - SWIG_JAVABODY_PROXY does not need to be overriddenWilliam S Fulton2016-02-261-1/+0
|
* Support namespaces and nspace with the interface feature for JavaWilliam S Fulton2016-02-261-16/+31
|
* Add Java premature garbage collection prevention parameter (pgcpp) to ↵William S Fulton2016-02-241-1/+1
| | | | | | | | interface feature pgcpp was turned off but it is still needed for the interface feature to prevent premature garbage collection of the proxy class being passed into the C++ layer.
* Create javainterfacecode and csinterfacecode typemapsWilliam S Fulton2016-02-231-1/+6
| | | | | The interface feature is no longer hard coded and can be controlled by a user via these new typemaps.
* director generation fixesVladimir Kalinin2016-02-121-0/+4
| | | | | | | Conflicts: Lib/java/feature_interface.i Source/Modules/csharp.cxx Source/Modules/java.cxx
* Merge branch 'interfaces' into interfaces2William S Fulton2016-02-111-0/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * interfaces: Remove unnecessary interfaces for concrete classes cosmetic code formatting changes Correct interface name attributes that are internal interface macro changes to support templates Test non-virtual method in Derived classes interface tests for a most derived class inheriting the interfaces further up the chain Rename GetCPtr/getCPtr to SWIGInterfaceUpcast interface feature support for const ref pointers (used by the STL) Interface feature support for arrays More interface feature testing for return values interface feature support for passing by value interface feature support for references Multiple inheritance parameters as pointers testing Simplify multiple_inheritance_abstract Java runtime test Warning fixes Rename test functions in multiple_inheritance_abstract testcase Formatting fixes in generated code for interface feature Cosmetic spacing changes in test case interface feature typemap corrections to handle NULL pointers interface test added javadirectorin fix interface implementation visibility interface inheritance (2) interface inheritance (1) feature:interface ported to Java propagate non-abstract "interface" base methods (3) propagate non-abstract "interface" base methods (2) propagate non-abstract "interface" base methods (1) namespace support added GetCPtr now returns HandleRef "feature:interface:name" is now mandatory attribute interfaces (1) interfaces (1) Conflicts: Source/Modules/csharp.cxx Source/Modules/java.cxx
| * interface macro changes to support templatesWilliam S Fulton2016-02-091-5/+5
| | | | | | | | | | | | The C++ type must be last in the argument list to support templates with multiple arguments which are separated by commas. Affects DECLARE_INTERFACE and DECLARE_INTERFACE_RENAME.
| * Rename GetCPtr/getCPtr to SWIGInterfaceUpcastWilliam S Fulton2016-02-081-4/+4
| | | | | | | | | | This is then similarly named to other similar functions: SWIGUpcast and SWIGSmartPtrUpcast
| * interface feature support for const ref pointers (used by the STL)William S Fulton2016-02-071-8/+8
| | | | | | | | Also interface feature return by value fixes
| * Interface feature support for arraysWilliam S Fulton2016-02-061-6/+6
| |
| * interface feature support for passing by valueWilliam S Fulton2016-02-061-7/+14
| | | | | | | | Also add in missing $owner for governing ownership when returning pointers and references
| * interface feature support for referencesWilliam S Fulton2016-02-061-6/+6
| |
| * Formatting fixes in generated code for interface featureWilliam S Fulton2016-02-061-12/+8
| |
| * interface feature typemap corrections to handle NULL pointersWilliam S Fulton2016-02-051-1/+2
| |
| * javadirectorin fixVladimir Kalinin2013-05-291-2/+1
| |
| * feature:interface ported to JavaVladimir Kalinin2013-05-211-0/+28
| |
* | Make (char*, size_t) typemap usable for strings of other types in Java.Vadim Zeitlin2015-08-071-2/+2
| | | | | | | | | | | | | | Notably it now works for "unsigned char*" strings. Add a test to check that it now works in Java and also showing that it already worked for the other languages with support for this typemap.
* | Fix potential security exploit in generated Java classesWilliam S Fulton2015-08-023-11/+11
| |
* | Consistent memory intiailization between C and C++ in typemapsWilliam S Fulton2015-07-302-5/+5
| | | | | | | | | | Remove unnecessary initialization via calloc calls and replace with malloc.
* | Warning fixes in generated Java code for 64bit Visual C++ on Windows.William S Fulton2015-07-033-5/+5
| |
* | Fix swapped parameters in memset callOlly Betts2015-05-121-1/+1
| |
* | Fix Java multi-argument typemaps (char *STRING, size_t LENGTH)William S Fulton2015-05-101-0/+1
| | | | | | | | | | Now they can be applied to a wider range of types. Closes #385.
* | Refactor Java director swig_override array codeWilliam S Fulton2015-05-101-0/+14
| | | | | | | | | | | | | | Remove code duplication: Use new Swig::BoolArray to replace multiple instances of ZeroedBoolArray. Refactors #403 and #413.
* | Memory leak in java directors when passing byte arrays (char*, size_t)William S Fulton2015-04-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When passing a byte array from c++ to Java using the director feature, the generated jni code does not release a temporary byte array. This is the typemap specified in Java.swg: %typemap(directorin, descriptor="[B") (char *STRING, size_t LENGTH) { jbyteArray jb = (jenv)->NewByteArray($2); (jenv)->SetByteArrayRegion(jb, 0, $2, (jbyte *)$1); $input = jb; } %typemap(directorargout) (char *STRING, size_t LENGTH) %{(jenv)->GetByteArrayRegion($input, 0, $2, (jbyte *)$1); %} Notice that the call to NewByteArray doesn't contain a symmetric release logic as the SetByteArrayRegion/GetByteArrayRegion does. Closes #386
* | Fix multiple definitions of 'ExceptionMatches' when using directors and ↵William S Fulton2015-04-111-1/+1
| | | | | | | | | | | | multiple modules. Java problem, closes #353 and closes #355.
* | add @SuppressWarnings("unused") to constructors generated using ↵Witold Wolski2015-02-041-2/+2
| | | | | | | | SWIG_JAVABODY_TYPEWRAPPER macro
* | Merge branch 'pingany-director_local_jstring_leak'William S Fulton2014-09-273-5/+25
|\ \ | | | | | | | | | | | | | | | | | | | | | * pingany-director_local_jstring_leak: Use more conventional naming for generated Java LocalRefGuard variables Make more use of LocalRefGuard in Java fixup! Patch of http://sourceforge.net/p/swig/mailman/message/29816385 Patch of http://sourceforge.net/p/swig/mailman/message/29816385
| * | Use more conventional naming for generated Java LocalRefGuard variablesWilliam S Fulton2014-09-272-5/+6
| | |
| * | Make more use of LocalRefGuard in JavaWilliam S Fulton2014-09-271-13/+17
| | |
| * | fixup! Patch of http://sourceforge.net/p/swig/mailman/message/29816385Pingan Yi2014-08-132-2/+8
| | |
| * | Patch of http://sourceforge.net/p/swig/mailman/message/29816385Pingan Yi2014-05-042-0/+9
| | |
* | | Doc/comment improvements in Java various.iWilliam S Fulton2014-08-041-7/+8
| | |
* | | Add support for java.nio.BufferYuval Kashtan2014-07-181-0/+37
|/ / | | | | | | including test-suite test case and documentation
* | Java enums - remove redundant typemapsWilliam S Fulton2014-03-282-2/+0
| |
* | Remove register storage class declarationsCurtis Dunham2014-02-191-7/+7
| | | | | | | | | | | | They're unnecessary, anacronistic, deprecated in modern standards, generally ignored, useless, and (most importantly) clang complains about them.
* | Work around differences in clang libc++ std::vector<bool>::const_referenceMarvin Greenberg2014-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang++ using -stdlib=libc++ defines const_reference as a class, to map boolean vectors onto a bit set. Because swig does not "see" the type as "const &" it generates incorrect code for this case, generating a declaration like: const_reference result; When const_reference is a typedef to 'bool' as is the case with stdlibc++ this works. When this is actually a constant reference, this is clearly invalid since it is not initialized. For libc++, this is a class which cannot be default constructed, resulting in an error. The fix is to explicitly define the various accessor extensions as having a bool return type for this specialization.
* | Director exceptions now derive from std::exceptionWilliam S Fulton2014-01-201-2/+2
| |
* | Error out attempting to use directors without -c++William S Fulton2013-12-231-3/+0
| | | | | | | | Remove redundant #ifdef __cplusplus markers in director.swg
* | Beautify director.swg filesWilliam S Fulton2013-12-231-2/+2
| | | | | | | | Also some comment corrections for Perl
* | Add std_auto_ptr.i defining typemaps for returning std::auto_ptr<>.Vadim Zeitlin2013-12-031-0/+27
| | | | | | | | | | | | | | These typemaps are currently defined for C#, Java and Python only and the tests are provided only for these languages. Also add a brief description of the new header to the documentation.
* | Rework the director.swg changes for director exception handlingWilliam S Fulton2013-11-071-116/+95
| | | | | | | | | | | | | | | | - More robust implementation. - Fix some bugs to give better exception messages when a user uses the director utility exception functions and classes. - Replace unnecessarily shortened variable names for easier reading of code.
* | Cosmetics/code style conformance in newly added Java director exception handlingWilliam S Fulton2013-11-071-118/+92
| |
* | Minor improvements to Java director:except patchWilliam S Fulton2013-10-231-1/+2
| |