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

JShell: Raw string literals doesn't work with java comments

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: tools
    • Labels:

      Description

      Write in jshell

      jshell> `/**hello*/`
      $23 ==> " "

      jshell> `//hello`
      | Error:
      | unclosed string literal
      | `//hello`
      | ^
      | Error:
      | reached end of file while parsing
      | `//hello`
      | ^

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfield Robert Field
                Reporter:
                anazarov Andrey Nazarov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: