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:
William S Fulton 2005-04-28 22:13:32 +00:00
commit dadc8efd14
10 changed files with 65 additions and 65 deletions

View file

@ -14,15 +14,15 @@ public class director_default_runme {
public static void main(String argv[]) {
{
MyFoo a = new MyFoo();
a = new MyFoo(10);
director_default_MyFoo a = new director_default_MyFoo();
a = new director_default_MyFoo(10);
}
MyFoo a = new MyFoo();
if (!a.GetMsg().equals("MyFoo-default")) {
director_default_MyFoo a = new director_default_MyFoo();
if (!a.GetMsg().equals("director_default_MyFoo-default")) {
throw new RuntimeException ( "Test 1 failed" );
}
if (!a.GetMsg("boo").equals("MyFoo-boo")) {
if (!a.GetMsg("boo").equals("director_default_MyFoo-boo")) {
throw new RuntimeException ( "Test 2 failed" );
}
@ -37,15 +37,15 @@ public class director_default_runme {
}
}
class MyFoo extends Foo {
public MyFoo() {
class director_default_MyFoo extends Foo {
public director_default_MyFoo() {
super();
}
public MyFoo(int i) {
public director_default_MyFoo(int i) {
super(i);
}
public String Msg(String msg) {
return "MyFoo-" + msg;
return "director_default_MyFoo-" + msg;
}
}