Fix for the imports testcase breaking - many of the tests have classes with the same names and so these were being compiled as .class files in this directory. Solved this by giving these classes unique names based on the test name.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7175 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c2e9c01ab1
commit
dadc8efd14
10 changed files with 65 additions and 65 deletions
|
|
@ -14,17 +14,17 @@ public class director_abstract_runme {
|
|||
|
||||
public static void main(String argv[]) {
|
||||
|
||||
MyFoo a = new MyFoo();
|
||||
director_abstract_MyFoo a = new director_abstract_MyFoo();
|
||||
|
||||
if (!a.ping().equals("MyFoo::ping()")) {
|
||||
if (!a.ping().equals("director_abstract_MyFoo::ping()")) {
|
||||
throw new RuntimeException ( "a.ping()" );
|
||||
}
|
||||
|
||||
if (!a.pong().equals("Foo::pong();MyFoo::ping()")) {
|
||||
if (!a.pong().equals("Foo::pong();director_abstract_MyFoo::ping()")) {
|
||||
throw new RuntimeException ( "a.pong()" );
|
||||
}
|
||||
|
||||
BadFoo b = new BadFoo();
|
||||
director_abstract_BadFoo b = new director_abstract_BadFoo();
|
||||
try {
|
||||
b.ping();
|
||||
System.out.println( "Test failed. An attempt to call a pure virtual method should throw an exception" );
|
||||
|
|
@ -35,12 +35,12 @@ public class director_abstract_runme {
|
|||
}
|
||||
}
|
||||
|
||||
class MyFoo extends Foo {
|
||||
class director_abstract_MyFoo extends Foo {
|
||||
public String ping() {
|
||||
return "MyFoo::ping()";
|
||||
return "director_abstract_MyFoo::ping()";
|
||||
}
|
||||
}
|
||||
|
||||
class BadFoo extends Foo {
|
||||
class director_abstract_BadFoo extends Foo {
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue