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

292 cleanup from default method code assessment

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b66

      Backports

        Description

        Code bugs in 292 code identified during default method code assessment:
        Introduced in 8.

        1. methodHandles:init_method_memberName (get latest fix from John Rose)
          Ensure resolved_method() is not null before dereferencing m->method_holder()
          Ensure m_klass is not null before dereferencing

        Could cause a crash - so worth fixing in 8 update.

        2. klassItable::method_count_for_interface
        #ifdef ASSERT
          while (nof_methods = 0)

        // probably supposed to be while (nof_methods > 0)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mhaupt Michael Haupt
                  Reporter:
                  acorn Karen Kinnear (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: