Community
Participate
Working Groups
I forgot closing an /* */ comment at the end of a Java source file (the comment was placed outside the top level class code). The eclipse Java editor did not mark that error and also the class icon in the class browser did not indicate an error. (However, the package browser indicated that the package contains an error and at runtime an compilation error occured when I accessed the class via Java reflection.) With kind regards Dirk Petzoldt
- which build? - was the error maybe there before? - did you save? - autobuild on or off? - did you build? - anything in .log? Please reopen once above questions are answered Note: works for me using I20040428
-Build is M8 -the error can be reproduced by deleting the last two characters of a source file like public class MyClass { // some code } /* // some comments */ -save doesn't help -autobuild on -does not produce messages in .log
> that the package contains an error What about the Java file in the Package Explorer?
Same problem in the package explorer: The class node is clean, the (parent) package node is dirty (You may want to reproduce the bug yourself ... ?)
The problem reported by the reconciler has a very large length which exceeds the source's end: position= Position (id=5059) offset= 44 length= 51
I will have a look.
Fixed and released in HEAD. Regression tests added in ParserTest (test015, 016, 017 and 018) and ASTConverterTest2.test0551. Change in Scanner (update of the current position in case of ArrayIndexOutOfBoundsException). Applied the same change in PublicScanner.
Verified for 3.0M9