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

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

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2
    • 16
    • 15
    • tools
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: