summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/update_outer.java
blob: b2e8437039532e36557fce1fc3e4d7ec85ad0ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Class update_outer
// Generated on Thu Nov 18 21:37:21 UTC 1999
//

class update_outer {

  private String foo;

  class update_outer_inner {
    void test () {
      foo += " M$";
      System.out.println ("foo=`"+foo+"'");
    }


  }
  void foo ()
  {
    foo = "780";
    update_outer_inner inn = this.new update_outer_inner ();
    inn.test ();
  }  
  public static void main (String[] arg)
  {
    System.out.println ("Testing class `update_outer'...");
    new update_outer().foo ();
  }
}