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

Here documents: how to avoid string interpolation?

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b80
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description


        This was reported via nashorn-dev openjdk alias. http://mail.openjdk.java.net/pipermail/nashorn-dev/2015-February/004204.html

        Email content here for reference:

        Hi

        How can I avoid string interpolation in here documents with Nashorn? In
        other words: what if the here document contains the literal string
        "${a}"? The user guide section on here documents [1] doesn't tell how to
        do this.
        If this is not available yet, shall I create a bug report for this?

        Kind regards, Anthony

        [1]
        http://docs.oracle.com/javase/8/docs/technotes/guides/scripting/nashorn/shell.html#sthref26

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mhaupt Michael Haupt
                  Reporter:
                  sundar Sundararajan Athijegannathan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: