JDK1.1 compiler does not accept code accepted by JDK1.0.2 compiler

XMLWordPrintable

    • x86, sparc
    • solaris_2.5, windows_nt

      The following code compiles with javac of JDK1.0.2 but fails to compile
      with JDK1.1 final:

      % cat x.java
      package x;
       
      public class x {
        public void foo(x.x a) {}
      }

      % javac x.java
      x.java:4: Class x.x. x not found in type declaration.
        public void foo(x.x a) {}
                    ^
      1 error

      We bought a third party tool that we want to ship with our C++ compiler and
      this tool produces code similar to the above.
      ----------------------------------------------

      mukesh.kapoor@Eng 1997-05-06
      If this bug won't be fixed then please document clearly that JDK1.1 is
      not fully source compatible with JDK1.0.2. Please list all the areas that
      break source compatibility.

            Assignee:
            Gilad Bracha (Inactive)
            Reporter:
            Mukesh Kapoor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: