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

JVM InstanceKlass Methods For Obtaining Package/Module Should Be Moved to Klass

XMLWordPrintable

    • b120

      Currently InstanceKlass contains two public methods for obtaining an InstanceKlass' PackageEntry or ModuleEntry. To avoid constantly casting a Klass * to an InstanceKlass, both package() and module() methods should be a virtual method on Klass. This will avoid the situation where a cast like the following must be made:

      ModuleEntry* module_entry = InstanceKlass::cast(klass)->module();

            rprotacio Rachel Protacio (Inactive)
            lfoltan Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: