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

JShell may produce too many preview warnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 23, 24
    • 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.

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

              Created:
              Updated: