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:
367 bytes
|
Line | |
---|
1 | // A reference to a String shouldn't cause an interface to be
|
---|
2 | // initialized.
|
---|
3 |
|
---|
4 | interface I
|
---|
5 | {
|
---|
6 | String z = "zardoz";
|
---|
7 | int q = stringconst.out ("q", 0);
|
---|
8 | }
|
---|
9 |
|
---|
10 | public class stringconst
|
---|
11 | {
|
---|
12 | public static int out (String s, int i)
|
---|
13 | {
|
---|
14 | System.out.println (s + "=" + i);
|
---|
15 | return i;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public static void main (String[] args)
|
---|
19 | {
|
---|
20 | System.out.println (I.z);
|
---|
21 | }
|
---|
22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.