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

Parse error for import declaration

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • tools
    • None
    • generic
    • generic

      Please see the following test and error message. Jdk1.3 javac can compile T.java successfully.

      % cat T.java
      import W;
      public class T {
      }

      % cat W.java
      public interface W {
      }

      %/net/koori.sfbay/a/v01/jdk/1.4/beta/binaries/solsparc/bin/javac -verbose T.java
      [parsing started T.java]
      T.java:1: '.' expected
      import W;
              ^
      [parsing completed 464ms]
      [checking T]
      [loading /net/koori.sfbay/a/v01/jdk/1.4/beta/binaries/solsparc/jre/lib/rt.jar(java/lang/Object.class)]
      [total 2268ms]
      1 error

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: