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

LinkResolver::resolve_field resolved_klass cannot be null

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 21
    • hotspot
    • b04

      There's a case for throwing NSFE in linkResolver that is impossible since resolved_klass can't be null.

      The name is misleading. It's not really the declared class owner of the field, it's the referenced class, but it is resolved with klass_at.

                      getstatic Field x:"LMyClass;";

         // resolve klass
        _resolved_klass = pool->klass_ref_at(index, CHECK);

      We usually refer to this as REFC.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: