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

Improve some IncompatibleClassChangeError messages.

    XMLWordPrintable

    Details

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

      Backports

        Description

        This change improves some IncompatibleClassChangeError messages by printing the classes involved and adds tests for the messages.

        ---

        If a class is loaded requiring an interface that's already loaded as class:

        Before:

        "Implementing class"

        After:

        "Class test.ICC3_B can not implement test.ICC3_A, because it is not an interface"

        ---

        If a class is loaded requiring a super class that has already been loaded as interface:

        Implemented a test. Message left unchanged:

        "class test.ICC4_B has interface test.ICC4_iA as super class"

        ---

        If an interface method is called but the class of the object at runtime does not implement the interface:

        There was no message before.

        After:

        "Receiver class test.ICC5_B does not implement the interface test.ICC5_B defining the method to be called"

        No tests implemented for this message

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                goetz Goetz Lindenmaier
                Reporter:
                goetz Goetz Lindenmaier
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: