JShell may produce too many preview warnings

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 23, 24
    • Component/s: tools
    • None

      Consider the following JShell session:
      ```
      $ jshell --enable-preview -C-Xlint:all
      Warning:
      module imports are a preview feature and may be removed in a future release.
      import module java.base;
             ^
      | Welcome to JShell -- Version 24-internal
      | For an introduction type: /help intro

      jshell> 1
      | Warning:
      | module imports are a preview feature and may be removed in a future release.
      | 1
      | ^
      $1 ==> 1

      jshell> 2
      | Warning:
      | module imports are a preview feature and may be removed in a future release.
      | 2
      | ^
      | Warning:
      | class file for uses preview features of Java SE 24.
      | 2
      | ^
      $2 ==> 2


      ```

      The preview warnings appear to be obnoxious.

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

              Created:
              Updated: