summaryrefslogtreecommitdiff
path: root/Source/Modules/java.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Refactor Java director swig_override array codeWilliam S Fulton2015-05-101-7/+1
| | | | | | | Remove code duplication: Use new Swig::BoolArray to replace multiple instances of ZeroedBoolArray. Refactors #403 and #413.
* Don't include an STL header in SWIG.Lindley French2015-05-071-3/+8
|
* Use a bitset which is automatically initialized to 0, instead of a bool ↵Lindley French2015-05-061-6/+3
| | | | array which is not.
* Too hard to conditionally define the memset....instead just make sure the ↵Lindley French2015-05-011-10/+4
| | | | array is defined even if it's unused.
* Only output memset if the array exists.Lindley French2015-04-301-2/+10
|
* Zero-initialize swig_override in the director constructor.Lindley French2015-04-301-0/+2
|
* Correct java warning to save javabase not csbaseOlly Betts2015-03-271-1/+1
|
* Create director_common.swg for language-indep codeOlly Betts2015-03-121-0/+1
| | | | | Move -DSWIG_DIRECTOR_STATIC handling there, so this is now supported for all languages with director support, not just Python and PHP.
* Partial support for %constant and structsWilliam S Fulton2014-12-181-12/+1
| | | | | | | Test case is slightly modified from the test case in issue #250 Use of constant objects does not seem to work in Python - the type is SwigPyObject instead of constant_directive.Type1.
* Fix strongly typed enums for Java when using simple enum wrappersWilliam S Fulton2014-11-241-2/+10
|
* Fix incorrect symbol clash error in C# and Java when using %rename for enumsWilliam S Fulton2014-11-211-1/+1
| | | | When using using 'simple enum' wrappers
* Cosmetic formattingWilliam S Fulton2014-11-211-4/+2
|
* Merge branch 'alexey-pelykh-cpp11_strongly_typed_enums__direct_inject_in_java'William S Fulton2014-11-211-19/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * alexey-pelykh-cpp11_strongly_typed_enums__direct_inject_in_java: Enhance cpp11_strongly_typed_enumerations testcase and turn it on Simplify/improve strongly typed enum implementation for Java Rewrite some Java director nested class support code for strongly typed enums Expand director_nested_class test to test more than one level of nesting Add director_nested_class testcase Removed useless code (it does not affect output, at least on our testcases) Java/Fix: swig_connect_director used not-fully-qualified classname (proper) Java/Fix: swig_connect_director used not-fully-qualified classname Java: fix generation of ProxyName when JNI descriptor is requested - for inner classes '$' should be used as separator instead of '/' Java: fix invalid director 'self' variable type name (wasn't fully qualified) Clean-up test suite and fix issue with nspace, as well as keep the fix for Class::Struct::EnumClass being JNI-referenced as Struct_EnumClass C++11 strongly-typed enums fix for Java only (proper) Revert "C++11 strongly-typed enums fix for Java only" Additional test cases for C++11 strongly-typed enums C++11 strongly-typed enums fix for Java only
| * Simplify/improve strongly typed enum implementation for JavaWilliam S Fulton2014-11-211-33/+10
| |
| * Rewrite some Java director nested class support code for strongly typed enumsWilliam S Fulton2014-11-201-35/+4
| |
| * Removed useless code (it does not affect output, at least on our testcases)Alexey Pelykh2014-11-031-23/+0
| |
| * Java/Fix: swig_connect_director used not-fully-qualified classname (proper)Alexey Pelykh2014-09-041-1/+2
| |
| * Java/Fix: swig_connect_director used not-fully-qualified classnameAlexey Pelykh2014-09-041-0/+8
| |
| * Java: fix generation of ProxyName when JNI descriptor is requested - for ↵Alexey Pelykh2014-09-031-1/+1
| | | | | | | | inner classes '$' should be used as separator instead of '/'
| * Java: fix invalid director 'self' variable type name (wasn't fully qualified)Alexey Pelykh2014-08-311-1/+11
| |
| * Clean-up test suite and fix issue with nspace, as well as keep the fix for ↵Alexey Pelykh2014-08-311-1/+12
| | | | | | | | Class::Struct::EnumClass being JNI-referenced as Struct_EnumClass
| * C++11 strongly-typed enums fix for Java only (proper)Alexey Pelykh2014-08-301-2/+48
| |
| * Revert "C++11 strongly-typed enums fix for Java only"Alexey Pelykh2014-08-301-23/+2
| | | | | | | | This reverts commit cf139a90db852446269b0ce7b7ed5f2bf623eafb.
| * C++11 strongly-typed enums fix for Java onlyAlexey Pelykh2014-08-291-2/+23
| |
* | Fix for 'self' being used as a parameter nameWilliam S Fulton2014-10-301-4/+4
| |
* | Merge remote-tracking branch 'vadz/py-args'William S Fulton2014-10-271-38/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | * vadz/py-args: Allow using enum elements as default values for Python functions. Don't always use "*args" for all Python wrapper functions. No real changes, just make PYTHON::check_kwargs() const. Refactor: move makeParameterName() to common Language base class. Remove long line wrapping from Python parameter list generation code.
| * | Refactor: move makeParameterName() to common Language base class.Vadim Zeitlin2014-08-161-38/+0
| |/ | | | | | | | | | | | | | | This method was duplicated more or less identically for 4 languages and will be needed for another one soon, so put it in the base class from which it can be simply reused instead. No changes in the program behaviour whatsoever.
* | Cosmetic comment changesWilliam S Fulton2014-10-211-0/+5
|/ | | | Note: copyrights are in the COPYRIGHT file
* Eliminate needless casting away const from string constantsOlly Betts2014-04-301-1/+1
|
* Ignored enum fixes.William S Fulton2014-04-081-2/+2
| | | | | | | C#/Java - Enums which have been ignored via %ignore and are subsequently used are handled slightly differently. Type wrapper classes are now generated which are effectively a wrapper of an empty enum. Previously in Java uncompilable code was generated and in C# an int was used.
* Fixes for C enums used in an API and the definition of the enum has not been ↵William S Fulton2014-03-281-3/+17
| | | | | | | | | parsed. For D, this fixes a segfault in SWIG. Java, C#, D, Go now produce code that compiles, although the definition of the enum is needed in order to use the enum properly from the target language.
* Forward null fix for Coverity analysisWilliam S Fulton2014-03-201-2/+4
|
* Nested classes support is diversified, depending on the language capability. ↵Vladimir Kalinin2014-02-021-2/+2
| | | | If the language cannot support nested classes, they will be unconditionally moved to the global namespace. If language module does not override Language::nestedClassesSupport() function, nested classes will be ignored, unless "feature:flatnested" is used.
* fixed enums & enum values language symbol table namespaceVladimir Kalinin2013-12-201-14/+30
| | | | fixed skipping of %templates in %extend if they are in the wrong scope
* fixed %template within %extend, test addedVladimir Kalinin2013-12-191-2/+1
| | | | | | | fixed language symbol table nested classes name separator, test added fixed %feature "flatnested" working with %extend fixed Swig_offset_string for empty string added simple template to save/restore values in current scope (readability reasons)
* Swig_offset_string moved to misc.cWilliam S Fulton2013-12-051-3/+1
|
* fixed out-of-scope nested class definitions, added a testVladimir Kalinin2013-12-041-1/+1
| | | | | enabled nested C structs assignment (still disabled for Octave), added Java runtime test fixed nested_private test case for Java & C#
* Cosmetics/code beautification of nested class supportWilliam S Fulton2013-11-291-14/+14
|
* Nested classes supportVladimir Kalinin2013-11-291-58/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #89 Squash merge branch 'master' of https://github.com/wkalinin/swig into wkalinin-nested By Vladimir Kalinin * 'master' of https://github.com/wkalinin/swig: CPlusPlusOut mode for Octave nested class illustration fixed "Abstract" flag for nested classes added an example enabled anonymous nested structs runtime test porting warnings disabled porting fixes java runtime tests ported nested class closing bracket offset fixed removed double nested template (not supported by %template parsing) template_nested test extended parent field made public property access fixed replaced tabs with spaces warning W-reorder deprecated warnings removed, derived_nested runtime test added optimized string indenting Nested classes indenting nested classes docs fixed the order in which flattened inner classes are added after the outer Private nested classes were getting into the type table. Java getProxyName() fix for nested classes fixes the case when nested classes is forward declared Fix for a case when a nested class inherits from the same base as the outer. (Base class constructor declaration is found first in this case) merge fix nested C struct first immediate declaration incorrectly renamed sample fixed tests updated to reflect nested classes support Java nested classes support (1) flattening should remove the link to the outer class access mode correctly set/restored for nested classes nested templates should be skipped while flattening (template nodes themselves, not expanded versions) also non-public nested classes should be ignored If nested classes are not supported, default behaviour is flattening, not ignoring flag "nested" is preserved, so, the nested classes can be ignored by user nested workaround test updated template instantiated within a class is marked as nested for ignoring purposes %ignore not applied to the nested classed, because "nested" flag is set too late typedef name takes precedence over the real name (reason?) unnamed structs should be processed for all the languages nested C struct instances are wrapped as "immutable" tree building typedef declaration for unnamed C structures fixed nested classes "flattening" fixed %ignoring nested classes renamed "nested" attribute to "nested:outer" added "nested" flag, to be used with $ignore (it is not removed while flattening) added nestedClassesSupported() function to the Language interface renamed "nested" attribute to "nested:outer" added "nested" flag, to be used with $ignore (it is not removed while flattening) added nestedClassesSupported() function to the Language interface tree iteration fix dirclassname variable names unified memory issue fixed merge error ignore unnamed structs for C++ unnamed nested C structs naming & unnesting class added to classes hash under typedef name private nested classes skipped test updated due to nested templates support anonymous structs with inheritance fixed nested_class test to allow anonymous structs w/o declarator tests updated: nested workaround removed from namespace_class.i propagated nested template declaration to the C++ file injected members scope nested tempplates fixes, nested structures in "C" mode parsing added utility function "appendSibling" (like "appendChild") nested unnamed structures parsing fixes, access mode restored on nested class end, tdname is properly patched with outer class name prefix memory management fixes nested templates (1) Nested unnamed structs Nested class support (1) Nested class support (1)
* Improve directorthrows patchWilliam S Fulton2013-10-311-66/+46
| | | | | | | | | | | | | Separate $packagepath substitution from non-director code (as documented). Some of the directorthrows code has been rewritten so that fewer code changes are present compared to before the patch. canonicalizeJNIDescriptor() refactored so it can be used for general code, not just the directorin:descriptor typemap attribute. Better implementation for substituting '$packagepath/$javaclassname' - fixes some quirks in '$packagepath/$javaclassname' descriptor substitutions if a dot was present in the descriptor string.
* More conventional variable naming in directorExceptHandlingWilliam S Fulton2013-10-241-16/+16
|
* directorthrows warning fixesWilliam S Fulton2013-10-241-13/+11
| | | | | | - Fix line number display - now the usual simpler warning message can be displayed for WARN_TYPEMAP_DIRECTORTHROWS_UNDEF - it still points to the problem method. - Use macro names for warning suppression in test.
* director:except tweaks Recode whitespace handling, remove unnecessary ↵William S Fulton2013-10-241-16/+6
| | | | comments in generated code.
* Remove pointless code from Java director:except patchWilliam S Fulton2013-10-231-7/+0
|
* Minor improvements to Java director:except patchWilliam S Fulton2013-10-231-1/+1
|
* Code style conforming channges for Java director:except patchWilliam S Fulton2013-10-231-53/+45
|
* Add feature director:except for improved director exception handling in JavaMarvin Greenberg2013-10-221-46/+187
| | | | Closes #91
* Remove some Java references from C# moduleWilliam S Fulton2013-09-021-3/+3
|
* Minor fixes after Coverity analysisWilliam S Fulton2013-05-161-0/+1
|
* Cosmetic tidyup in smartptr feature code and document smartptr fix in ↵William S Fulton2013-04-171-9/+5
| | | | previous commit