| Summary: | [Validation] UnsupportedOperationException when validating project aggregated binary objects | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Nan Li <nan.n.li> | ||||
| Component: | JPA | Assignee: | Brian Vosburgh <brian.vosburgh> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | brian.vosburgh, karenfbutzke, nan.n.li, neil.hauge, paul.fullbright, raghunathan.srinivasan | ||||
| Version: | unspecified | Flags: | neil.hauge:
pmc_approved?
(david_williams) raghunathan.srinivasan: pmc_approved+ neil.hauge: pmc_approved? (naci.dai) neil.hauge: pmc_approved? (deboer) neil.hauge: pmc_approved? (neil.hauge) neil.hauge: pmc_approved? (kaloyan) neil.hauge: pmc_approved? (cbridgha) neil.hauge: review+ |
||||
| Target Milestone: | 3.2 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | PMC | ||||||
| Attachments: |
|
||||||
|
Description
Nan Li
Moving JPA specific bugs to new JPA component in bugzilla. Targeting to Juno release. This happens when creating validation errors for any of our project-aggregated objects: - queries - generators - (eclipselink) converters Not sure if there is something easy we can do to improve this situation for Juno. Perhaps we could change the binary annotations to route these messages to the jar file resource in question, which is I think what we used to do. It seems to me that it would be nice to report these types of errors, especially errors involving globals that would only be discovered upon specifying a jar file reference. Perhaps we should only route these types of errors to the jars, and ignore the rest, as there would be little context to work with. Maybe that was the intent here all along. The same code (related to queries, generators, and EclipseLink converters) that causes this exception with binary Java objects also puts markers in Java source code in projects that are on the JPA project's build path. Created attachment 215716 [details]
proposed patch
More hacking, until we figure out how we want to validate binary and extra-project Java classes.
This case actually prevents the user from getting any validation, and this error message won't be a good clue to figure out what has gone wrong. This ups the relative severity of this bug. Nan...can you do some testing with Brian's patch? Tested the patch and it works fine. We will only get validation message for the duplicates in the source code and ignore the duplicates in the binary code. 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.
In the case were binary content has a Dali error, validation may break, resulting in no Dali validation errors being reported.
Is there a work-around? If so, why do you believe the work-around is insufficient?
Workaround is to fix error in binary content, but this would not be obvious.
How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added?
Manual tests have been performed and the automated tests have been run.
Give a brief technical overview. Who has reviewed this fix?
This code makes a simple determination on whether a given validation message should be added based on the type of resource involved. If the resource in binary, we simply don't add the validation message.
What is the risk associated with this fix?
Fix is isolated and fairly low risk.
Patch checked into HEAD for RC1. |