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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P2 P2
    • 16
    • 15
    • tools
    • None
    • b13

      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
      ---

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

              Created:
              Updated:
              Resolved: