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

[lworld] JVM should allow inline classes to declare super classes other than jlO

XMLWordPrintable

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

      http://cr.openjdk.java.net/~briangoetz/valhalla/sov/

      The latest set of documents from here allow an inline class to mention a super class other than jlO:

      Supertypes
      Inline classes can implement interfaces. They cannot extend arbitrary classes, but they can extend a limited category of abstract classes – those with no fields, empty no-arg constructor bodies, no other constructors, no instance initializers, no synchronized methods, and whose superclasses all meet this same set of conditions (Object and Number are examples of such classes.)

      While the full spec may take a while to implement, may I request that the check for only jlO being allowed as a super class be relaxed to allow any abstract class to begin with and then tighten the requirements per above ??

      Otherwise, it would block langtools from testing ... TIA

        1. X.class
          1 kB
        2. X$ref.class
          0.1 kB

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

              Created:
              Updated:
              Resolved: