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

With change to unnamed package (6399404) javac -Xprint now prints empty string as package

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 6
    • 6
    • core-libs

      With the change to unnnamed package names (see 6399404), javac -Xprint on classes in the default package now prints the empty string as the package name. It should print now package declaration.

      echo public class A {} > A.java
      javac -Xprint A.java
      results in:

      package ;

      public class A {
      ....etc...

            darcy Joe Darcy
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: