source: trunk/gcc/libjava/testsuite/libjava.lang/final_int.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 382 bytes
Line 
1// Class final_int
2// Generated on Sat Feb 12 01:27:46 PST 2000
3
4class final_int {
5
6 final int x = 30;
7
8 class foo {
9 int bar () {
10 return x;
11 }
12 }
13 void bar () {
14 int x = this.new foo ().bar ();
15 System.out.println (x);
16 }
17 public static void main (String[] arg)
18 {
19 System.out.println ("Testing class `final_int'...");
20 new final_int().bar ();
21 }
22}
Note: See TracBrowser for help on using the repository browser.