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

[lworld] Abstract classes should not implement IdentityObject

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      As of JDK-8237069, abstract classes implement the new top interface IdentityObject.

      This is problematic as of the latest specification given in
      http://cr.openjdk.java.net/~briangoetz/valhalla/sov/02-object-model.html

      which allows abstract classes that meet certain restrictions to be super types of value/inline classes.

      Javac should not inject the super interface IdentityObject for abstract classes because, then that would result in the inline class implementing both InlineObject and IdentityObject which are mutually exclusive.

      (Note that express injection and persistence of the new top interfaces in class files itself needs to be done away with - this is a noisier change to be co-ordinated across components and will be taken up later - see JDK-8242612)

      The present ticket is to enable JDK-8242900 as otherwise JDK-8242900 is DOA.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              sadayapalam Srikanth Adayapalam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: