Community
Participate
Working Groups
They are two minor errors in the code though they don't seem to impact any functionality. 1. In org.eclipse.jdt.internal.core.dom.NaiveASTFlattener.visit(TryStatement), the call to resources should have been in the if-block of AST.JLS4. 2. Some calls to org.eclipse.jdt.core.dom.ASTNode.unsupportedIn2() have similar error code patterns found to the one causing problems in bug 361938. Eg: org.eclipse.jdt.core.dom.ASTNode.unsupportedIn2()
Created attachment 209772 [details] Proposed fix + regression test
Sorry, I didn't pay closer attention to earlier. The fix for bug 361938 is not appropriate and works only because there are two bugs now that somewhat cancel out each other.
Patch & tests released for 3.8 M5 via http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=eb40a119cd5ecacf8e90c38261ec37c99b5a07b7.
I'll leave the maintenance branches as they are. The API doesn't do what the javadoc claims in the case of a badly broken client that looks up resources in pre java mode, but that is unlikely scenario and it is late for 3.7.2
Verified for 3.8 M5 by code inspection.