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

« back to all changes in this revision

Viewing changes to Examples/test-suite/java/director_abstract_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();
 
17
      director_abstract_MyFoo a = new director_abstract_MyFoo();
18
18
 
19
 
      if (!a.ping().equals("MyFoo::ping()")) {
 
19
      if (!a.ping().equals("director_abstract_MyFoo::ping()")) {
20
20
          throw new RuntimeException ( "a.ping()" );
21
21
      }
22
22
 
23
 
      if (!a.pong().equals("Foo::pong();MyFoo::ping()")) {
 
23
      if (!a.pong().equals("Foo::pong();director_abstract_MyFoo::ping()")) {
24
24
          throw new RuntimeException ( "a.pong()" );
25
25
      }
26
26
 
27
 
      BadFoo b = new BadFoo();
 
27
      director_abstract_BadFoo b = new director_abstract_BadFoo();
28
28
      try {
29
29
        b.ping();
30
30
        System.out.println( "Test failed. An attempt to call a pure virtual method should throw an exception" );
35
35
  }
36
36
}
37
37
 
38
 
class MyFoo extends Foo {
 
38
class director_abstract_MyFoo extends Foo {
39
39
    public String ping() {
40
 
        return "MyFoo::ping()";
 
40
        return "director_abstract_MyFoo::ping()";
41
41
    }
42
42
}
43
43
 
44
 
class BadFoo extends Foo {
 
44
class director_abstract_BadFoo extends Foo {
45
45
}
46
46