Community
Participate
Working Groups
Build 20050509 JDT/Text counterpart of bug 94945. See steps in other PR.
I verified that we handle IllegalStateException gracefully when we call ASTParser.createAST(...). I'm not yet sure whether we should catch RuntimeException in our code. The current pattern in Eclipse is not to do so, e.g. content providers: if there's some code let's say in IJavaElementDelta.getElement() that has bugs (e.g. NPE) then you get a dialog each time a delta is sent - no code that wraps this with catching RuntimeException.
Will use safe-runnable in Java reconciler and ASTProvider.
Fixed in HEAD.
start verifying
Verified in 3.1 RC1 by changing the client code to throw an exception.