summaryrefslogtreecommitdiff
path: root/Lib/java
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add feature director:except for improved director exception handling in JavaMarvin Greenberg2013-10-222-2/+239
| | | | Closes #91
* Merge branch 'master' into gsoc2009-matevzWilliam S Fulton2013-10-102-3/+3
|\ | | | | | | | | | | | | | | | | | | Conflicts: Examples/Makefile.in Examples/guile/Makefile.in Lib/php/php.swg Makefile.in Source/CParse/parser.y configure.ac
| * Fixed a memory leak for java STRING_ARRAYGavin Kinsey2013-09-201-1/+1
| | | | | | | | | | The allocation loop uses size, so the free loop should do the same, not size-1.
| * Fix typecheck OUTPUT typemaps for JavaMarvin Greenberg2013-04-101-2/+2
| |
* | Merge branch 'master' into gsoc2009-matevzWilliam S Fulton2013-01-2812-589/+637
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | parser.y still to be fixed up Conflicts: Doc/Devel/engineering.html Examples/Makefile.in Lib/allegrocl/allegrocl.swg Lib/csharp/csharp.swg Lib/csharp/enums.swg Lib/csharp/enumsimple.swg Lib/csharp/enumtypesafe.swg Lib/java/java.swg Lib/python/pydocs.swg Lib/r/rtype.swg Source/Include/swigwarn.h Source/Modules/octave.cxx Source/Modules/python.cxx Source/Modules/ruby.cxx Source/Swig/scanner.c Source/Swig/stype.c Source/Swig/swig.h configure.ac
| * Convert to unix fileformatWilliam S Fulton2013-01-121-473/+473
| |
| * Fix for SourceForge Bug #1283.Brant K. Kyser2013-01-041-4/+4
| | | | | | | | | | * Change the name of the memory own variable for base java director classes to match that expected by the director code * Add conditional to appropriately dynamically cast director classes wrapped in smart pointers.
| * Add caveat emptor for peek method in Java directorsWilliam S Fulton2012-09-131-0/+1
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13838 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Possibly incorrect DeleteGlobalRef call on a weak global reference in Java ↵William S Fulton2012-09-131-2/+2
| | | | | | | | | | | | directors - patch from Marvin Greenberg git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13837 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Apply patch for Java to fix direct use of a weak global reference in ↵William S Fulton2012-09-131-1/+2
| | | | | | | | | | | | directors sometimes causing seg faults especially on Android. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13834 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix (char *STRING, size_t LENGTH) typemaps to accept NULL stringWilliam S Fulton2012-09-071-2/+7
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13736 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * std::string typemap modifications so they can be used with %apply for other ↵William S Fulton2012-05-261-6/+6
| | | | | | | | | | | | string classes git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13120 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix unintended uninitialised memory access in OUTPUT typemapsWilliam S Fulton2012-05-111-0/+15
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13074 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix possible uninitialised memory access in char **STRING_OUT typemapWilliam S Fulton2012-05-111-0/+1
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13073 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix uninitialised size variable in char **STRING_ARRAY regressionWilliam S Fulton2012-05-111-0/+1
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13072 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * char **STRING_ARRAY typemaps fixed to handle null pointersWilliam S Fulton2012-04-281-21/+27
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13021 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Make generated support functions in arrays_java.i static for multiple module ↵William S Fulton2012-02-161-6/+6
| | | | | | | | | | | | linking git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * The 'directorin' typemap now accepts , etc expansions instead of having to ↵William S Fulton2011-12-215-21/+21
| | | | | | | | | | | | use workarounds - _name, _name etc. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12879 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Correct special variables in 'directorargout' typemap. This change will ↵William S Fulton2011-12-201-0/+7
| | | | | | | | | | | | break any 'directorargout' typemaps you may have written. Please change: to and to \n Also fix the named 'directorargout' DIRECTOROUT typemaps for these languages which didn't previously compile and add in , etc expansion.\n [C#, Go, Java, D] Add support for the 'directorargout' typemap.\n [Java] Add (char *STRING, size_t LENGTH) director typemaps. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12877 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix directors for Android and improve thread attachment/detachment in multi ↵William S Fulton2011-12-101-4/+12
| | | | | | | | | | | | threading environments git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12868 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix inconsistencies in Java and C# getCPtr() and pointer constructor ↵William S Fulton2011-11-251-1/+1
| | | | | | | | | | | | visibility - change to protected/internal from public. Add SWIG_JAVABODY_PROXY, SWIG_JAVABODY_TYPEWRAPPER and SWIG_CSBODY_PROXY, SWIG_CSBODY_TYPEWRAPPER for users to easily change when using multiple modules. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Fix inconsistencies in Java and C# getCPtr() and pointer constructor ↵William S Fulton2011-11-253-31/+51
| | | | | | | | | | | | visibility - change to protected/internal from public. Add SWIG_JAVABODY_PROXY, SWIG_JAVABODY_TYPEWRAPPER and SWIG_CSBODY_PROXY, SWIG_CSBODY_TYPEWRAPPER for users to easily change when using multiple modules. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12843 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Remove numerous hard coded 'result' variable name in generated c/c++ ↵William S Fulton2011-10-301-1/+1
| | | | | | | | | | | | wrappers. The variable name is now defined in just one place, making it possible to change the name easily if a target language so wishes - see cwrap.c. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12830 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Marshalling char[] and char[ANY] to Java byte[] is now a bit easierWilliam S Fulton2011-06-171-5/+7
| | | | | | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12742 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Remove incomplete directorin typemaps as users incorrectly assumed they were ↵William S Fulton2011-05-031-23/+0
| | | | | | | | | | | | implemented and working git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12653 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Remove directorout INPUT/INOUT/OUTPUT typemaps - they will never be used as ↵William S Fulton2011-05-031-13/+2
| | | | | | | | | | | | they used for the return type, not parameters. Fix java directorin typemap. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12651 626c5289-ae23-0410-ae9c-e8d60b6d4f22
| * Added some missing multi-argument typemaps: (char *STRING, size_t LENGTH) ↵William S Fulton2011-01-141-0/+15
| | | | | | | | | | | | and (char *STRING, int LENGTH) - Java patch is from Volker Grabsch. Elements of the primitive_types.i testcase for this moved into char_binary.i. Documentation for this enhanced. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* | Add rvalue reference typemapsWilliam S Fulton2013-01-241-9/+34
|/
* Add std_shared_ptr.i and document shared_ptr libraryWilliam S Fulton2010-06-011-0/+2
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12077 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* nspace fixes for smart pointersWilliam S Fulton2010-05-232-10/+10
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12038 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* shared_ptr improvements so the proxy class does not need to be specified - ↵William S Fulton2010-05-222-31/+31
| | | | | | SWIG_SHARED_PTR macro deprecated and replaced by %shared_ptr git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12037 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix #2408232. Improve shared_ptr and intrusive_ptr wrappers for classes in ↵William S Fulton2010-05-222-7/+3
| | | | | | an inheritance hierarchy. No special treatment is needed for derived classes, the SWIG_SHARED_PTR_DERIVED macro is deprecated. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12036 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fix member pointers on 64 bit platforms for JavaWilliam S Fulton2010-05-181-9/+92
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12031 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* remove std::map specializations - not needed since the typemap matching ↵William S Fulton2010-04-041-112/+10
| | | | | | rules were changed to follow type deducation used in template specialization git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11978 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Change typemap matching rules for the default type (SWIGTYPE) to follow ↵William S Fulton2010-04-013-23/+27
| | | | | | template partial specialization type deduction. Fixes some containers of const pointers. SWIGTYPE*& typemps removed and replaced with SWIGTYPE *const&. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11958 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Minor tweaksWilliam S Fulton2010-03-101-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Fixes for nspace and derived classesWilliam S Fulton2010-03-091-1/+1
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11930 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* The intermediary JNI class modifiers are now public by default. The proxy ↵William S Fulton2010-03-081-2/+2
| | | | | | class pointer constructor and getCPtr() methods are also now public git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* SWIG license change - The Examples and Lib move to a very permissive license ↵William S Fulton2010-02-2717-51/+0
| | | | | | in the LICENSE file, removing the BSD license restrictions as agreed by committers since it was inadvertently introduced. Remove some examples where the impact of the license change is not clear. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Add a few comments about the smart pointer implementationWilliam S Fulton2010-01-232-2/+8
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11828 626c5289-ae23-0410-ae9c-e8d60b6d4f22