summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/final_int.java
blob: e225c7b2822b6765989b3aa7fb21acf39d0e56b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Class final_int
// Generated on Sat Feb 12 01:27:46 PST 2000

class final_int {

  final int x = 30;

  class foo {
    int bar () {
      return x;
    }
  }
  void bar () {
    int x = this.new foo ().bar ();
    System.out.println (x);
  }
  public static void main (String[] arg)
  {
    System.out.println ("Testing class `final_int'...");
    new final_int().bar ();
  }
}