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

javac erroneously compiles // style comment containing '\u000A'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P5
    • None
    • 1.1.3
    • tools
    • None
    • generic
    • solaris_2.5.1

    Description

      vvvvv martin.fujitani@Eng 1997-11-14 vvvvv

      TO REPRODUCE
      ============
      javac -debug -verbose mystring.java

      mystring.java contains the following comments:

      // /* '\u000A', */
      // '\u000A',
      /* '\u000A', */
      // the // comment doesn't work for the line above.
      // the javac tries to compile it.



      SYMPTOMS
      =========
      [parsed mystring.java in 2314 ms]
      [loaded c:\martinf\jdk1.1.3\bin\..\lib\classes.zip(java/lang/Object.class) in 12
      0 ms]
      mystring.java:11: Invalid character constant.
      // /* '\u000A', */
                     ^
      mystring.java:11: Class or interface declaration expected.
      // /* '\u000A', */
                     ^
      mystring.java:12: Invalid character constant.
      // '\u000A',
                 ^


      ^^^^^ martin.fujitani@Eng 1997-11-14 ^^^^^

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: