Community
Participate
Working Groups
This code compiles in Java 1.5/ANT, but generates an error in Eclipse Version 3.1.0 build id: 200411050810. The code is: private Result p$Shared3(final int yyStart) throws IOException { int yyC; int yyIndex; Character yyValue; ParseError yyError = ParseError.DUMMY; // Option 1. yyC = character(yyStart); if (-1 != yyC) { yyIndex = yyStart + 1; yyValue = new Character((char)yyC); if (('\n' != yyValue) && ('\r' != yyValue)) { return new SemanticValue(yyValue, yyIndex, yyError); } } // Done. return yyError; } The error is that on both lines: if (('\n' != yyValue) && ('\r' != yyValue)) { The compiler in Eclipse reports "Incompatible types Char and Character"
Autoboxing is not supported yet.
Added AutoBoxing test #23
fixed.
Verified in 200412140800