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

import of class declared in translation unit: allowed

XMLWordPrintable

    • mantis
    • generic
    • solaris_8

      Due to a clarification in the spec (see 4661751) it is legal to import
      a type declared in the same translation unit, but javac rejects that
      code. Javac should accept that code.

           1 package p1;
           2 import p1.T;
           3
           4 class T {
           5 public static void main(String[] args) {
           6 }
           7 }

            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: