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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-libs
    • Labels:

      Description

      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...

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: