| Summary: | IllegalArgumentException when retrieving ui for file that is not supported by platform | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Paul Fullbright <paul.fullbright> | ||||
| Component: | JPA | Assignee: | Paul Fullbright <paul.fullbright> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | deboer, karenfbutzke, neil.hauge | ||||
| Version: | 2.3 | ||||||
| Target Milestone: | 3.3 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Mobile 2003 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Paul Fullbright
Moving JPA specific bugs to new JPA component in bugzilla. This bug appears to have been fixed in 3.0, I cannot reproduce in 3.0 maintenance or in HEAD I can reproduce this in 3.2, I was following the steps listed in bug 280673 and reproduce this. You can see where we throw the IllegalArgumentExceptions in BaseJpaPlatformUi.getResourceUiDefinition(JptResourceType) and getMappingResourceUiDefinition(JptResourceType) We have validation messages for all cases where a file version is not supported for a given platform (or for a different platform). So this bug merely becomes that we are logging errors. Should we be logging errors? I think we have determined that we should not be logging errors for this case. Let's fix in 3.3M1 and Juno SR1. Given that this is a very low risk change, seems reasonable for RC1. Created attachment 215423 [details]
patch
Check for support for the resource type before attempting to get structure UI for it.
(Also includes small formatting change for error message.)
I changed my mind again after seeing the patch. This bug is just too minor to bother with PMC review, in addition to the very small amount of risk it introduces to the code base. It just doesn't stand up to these questions - http://wiki.eclipse.org/WTP_PMC_Defect_Review#How_To_Prepare_a_PMC_Defect_Candidate. checked the patch in to HEAD, do we want to put this in 3.2.1? (In reply to comment #9) > checked the patch in to HEAD, do we want to put this in 3.2.1? Yes, I think we should. I have removed this patch from HEAD, I am unable to view the JPA structure for a java file with this patch. The JPA structure view displays 'A JPA strucutre provider is not available: Java Source File : v. <undetermind>. I have an EclipseLink 2.4.x platform project Committed for 3.3 M1. Made small change to patch for java files, which for some reason was not "supported" by platforms. |