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

Some use of Klass* should be replaced by InstanceKlass*

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b06

      Description

      Some HotSpot APIs use Klass*, even though it's clear that only InstanceKlass* can be used. Examples:

      Klass* SystemDictionary::resolve_instance_class_or_null(Symbol* class_name, Handle class_loader, Handle protection_domain, TRAPS);

      Array<Klass*>* InstanceKlass::local_interfaces();

      This has led to unnecessary type casting in the code. We should replace the Klass* with InstanceKlass*.

        Attachments

          Activity

            People

            Assignee:
            iklam Ioi Lam
            Reporter:
            iklam Ioi Lam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: