~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/java/director_default_runme.java

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 
15
15
  public static void main(String argv[]) {
16
16
    {
17
 
      MyFoo a = new MyFoo();
18
 
      a = new MyFoo(10);
 
17
      director_default_MyFoo a = new director_default_MyFoo();
 
18
      a = new director_default_MyFoo(10);
19
19
    }
20
20
 
21
 
    MyFoo a = new MyFoo();
22
 
    if (!a.GetMsg().equals("MyFoo-default")) {
 
21
    director_default_MyFoo a = new director_default_MyFoo();
 
22
    if (!a.GetMsg().equals("director_default_MyFoo-default")) {
23
23
      throw new RuntimeException ( "Test 1 failed" );
24
24
    }
25
 
    if (!a.GetMsg("boo").equals("MyFoo-boo")) {
 
25
    if (!a.GetMsg("boo").equals("director_default_MyFoo-boo")) {
26
26
      throw new RuntimeException ( "Test 2 failed" );
27
27
    }
28
28
 
37
37
  }
38
38
}
39
39
 
40
 
class MyFoo extends Foo {
41
 
    public MyFoo() {
 
40
class director_default_MyFoo extends Foo {
 
41
    public director_default_MyFoo() {
42
42
      super();
43
43
    }
44
 
    public MyFoo(int i) {
 
44
    public director_default_MyFoo(int i) {
45
45
      super(i);
46
46
    }
47
47
    public String Msg(String msg) { 
48
 
      return "MyFoo-" + msg; 
 
48
      return "director_default_MyFoo-" + msg; 
49
49
    }
50
50
}
51
51