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

javac fails to check the validity of import declaration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • tools
    • merlin
    • generic
    • solaris_7
    • Verified

      jdk1.3's javac (java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-U)
      Java HotSpot(TM) Client VM (build 1.3.0rc1-S, interpreted mode))

      fails to check the validity of the import declaration in the following test case:

      -----------------------------------------------------
      /*
       * @test @(#)NoClass.java 1.1 98/01/13
       * @bug 4041851
       * @summary The gramamr allows java files without class or interface
       * declarations; when the compiler encountered this, it failed
       * to check the validity of import declarations.
       * @author turnidge
       *
       * @compile/fail -nowrite NoClass.java
       */

      import nonexistent.pack.cls;
      -----------------------------------------------------

            busersunw Btplusnull User (Inactive)
            tpreisle Thomas Preisler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: