Class::getPackage() no longer returns null for a class in the unnamed package

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • None
    • Affects Version/s: 9
    • Component/s: core-libs
    • None

      As reported here: http://java9.wtf/default-package/

      Prior to 9, this method would return null for a class in the unnamed package. As of 9, it returns a Package object. This is an incompatible and undocumented change.

            Assignee:
            Mandy Chung (Inactive)
            Reporter:
            Mark Reinhold
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: