Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363617 - [Validation] Validation and content assist for XmlType.factoryClass/factoryMethod
Summary: [Validation] Validation and content assist for XmlType.factoryClass/factoryMe...
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JAXB (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 15:04 EST by Paul Fullbright CLA
Modified: 2014-02-06 14:12 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Fullbright CLA 2011-11-11 15:04:17 EST
Add validation for:
- factory method exists on factory class (and perhaps that it returns an instance of this class)
- factory method has zero args

Add content assist for:
- factory method
Comment 1 Nan Li CLA 2013-04-12 15:57:57 EDT
A couple of more related validations:

-If factoryClass() is other than DEFAULT.class, then factoryMethod() must be specified (i.e. the default value ““ cannot be used.)

A validation error is giving saying "If a factory class is specified, a factory method must also be specified."	when factoryClass() is DEFAULT.class and factoryMethod() is "". Don't think we should give the validation error with this case based on the spec.

-If factoryClass() is DEFAULT.class and factoryMethod() is not ““, then factoryMethod() be a method in this class.

No validation error is given when the method given to factoryMethod() does not exist.