summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/private_direct_write.java
blob: 3c7a887f4613a1120780b4df89538aacefd8d68e (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
// Class private_direct_write
// Generated on Tue Nov 16 15:05:54 UTC 1999
//

class private_direct_write {

  private int foo;

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