Community
Participate
Working Groups
The given persistent class(es): package test; @XmlType public class Parent { @XmlType public static class Child { } } will result in the following in the project explorer: -JAXB Content - test (package) - Parent (type) - Parent.Child (type) - test.Parent (invalid empty package)
This appears to be a problem with the validation running at the same time as our context model update. There isn't enough time to fix this in RC2.
(In reply to comment #1) > This appears to be a problem with the validation running at the same time as > our context model update. There isn't enough time to fix this in RC2. Comment was meant for a different bug.
Created attachment 196058 [details] patch
Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. This patch fixes an ugly bug in the JAXB Content node in the Project Explorer when a class that holds an inner class will be incorrectly listed as a package. Is there a work-around? If so, why do you believe the work-around is insufficient? No workaround How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? The fix has been tested by Paul and myself. Give a brief technical overview. Who has reviewed this fix? This is a very simple change (with slight refactoring to eliminate redundant code) that simply gets the patckage name from the jaxbType instead of trying to use ClassName.getPackageName(). What is the risk associated with this fix? Very low.
Approving so this can make it into Thursday's build. We can roll back if there are any objections from the PMC.
committed for rc2
Verified in Build I-3.3.0RC4-20110603221533 Verified when you create a JaXB project and then a class per the bug, the invalid empty package does not appear. Verify the other items still appear correctly in JAXB Content folder. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_RC2