Bug 13492

Summary: Should handle JavaModelExceptions that contains CoreException more gracefully
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Jerome Lanneluc CLA 2002-04-11 06:32:20 EDT
Build 20020409

Bug 13466 shows that when a JavaModelException that wraps a CoreException is 
thrown, the UI doesn't extract the CoreException info.

It should use JavaModelException.getException() to extract this info and thus 
display the status of the CoreException.

This would allow faster debugging and this would avoid moving bugs to JDT/Core 
when it is a Platform problem.
Comment 1 Erich Gamma CLA 2002-04-12 04:05:59 EDT
I agree that the wrappered information should not be lost. However, this should 
be done by the JavaModelException transparently, i.e., when a CoreException is 
wrappered then the getStatus call should be forwarded by the JavaModelException 
to the wrappered CoreException. 

This is also the approach taken in Throwable in JDK 1.4 were there is support 
for exception wrappering in Throwable directly.

Moving back to JDT core.
Comment 2 Jerome Lanneluc CLA 2002-04-26 04:53:32 EDT
When a JavaModelException wraps a CoreException, the status of the 
CoreException is now remembered instead of creating a JavaModelStatus.