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

Improve some IncompatibleClassChangeError messages.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 11
    • hotspot
    • None
    • b19

        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

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

                Created:
                Updated:
                Resolved: