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

REGRESSION: programs with unterminated // comment don't compile

    Details

    • Subcomponent:
    • Resolved In Build:
      fcs
    • CPU:
      generic, x86
    • OS:
      generic, windows_2000

      Backports

        Description

        In all previous J2SE/JDK releases, it was possible to compile a program that ended with an unterminated single-line comment. The JLS, however, was reasonably clear that such programs should not compile (Section 3.4). Therefore, the compiler was modified to reject such programs (See Bug 4316827). Unfortunately, many existing programs do end in unterminated single line comments, so the fix to 4316827 results in significant compatibility problems.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  gafter Neal Gafter
                  Reporter:
                  jjb Josh Bloch
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: