| Summary: | [Validation] @XmlType validation | ||
|---|---|---|---|
| Product: | [WebTools] Dali JPA Tools | Reporter: | Karen Butzke <karenfbutzke> |
| Component: | JAXB | Assignee: | Paul Fullbright <paul.fullbright> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | neil.hauge, paul.fullbright |
| Version: | 3.0 | Keywords: | plan |
| Target Milestone: | 3.1 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 327929 | ||
|
Description
Karen Butzke
> no-arg constructor can be public, protected, or private
I might be wrong about this, the XmlType javadocs say it needs to be public, but it seems like public, protected or private are supported.
I have added the following schema-based validation :
3. if name is absent (""), namespace cannot be different from package namespace
4. if name is not absent (""), type must be from schema associated with this package
from bug 345317: Validation and content assist are still needed for XmlType (factoryClass, factoryMethod, and propOrder) *** Bug 345317 has been marked as a duplicate of this bug. *** When used on an enum, factoryMethod(), factoryClass(), and propOrder() must be ignored (should be warning at least) Added propOrder validation and content assist for 3.1 M3. (In reply to comment #5) > When used on an enum, factoryMethod(), factoryClass(), and propOrder() must be > ignored (should be warning at least) This has been fixed in 3.1 M3. Added validation for: - public or protected (not private) zero-arg constructor or the default constructor - factory method must be specified when factory class is specified for 3.1 RC1. Tracking further validation for factoryClass/factoryMethod in bug 363617 so that this bug can be closed for 3.1. |