Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4402890

incorrect access given to array types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 1.4.0
    • tools
    • 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$

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: