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

Secondary heredoc eating wrong lines.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • core-libs
    • None
    • b125
    • generic
    • generic

    Description

      If multiple heredoc are expressed on the same statement line, lines are taken from the next line, not after lines read by other heredoc.

      print(<<EOD1); print(<<EOD2);
      This is line 1.
      This is line 2.
      EOD1
      This is line 3.
      This is line 4.
      EOD2

      Expected:

      This is line 1.
      This is line 2.
      This is line 3.
      This is line 4.

      Actual:

      This is line 1.
      This is line 2.
      This is line 1.
      This is line 2.
      EOD1
      This is line 3.
      This is line 4.

      Attachments

        Activity

          People

            hannesw Hannes Wallnoefer
            jlaskey Jim Laskey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: