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

Methodhandles/JSR292: NullPointerException (NPE) thrown instead of AbstractMethodError (AME)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • hs25
    • 8
    • hotspot
    • Confirmed on x86, likely on other architectures.

    • b53
    • x86
    • generic

        Various ute "defmeth" tests fail when a NullPointerException is thrown instead of an AbstractMethodError.
        This occurs 24 times across a variety of cases in two different tests. These failures can be seen in the attached file which includes the failing cases from a logfile.

        The cause of this appears to be failure to translate null pointer exceptions into abstract method errors occurring in code compiled by methodHandles_x86.cpp. It appears that NPE->AME is the convention; see vtableStubs_x86.cpp, for example (search for ame_addr) and templateTable_x86_32.cpp (search for no_such_method).

        A fix can be applied to jump_from_method_handle in methodHandles_x86.cpp.

              drchase David Chase (Inactive)
              drchase David Chase (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: