| Summary: | NPE in J2EEComponentClasspathContainer.getBaseEARLibRefs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Jason Sholl <jsholl> | ||||
| Component: | jst.j2ee | Assignee: | Jason Sholl <jsholl> | ||||
| Status: | RESOLVED DUPLICATE | QA Contact: | Chuck Bridgham <cbridgha> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ccc, david_williams | ||||
| Version: | 3.2 | Flags: | deboer:
pmc_approved+
cbridgha: review+ |
||||
| Target Milestone: | 3.2.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Server 2003 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Jason Sholl
Created attachment 174517 [details]
patch for 3.2.1
approved * Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such.
This NPE prevents the classpath container from properly resolving. This is timing related and happens rarely, but one user was able to consistently reproduce.
* Is there a work-around? If so, why do you believe the work-around is insufficient?
No
* How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
Tested with UI. No JUnit has been added.
* Give a brief technical overview. Who has reviewed this fix?
Simple null check. Chuck Bridgham has reviewed
* What is the risk associated with this fix?
none.
I don't mean to say we should not fix this ... but, we did say "blocking or major regressions only" this week. From the description, it doesn't sound like "blocking or major regression". And, it is classified as "normal". And you say it "happens rarely". So does it really belong in final re-build for 3.2.1? Or would 3.2.2 suffice?
Also ... the patch itself contains some formatting changes, so it is hard to see exactly what's changed and what hasn't. Is it possible the attach a more "changes only" patch for review? Or is the current one just the say CVS deals with indentation, and no improvements possible.
For example, if I'm seeing it right, it look like one line changed from
if (!libDir.equals(earComp.getReference(component.getName()).getRuntimePath().toString()))
to
if (!libDir.equals(componentRef.getRuntimePath().toString())) {
which seems like more then a "null check".
But ... I might be comparing the wrong lines?
So, improve the patch formatting if you can, but in either case, I think more justification needs to be be provided. Is this a regression? Does it prevent (block) some particular use-cases from being tested? (If so, seems seems severity could be changed?)
Thanks,
This is a simple null check. A block of code was wrapped with the null check which is why it is so ugly. But, yes, you are right, this is not a critical problem; moving it out to 3.2.2 and removing the PMC flags. defect 320729 fixed this *** This bug has been marked as a duplicate of bug 320729 *** |