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

Bug 327908

Summary: Whitespace should be ignored by persistence.xml parser
Product: [RT] Gemini.JPA Reporter: Tom Ware <tom.ware>
Component: CoreAssignee: Michael Keith <michael.keith>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 1.0.0 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Tom Ware CLA 2010-10-15 11:36:01 EDT
Gemini JPA won't match the persistence provider defined in the xml if it is defined like this:

        <provider>
            org.eclipse.persistence.jpa.PersistenceProvider
        </provider>

The parser keeps the whitespace characters including "\n" and spaces so when Gemini compares the provider defined in the persistence.xml with the legal providers, the comparison fails.

To Recreate:

Deploy a persistence unit on Gemini using EclipseLink as the provider with provider defined as above.

Workaround:

        <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
Comment 1 Michael Keith CLA 2010-10-15 14:25:31 EDT
Fixed.
Comment 2 Michael Keith CLA 2010-10-15 14:26:26 EDT
Added trimming.