#21 SUB character is rejected in comments

open
nobody
None
5
2002-09-09
2002-09-09
No

The Pizza compiler fails the following javac regression
test:

/*
* @test %W% %E%
* @bug 4330479
* @summary ASCII SUB character is rejected in
multi-line comments
* @author gafter
*
* @compile SubChar.java
*/

/*
Note: this source file has been crafted very carefully
to end with the
unicode escape sequence for the control-Z character
without a
following newline. The scanner is specified to allow
control-Z there.
If you edit this source file, please make sure that
your editor does
not insert a newline after that trailing line.
*/

/** \u001A */
class SubChar {
public static void main(String args[]) {
return;
}
}
/* \u001A */
\u001A

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks