Summary: | [hierarchy] NPE in hierarchy builder when region is empty | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Raj Mandayam <ramanday> | ||||
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | daniel_megert, jerome_lanneluc, martinae, philippe_mulet | ||||
Version: | 3.2 | ||||||
Target Milestone: | 3.2.2 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Raj Mandayam
2006-07-11 13:52:32 EDT
Reproduced in 3.2. Two problems here: - IJavaProject.newTypeHierarchy(IType, IRegion, IProgressMonitor) throws a NPE if the passed IRegion is empty - The Junit launcher should not only look for tests in sources but also in direct archives (not from referenced projects). Using this bug for the NPE. Filed bug 151246 for the JUnit issue. Created attachment 47161 [details] Proposed patch Null check on project in HierarchyBuilder constructor is enough to get dialog saying that no tests were found... As bug 151246 won't be fixed, this workaround is perhaps enough to solve this problem... Wait for Jerome's review before applying fix... Any updates on fixing this defect for 3.2.1 (In reply to comment #4) > Any updates on fixing this defect for 3.2.1 > Sorry, I forgot to finalize this bug after vacations... However, if you wanted this bug fixed for 3.2.1, you should have let us know sooner... Unfortunately, 3.2.1 is now definitely frozen now and this bug will be addressed only in 3.2.2 Philippe, agree to target it for 3.2.2? +1 for 3.2.2 Patch looks good. *** Bug 157769 has been marked as a duplicate of this bug. *** Released for 3.3 M3 in HEAD stream. Test case added in TypeHierarchyTests#testRegion5_Bug150289(). Released for 3.2.2 in R3_2_maintenance stream. Verified for 3.2.2 using build M20070112-1200 |