Bug 245830

Summary: ClasspathEntry illegally instantiates AssertionFailedException
Product: [Eclipse Project] JDT Reporter: Jerome Lanneluc <jerome_lanneluc>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Olivier_Thomann
Version: 3.4   
Target Milestone: 3.5 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Jerome Lanneluc CLA 2008-09-01 04:46:44 EDT
I20080827-0935

PDE/Tools reports the following warning:

Description	Resource	Path	Location	Type
ClasspathEntry illegally instantiates AssertionFailedException	ClasspathEntry.java	org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core	line 775	API Usage Problem
Comment 1 Jerome Lanneluc CLA 2008-09-01 04:52:56 EDT
Created attachment 111385 [details]
Proposed fix

Fix consists in defining ClasspathEntry.AssertionFailedException and throwing this exception instead of the runtime one. As a consequence this improves the message reported in the markers (it removes: "assertion failed: " before the message). Thus updated tests accprdingly.
Comment 2 Jerome Lanneluc CLA 2008-09-01 04:54:30 EDT
Fix and updated tests released for 3.5M2
Comment 3 Olivier Thomann CLA 2008-09-15 09:58:18 EDT
Verified for 3.5M2 using I20080914-2000