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

import of class declared in translation unit: allowed

    XMLWordPrintable

Details

    • mantis
    • generic
    • solaris_8

    Description

      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 }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: