| Summary: | [EclipseLink] descriptor customizer validation incorrect when default zero arg constructor | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> | ||||||
| Component: | General | Assignee: | Nan Li <nan.n.li> | ||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | douglas.clarke, jolene.moffitt, neil.hauge | ||||||
| Version: | 3.0 | Flags: | neil.hauge:
review+
karenfbutzke: review+ |
||||||
| Target Milestone: | 3.0.1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
This problem would apply to all the validation errors added in bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=330619 Created attachment 197807 [details]
Proposed Patch
Handled default constructor case
Created attachment 198545 [details]
Proposed Patch
I have reviewed and applied Nan's latest patch to HEAD for the 3.0.1 release Verified in Build I-3.4.0-20110822071621 Verified if you set the MyCustomizer class as a descriptor customizer on an eclipseLink entity you do not get a validation error. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0.1 *** Bug 361196 has been marked as a duplicate of this bug. *** |
If you set the MyCustomizer class as a descriptor customizer on an eclipseLink entity you get a validation error: The entity customizer class "model.MyCustomizer" must have a public, zero-argument constructor. This class has a default zero-arg constructor so there should be no error. public class MyCustomizer implements DescriptorCustomizer { public void customize(ClassDescriptor descriptor) throws Exception { } }