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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 9
    • 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.

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

              Created:
              Updated:
              Resolved: