-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.4.0
-
generic
-
solaris_7
frog$ cat -n T.java
1 class A {
2 private class T {};
3 static T[] a = null;
4 }
5
6 class B {
7 int n = A.a.length;
8 }
frog$ javac1.4 T.java
+ /usr/local/java/jdk1.4.0/solsparc/bin/javac T.java
T.java:7: length in Array is not defined in a public class or interface; cannot be accessed from outside package
int n = A.a.length;
^
1 error
frog$
1 class A {
2 private class T {};
3 static T[] a = null;
4 }
5
6 class B {
7 int n = A.a.length;
8 }
frog$ javac1.4 T.java
+ /usr/local/java/jdk1.4.0/solsparc/bin/javac T.java
T.java:7: length in Array is not defined in a public class or interface; cannot be accessed from outside package
int n = A.a.length;
^
1 error
frog$