Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345467

Summary: JAXB Schemas Properties Page: OK with nothing entered in Add Schema dialog results in blank entry
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JAXBAssignee: Paul Fullbright <paul.fullbright>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jolene.moffitt, neil.hauge
Version: unspecified   
Target Milestone: 3.0 RC2   
Hardware: PC   
OS: Windows 7   
Whiteboard: fix_ready

Description Nan Li CLA 2011-05-11 12:43:06 EDT
Build Identifier: I20110428-0848

1. Right-click a JAXB project and select Properties
2. Expand JAXB and select Schemas
3. On the Schemas page, click Add button to open Add a new schema location page
4. Clicking OK without selecting any schma

You will see an empty schema is added into the list. If clicking Apply or OK button on the Schemas page, JAXB validator will validate all the java classes against this empty schmea resulting in exceptions. The right way might be disable the OK button on the Add a new schmea location page if no schema location is specified.

Reproducible: Always
Comment 1 Paul Fullbright CLA 2011-05-18 18:41:56 EDT
fix for 345486 should also fix this
Comment 2 Paul Fullbright CLA 2011-05-19 02:48:52 EDT
committed for rc2 (fixed with bug 345486)
Comment 3 Jolene Moffitt CLA 2011-06-13 11:37:48 EDT
Verified in Build I-3.3.0RC4-20110603221533

Verified the OK button is not enabled until you select a schema.  See the link to view test steps for verification.  http://wiki.eclipse.org/Dali_3.0_RC2