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

jshell tool: automatic imports are excluded on /reload causing it to fail

XMLWordPrintable

    • b161
    • Not verified

        For example ---

        jshell> Level<alt-F1>i
        0: Do nothing
        1: import: java.lang.System.Logger.Level
        2: import: java.util.logging.Level
        Choice: 2
        Imported: java.util.logging.Level

        jshell> Level.ALL
        $2 ==> ALL

        jshell> /reload
        | Restarting and restoring state.
        -: Level.ALL
        | Error:
        | cannot find symbol
        | symbol: variable Level
        | Level.ALL
        | ^---^

        jshell>

              rfield Robert Field (Inactive)
              rfield Robert Field (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: