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

[lworld] Abstract classes should not implement IdentityObject

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • tools
    • generic
    • generic

      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.

            sadayapalam Srikanth Adayapalam (Inactive)
            sadayapalam Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: