Details
Description
Test org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelperTest may fail on non-Sun implementation, because it assumes the order in which Class.getFields() returns the fields, while specification doesn't specify the particular order.
The problem occurs in method PersistenceUnitAnnotationHelper.processPersistenceUnit() which gets the fields and adds them to the annotatedApp, that is later compared (in the tests themselves) with expected XML - at this point the tests may as the order of elements in the resulting XML may be different.
The following assertions fail on Apache Harmony because of this fact:
testPersistenceContextAnnotationHelper
testPersistenceUnitAnnotationHelper
testWebServiceRefAnnotationHelper