JShell: Fails compilation: new Object().getClass().getSuperclass()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: tools
    • b153
    • Verified

      jshell> new Object().getClass().getSuperclass()
      | Error:
      | illegal start of type
      | new Object().getClass().getSuperclass()
      | ^
      | Error:
      | <identifier> expected
      | new Object().getClass().getSuperclass()
      | ^
      | Error:
      | wrong number of type arguments; required 1
      | new Object().getClass().getSuperclass()
      | ^
      | Error:
      | cannot find symbol
      | symbol: class $1
      | new Object().getClass().getSuperclass()
      | ^
      | Error:
      | cannot find symbol
      | symbol: variable $1
      | new Object().getClass().getSuperclass()
      | ^


      —Dan

            Assignee:
            Robert Field (Inactive)
            Reporter:
            Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: