Summary: | JavaModelException opening up class file in non java project | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Brock Janiczak <brockj> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | daniel_megert |
Version: | 3.2 | ||
Target Milestone: | 3.2 M6 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Brock Janiczak
2006-03-19 22:59:13 EST
This is caused by Java Model: Up to 3.1.x the Java Model threw a JavaModelException when calling IClassFile.getSourceRange() now in 3.2 this no longer fails but returns null. Added an additional guard on our side and moving to JDT Core to comment on the API change. Changed ClassFile#getBuffer() to throw a JavaModelException if the returned buffer is null. Added regression test ClassFileTests#testSourceRangeNonJavaProject(). Verified for 3.2M6 using build I20060327-0010. |