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

Some use of Klass* should be replaced by InstanceKlass*

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 12
    • hotspot
    • b06

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

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

              Created:
              Updated:
              Resolved: