Community
Participate
Working Groups
Type ArrayEnumeration e and assume that ArrayEnumeration isn't imported yet. The quick fix notifying to import ArrayEnumeration doesn't show up till after I type the entire line! ArrayEnumeration e = null; Right after I type "null;", seeing no errors I hit return. But then the quick fix pops up. Since I am on a different line, I can't use ctrl-1 to quickly pop the fix up ... but I have to go to the previous line, or drag my mouse over to the fix. To make matters worse, if I start typing on that second line ... i.e. ArrayEnumeration e = null; String s The quick fix doesn't even appear. I can go on typing like this for some time. Not until after I am finished typing the second, will that quick fix appear, but only if I wait long enough. If I start the third line ... no quick fix.
This has to do with the error tollerance of the AST. A missing semicolon is (unfortunatly) already enough to prevent the creation of other statements. In the given examples I think for 'ArrayEnumeration e' it is clear that there won't be an AST. But for ArrayEnumeration e = null; String s I think the first statement should appear. Moving to jdt.core.
*** Bug 44964 has been marked as a duplicate of this bug. ***
We don't have error recovery at the statement level. A syntax error will prevent the AST from being created, because the rule cannot be reduced in the parser.
Close as duplicate of bug 42253. *** This bug has been marked as a duplicate of 42253 ***
Verified for 3.2 M5 using build I20060215-0010.
Note that bug 44694 is_not_ a duplicate of this bug...
Sorry, you should read bug 44964 is _not_ a duplicate in previous comment