Community
Participate
Working Groups
3.6 RC4. The IResource.accept(...) methods are incorrectly implemented: they wrap runtime exceptions that are thrown inside the visitor. This is not specified and not expected. In addition, the implementation thinks it should log this, which is also not expected.
It seems that the RuntimeException catch clause in Resource#accept(IResourceProxyVisitor, int) line 79 can be removed now. John, do you remember why we started to wrap all RuntimeExceptions in CoreExceptions in Resource.java ver. 1.58?
Yes this should be fixed. We originally implemented short-circuit by throwing a RuntimeException which is why it was caught originally. The implementation was later changed to not use that technique but the catch clause wasn't fixed.
Created attachment 192107 [details] Fix v01
Fixed.
Verified in HEAD.