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

--patch-module java.base= may fail with "cyclic inheritance involving Object"

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      To reproduce:
      -create a temporary source directory ($DIR)
      -copy java/lang/Byte.java, java/lang/Class.java, java/lang/String.java into $DIR
      -run:
      javac --patch-module java.base=$DIR -d <a-temporary-output-directory> $DIR/java/lang/Class.java

      This yields:
      ---
      <skip>
      java/lang/Byte.java:56: error: cyclic inheritance involving Object
      public final class Byte extends Number implements Comparable<Byte>, Constable {
                                      ^
      1 error
      ---

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              jlahoda Jan Lahoda
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: