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

JLS2 3.7 Minor bug in comment specifications

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.1.3
    • specification
    • generic
    • solaris_2.5.1

      The Java language specification requires that all comments that start
      with '//' ends with a new line character. So strictly speaking, a sequence
      of characters that starts with '//' and ends with the end of file <EOF>
      without a preceding new line character is an illegal comment in a Java
      program.

      This is a difference between the compiler and the spec, it seems appropriate
      to fix the spec in this case, but I am filing it as a bug report here because
      I don't know how to file a bug report on the spec.

      Or do others disagree with me and believe it is a bug with the compiler?

            dstoutamsunw David Stoutamire (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: