swig/Examples/test-suite/java
William S Fulton 7268f58c4c Fix %rename override of wildcard %rename for templates
%rename(GlobalIntOperator) *::operator bool; // wildcard %rename
%rename(XIntOperator) X::operator bool; // fix now overrides first %rename above
OR
%rename(XIntOperator) X<int>::operator bool; // fix now overrides first %rename above

template<typename T> struct X {
  operator bool();
  ...
};
%template(Xint) X<int>;
2016-11-28 22:50:52 +00:00
..
aggregate_runme.java
allprotected_runme.java remove svn:executable property where applied incorrectly 2008-11-26 21:54:49 +00:00
apply_signed_char_runme.java %apply signed char test added 2006-08-10 21:22:12 +00:00
apply_strings_runme.java ensure %apply with char*, unsigned char* and signed char* works 2006-05-03 20:58:19 +00:00
array_member_runme.java
arrays_global_twodim_runme.java
char_binary_runme.java Make (char*, size_t) typemap usable for strings of other types in Java. 2015-08-07 19:44:45 +02:00
char_strings_runme.java More string tests: char const*const 2010-05-01 10:01:26 +00:00
constant_directive_runme.java fix handling of function pointers by %constant directive 2016-03-24 11:22:51 +01:00
cpp11_constexpr_runme.java Fix incorrect test case code 2015-07-06 19:50:22 +01:00
cpp11_lambda_functions_runme.java Rename all C++0x to C++11 and cpp0x to cpp11 2013-10-07 20:37:00 +01:00
cpp11_li_std_array_runme.java Correct Java runtime test 2016-03-14 20:54:21 +00:00
cpp11_result_of_runme.java C++11 result_of testcase 2014-03-14 01:57:16 +00:00
cpp11_strongly_typed_enumerations_runme.java Enhance C++11 strongly typed enums testcase 2014-11-27 19:56:08 +00:00
cpp11_strongly_typed_enumerations_simple_runme.java Enhance C++11 strongly typed enums testcase 2014-11-27 19:56:08 +00:00
cpp11_thread_local_runme.java Rename all C++0x to C++11 and cpp0x to cpp11 2013-10-07 20:37:00 +01:00
cpp11_type_aliasing_runme.java Fix C++11 type aliasing seg fault. 2015-06-09 07:59:22 +01:00
cpp_typedef_runme.java update to use proxy terminology 2006-06-29 21:17:30 +00:00
curiously_recurring_template_pattern_runme.java Add a testcase for the Curiously Recurring Template Pattern - CRTP 2012-09-13 20:15:03 +00:00
default_args_runme.java
default_constructor_runme.java Don't generate constructor wrappers if a base class has a private constructor 2015-07-07 20:15:55 +01:00
derived_nested_runme.java fixed %template declared within class, next to template declaration 2013-12-16 11:43:28 +04:00
director_abstract_runme.java
director_basic_runme.java Fix director typemaps for pointers so that NULL pointers are correctly marshalled to C#/Java null in director methods 2008-07-14 21:09:23 +00:00
director_binary_string_runme.java Fix Java multi-argument typemaps (char *STRING, size_t LENGTH) 2015-05-10 13:35:51 +01:00
director_classes_runme.java Fix java testcase for jdk-1.9 2016-05-01 16:32:15 +01:00
director_classic_runme.java remove svn:executable property where applied incorrectly 2008-11-26 21:54:49 +00:00
director_default_runme.java
director_enum_runme.java
director_exception_runme.java
director_frob_runme.java unsigned long long test added 2006-10-11 22:36:15 +00:00
director_ignore_runme.java remove svn:executable property where applied incorrectly 2008-11-26 21:54:49 +00:00
director_nested_class_runme.java Expand director_nested_class test to test more than one level of nesting 2014-11-10 19:57:49 +00:00
director_nspace_runme.java Fix for SourceForge Bug #1278 2013-01-02 15:07:56 -06:00
director_pass_by_value_runme.java Fix directorin SWIGTYPE typemaps to make a copy as these are used for pass by value. 2016-05-14 21:32:24 +01:00
director_primitives_runme.java comprehensive director runtime tests based on C# version 2006-07-07 10:09:46 +00:00
director_protected_runme.java Any 'using' statements in the protected section of a class were previously ignored with dirprot mode, certainly with Java and C#. Also directors - a call to a method being defined in the base class, not overridden in a subcalss, but again overridden in a class derived from the first subclass was not being dispatched correcly to the most derived class - affecting non-scripting languages. Fix for C# is based on recent fix for D. 2011-02-01 07:02:50 +00:00
director_ref_runme.java Added missing untracked files. 2015-05-04 15:27:51 -07:00
director_smartptr_runme.java Director smartptr testing 2015-09-30 07:53:19 +01:00
director_string_runme.java test multiple calls for const string& return values 2006-11-03 21:55:24 +00:00
director_thread_runme.java Add DetachCurrentThread back in for directors. The problems occuring on Solaris look like they were jdk bugs (1.4.2 and older) 2007-10-12 21:40:01 +00:00
director_unroll_runme.java
director_wombat_runme.java
dynamic_cast_runme.java Better error detection in some java testcases 2014-03-01 16:14:36 +00:00
enum_forward_runme.java Fix C enum forward declarations in some target languages (notably Java) 2012-05-01 18:44:22 +00:00
enum_macro_runme.java Fix syntax error when preprocessor macros are defined inside of enum lists 2013-04-18 22:48:42 +01:00
enum_thorough_proper_runme.java SF bug #3195112 - fix wrapping of enums that are type char 2011-03-26 15:28:31 +00:00
enum_thorough_runme.java SF bug #3195112 - fix wrapping of enums that are type char 2011-03-26 15:28:31 +00:00
enum_thorough_simple_runme.java SF bug #3195112 - fix wrapping of enums that are type char 2011-03-26 15:28:31 +00:00
enum_thorough_typeunsafe_runme.java SF bug #3195112 - fix wrapping of enums that are type char 2011-03-26 15:28:31 +00:00
extend_constructor_destructor_runme.java keyword variable workaround in testcase 2011-12-21 07:18:45 +00:00
extend_default_runme.java
extend_special_variables_runme.java Support special variable expansion in %extend. 2012-10-11 19:28:02 +00:00
extend_typedef_class_runme.java Fix %extend on typedef classes in a namespace using the typedef name 2011-09-08 18:18:33 +00:00
extern_declaration_runme.java
friends_runme.java Add in missing wrappers for friend functions for some target languages 2011-04-01 23:06:40 +00:00
friends_template_runme.java Add support for friend templates, including operator overloading. 2015-05-05 06:48:25 +01:00
global_namespace_runme.java Fix unary scope operator (::) (global scope) regression introduced in 2.0.0. The mangled symbol names were incorrect, sometimes resulting in types being incorrectly treated as opaque types. 2010-10-13 05:48:59 +00:00
ignore_parameter_runme.java Better error detection in some java testcases 2014-03-01 16:14:36 +00:00
imports_runme.java
inctest_runme.java test include within a structure - #1162194 2006-10-06 22:59:22 +00:00
inherit_target_language_runme.java Add test for notderived attribute in csbase/javabase typemap 2009-05-01 06:26:42 +00:00
intermediary_classname_runme.java reverse merge last commit - 11348 2009-07-02 22:40:49 +00:00
java_constants_runme.java
java_director_assumeoverride_runme.java Add assumeoverride feature option for Java directors to improve performance when it can be assumed that all methods are overridden by the Java derived classes 2012-08-13 21:41:08 +00:00
java_director_exception_feature_nspace_runme.java java_director_exception_feature_nspace test case changes 2013-11-07 22:50:08 +00:00
java_director_exception_feature_runme.java Add feature director:except for improved director exception handling in Java 2013-10-22 20:44:35 +01:00
java_director_ptrclass_runme.java Enable variable and typemap substitution in typemap kwargs, and a test that verifies this works for directorin:descriptor. 2015-07-22 11:31:21 -07:00
java_director_runme.java Java gc tests failure fix 2014-10-14 19:22:25 +01:00
java_enums_runme.java
java_jnitypes_runme.java Better error detection in some java testcases 2014-03-01 16:14:36 +00:00
java_lib_arrays_dimensionless_runme.java
java_lib_arrays_runme.java Marshalling char[] and char[ANY] to Java byte[] is now a bit easier 2011-06-17 06:41:53 +00:00
java_lib_various_runme.java Add support for java.nio.Buffer 2014-07-18 15:45:16 +03:00
java_pgcpp_runme.java Strip C comments from the java typemaps when determining to use the premature garbage collection prevention parameter 2007-10-12 21:41:27 +00:00
java_pragmas_runme.java
java_prepost_runme.java Tweak test so it works if test-suite is run using -copyctor 2012-11-13 22:17:55 +00:00
java_throws_runme.java Fix testcase comment 2009-08-16 00:09:43 +00:00
java_typemaps_proxy_runme.java Add premature garbage collection prevention parameter test 2006-10-29 22:06:35 +00:00
java_typemaps_typewrapper_runme.java
kwargs_feature_runme.java The kwargs feature no longer turns on compactdefaultargs for languages that don't support kwargs. 2014-10-21 07:34:51 +01:00
li_boost_intrusive_ptr_runme.java Fix li_boost_intrusive_ptr for various versions of boost 2014-05-18 23:29:06 +01:00
li_boost_shared_ptr_attribute_runme.java Add testcase for %attributestring on shared_ptr 2014-01-11 19:34:22 +00:00
li_boost_shared_ptr_bits_runme.java Fix shared_ptr of classes with private constructors and destructors. 2015-05-14 19:03:06 +01:00
li_boost_shared_ptr_runme.java Java gc tests failure fix 2014-10-14 19:22:25 +01:00
li_boost_shared_ptr_template_runme.java %shared_ptr fixes when the type is a template using template parameters that are typedef'd to another type. Also fixed %shared_ptr when the template parameter has a default value. 2011-08-13 00:36:12 +00:00
li_carrays_cpp_runme.java Duplicate tests that are run twice as both C and C++ tests to fix parallel make: li_carrays 2016-02-21 18:04:04 +00:00
li_carrays_runme.java Fix array overrun in li_carrays testcase 2015-07-04 20:53:49 +01:00
li_cdata_cpp_runme.java Duplicate tests that are run twice as both C and C++ tests to fix parallel make: li_cdata 2016-02-21 18:04:04 +00:00
li_cdata_runme.java Add support for cdata library for Java 2014-02-15 22:13:50 +00:00
li_std_auto_ptr_runme.java Java gc tests failure fix 2014-10-14 19:22:25 +01:00
li_std_except_runme.java
li_std_string_runme.java add in const std::string variable tests 2006-01-29 14:47:38 +00:00
li_std_vector_enum_runme.java Fix #3475492 - iterating through std::vector wrappers of enumerations. 2012-03-13 07:10:24 +00:00
li_std_vector_runme.java
li_typemaps_runme.java
long_long_runme.java Java - unsigned long long marshalling improvements for negative numbers 2016-03-31 18:56:32 +01:00
Makefile.in Remove JNI checks due to numerous spurious warnings in some versions of jdk-1.8 2016-05-01 17:35:55 +01:00
member_pointer_runme.java Remove obscure mpointer example and replace with member_pointer.i testcase and runtime examples 2007-08-09 23:47:13 +00:00
memberin_extend_runme.java add test for %extend on member variable 2009-07-09 19:56:47 +00:00
minherit2_runme.java runtime test for turning multiple inherited classes into Java interfaces 2006-10-31 22:10:34 +00:00
multiple_inheritance_abstract_runme.java interface feature test changes for the tests to pass for all languages 2016-03-03 19:45:00 +00:00
multiple_inheritance_interfaces_runme.java Add another interface test selecting just one base as an interface 2016-02-12 22:38:58 +00:00
multiple_inheritance_nspace_runme.java Change the name of the interface in %feature to be more portable 2016-03-08 08:42:16 +00:00
multiple_inheritance_runme.java
multiple_inheritance_shared_ptr_runme.java Add limited support for %interface_impl and %shared_ptr 2016-03-06 21:20:23 +00:00
namespace_forward_declaration_runme.java Fix using declarations combined with using directives with forward class 2012-08-04 20:23:07 +00:00
naturalvar_more_runme.java Add naturalvar_more testcase runtime test 2013-10-11 19:42:19 +01:00
naturalvar_onoff_runme.java %naturalvar feature fixes and documentation 2014-01-11 19:32:43 +00:00
nested_class_runme.java Nested classes support 2013-11-29 07:02:34 +00:00
nested_extend_c_runme.java Add runtime test for %extend and nested union 2014-06-02 07:09:35 +01:00
nested_structs_runme.java fixed out-of-scope nested class definitions, added a test 2013-12-04 01:53:42 +04:00
nested_template_base_runme.java Add testcase for nested inner class deriving from a templated base class and defined outside of the outer class. 2014-12-19 19:35:38 +00:00
nested_workaround_runme.java add missing nested_workaround runtime test 2009-11-17 19:28:29 +00:00
nspace_extend_runme.java Test %extend and nspace feature 2010-03-08 23:02:53 +00:00
nspace_runme.java [D] nspace support. 2011-03-13 00:32:26 +00:00
operator_overload_runme.java test virtual operators 2006-09-25 20:15:24 +00:00
overload_complicated_runme.java remove svn:executable property where applied incorrectly 2008-11-26 21:54:49 +00:00
overload_template_runme.java Rename max() to maximum() as max() is a built-in function in PHP. 2009-08-14 01:33:23 +00:00
pointer_reference_runme.java Fix typecheck typemaps for SWIGTYPE *const& 2011-01-30 00:42:27 +00:00
preproc_line_file_runme.java Fix preproc_line_file test 2015-01-26 22:35:17 +00:00
primitive_ref_runme.java Better error detection in some java testcases 2014-03-01 16:14:36 +00:00
profiletest_runme.java
README Fix assorted comment and documentation typos 2014-02-23 17:15:22 +13:00
rename1_runme.java more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename2_runme.java more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename3_runme.java more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename4_runme.java more thorough %rename tests including conversion operator %rename 2007-05-26 00:05:32 +00:00
rename_pcre_encoder_runme.java Add support for case conversion characters in regex substitutions. 2013-10-15 07:17:56 +01:00
rename_pcre_enum_runme.java Add support for "[not]regexmatch" and "regextarget" to %rename. 2010-07-22 17:02:10 +00:00
rename_wildcard_runme.java Fix %rename override of wildcard %rename for templates 2016-11-28 22:50:52 +00:00
ret_by_value_runme.java
rname_runme.java Fix rname testcase when run under OpenJDK icedtea on Linux because libjvm.so also contains a class called Base. Also remove need for Go specific handling in this testcase. 2011-01-05 21:15:10 +00:00
sizet_runme.java size_t tests 2006-10-17 21:41:39 +00:00
smart_pointer_const_overload_runme.java Warning suppressions in tests 2014-12-22 20:35:13 +00:00
smart_pointer_ignore_runme.java Fix some test-suite warnings 2016-10-16 19:10:35 +01:00
special_variable_macros_runme.java Document patch #33 from previous commit and complete run time tests 2013-04-18 23:20:48 +01:00
special_variables_runme.java Two additional special variable are expanded in %exception - $parentname 2012-10-11 19:24:24 +00:00
template_classes_runme.java update to use proxy terminology 2006-06-29 21:17:30 +00:00
template_default_arg_runme.java
template_default_class_parms_runme.java Fix abort using template default parameters 2014-12-28 10:39:53 +00:00
template_default_class_parms_typedef_runme.java Fix some scope and symbol lookup problems when template default parameters are being used with typedef - add the fully expanded template into the c symbol table and scope table. 2011-07-01 22:59:55 +00:00
template_methods_runme.java Fix %template seg fault on some cases of overloading the templated method. 2009-08-15 10:40:19 +00:00
template_namespace_forward_declaration_runme.java Fix using declarations and templates. %template was putting the 2012-08-04 20:24:22 +00:00
template_nested_runme.java fixed %template within %extend, test added 2013-12-19 02:11:22 +04:00
template_nested_typemaps_runme.java minor improvement to testcase 2009-10-24 21:58:06 +00:00
template_partial_specialization_runme.java Fix partial specialization and explicit specialization lookup 2009-10-20 17:50:36 +00:00
template_partial_specialization_typedef_runme.java Fix partial specialization and explicit specialization lookup 2009-10-20 17:50:36 +00:00
template_template_parameters_runme.java Fix template template parameters with default arguments 2007-12-06 22:35:43 +00:00
template_templated_constructors_runme.java Fix templated constructors regression 2014-12-09 23:48:37 +00:00
template_typedef_inherit_runme.java Add testcase for bug #3378145 which was fixed in r12764 2011-07-28 06:29:20 +00:00
template_typedef_typedef_runme.java Work around D test suite failure due to issue #254. 2014-11-06 23:04:35 +01:00
template_using_directive_and_declaration_forward_runme.java Fix using declarations and templates. %template was putting the 2012-08-04 20:24:22 +00:00
typemap_arrays_runme.java Fix expansion in array typemaps 2010-12-14 21:38:36 +00:00
typemap_namespace_runme.java
typemap_out_optimal_runme.java add test for optimal attribute in out typemap 2009-04-30 06:12:32 +00:00
unions_runme.java Better error detection in some java testcases 2014-03-01 16:14:36 +00:00
using_directive_and_declaration_forward_runme.java Fix using declarations combined with using directives with forward class 2012-08-04 20:23:07 +00:00
using_directive_and_declaration_runme.java Fix using declarations combined with using directives with forward class 2012-08-04 20:23:07 +00:00
using_pointers_runme.java
varargs_runme.java
virtual_poly_runme.java
wallkw_runme.java Fix wallkw runtime test since D was added 2010-12-08 19:58:19 +00:00

See ../README for common README file.

The Java implementation of the test-suite is a little different to the other languages in that all of SWIG's output goes into a subdirectory named after the individual test case. This is so that all the shadow classes can be compiled as Java classes which have to go into separate files. Otherwise the Makefile wouldn't know which .java files would be relevant to the testcase. For this to work the testcase must go into a Java package.

Any testcases which have _runme.java appended after the testcase name will be detected and run.