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
|
|
@ -17,19 +17,19 @@ public class director_protected_runme {
|
|||
|
||||
Bar b = new Bar();
|
||||
Foo f = b.create();
|
||||
FooBar fb = new FooBar();
|
||||
FooBar2 fb2 = new FooBar2();
|
||||
director_protected_FooBar fb = new director_protected_FooBar();
|
||||
director_protected_FooBar2 fb2 = new director_protected_FooBar2();
|
||||
|
||||
{
|
||||
String s = fb.used();
|
||||
if (!s.equals("Foo::pang();Bar::pong();Foo::pong();FooBar::ping();"))
|
||||
throw new RuntimeException( "bad FooBar::used" );
|
||||
if (!s.equals("Foo::pang();Bar::pong();Foo::pong();director_protected_FooBar::ping();"))
|
||||
throw new RuntimeException( "bad director_protected_FooBar::used" );
|
||||
}
|
||||
|
||||
{
|
||||
String s = fb2.used();
|
||||
if (!s.equals("FooBar2::pang();Bar::pong();Foo::pong();FooBar2::ping();"))
|
||||
throw new RuntimeException( "bad FooBar2::used" );
|
||||
if (!s.equals("director_protected_FooBar2::pang();Bar::pong();Foo::pong();director_protected_FooBar2::ping();"))
|
||||
throw new RuntimeException( "bad director_protected_FooBar2::used" );
|
||||
}
|
||||
|
||||
{
|
||||
|
|
@ -46,8 +46,8 @@ public class director_protected_runme {
|
|||
|
||||
{
|
||||
String s3 = fb.pong();
|
||||
if (!s3.equals("Bar::pong();Foo::pong();FooBar::ping();"))
|
||||
throw new RuntimeException(" bad FooBar::pong" );
|
||||
if (!s3.equals("Bar::pong();Foo::pong();director_protected_FooBar::ping();"))
|
||||
throw new RuntimeException(" bad director_protected_FooBar::pong" );
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
@ -68,18 +68,18 @@ public class director_protected_runme {
|
|||
}
|
||||
}
|
||||
|
||||
class FooBar extends Bar {
|
||||
class director_protected_FooBar extends Bar {
|
||||
public String ping() {
|
||||
return "FooBar::ping();";
|
||||
return "director_protected_FooBar::ping();";
|
||||
}
|
||||
}
|
||||
|
||||
class FooBar2 extends Bar {
|
||||
class director_protected_FooBar2 extends Bar {
|
||||
public String ping() {
|
||||
return "FooBar2::ping();";
|
||||
return "director_protected_FooBar2::ping();";
|
||||
}
|
||||
public String pang() {
|
||||
return "FooBar2::pang();";
|
||||
return "director_protected_FooBar2::pang();";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue