Bug 321620

Summary: org.eclipse.persistence.testing.tests.jpa.jpql.JUnitNativeQueryTestSuite.testCaseSensitivity_GoldBuyer1 failed on jdk1.5
Product: z_Archived Reporter: Kevin Yuan <kevin.yuan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 Keywords: test
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
trivial test fix none

Description Kevin Yuan CLA 2010-08-03 11:40:23 EDT
This is a new test case, it failed on JDK1.5 with the following error message:

java.lang.String.isEmpty()Z

java.lang.NoSuchMethodError: java.lang.String.isEmpty()Z
at org.eclipse.persistence.testing.tests.jpa.jpql.JUnitNativeQueryTestSuite.testCaseSensitivity_GoldBuyer1(JUnitNativeQueryTestSuite.java:165)
at org.eclipse.persistence.testing.framework.junit.JUnitTestCase.runBare(JUnitTestCase.java:466)
at org.eclipse.persistence.testing.framework.TestExecutor.execute(TestExecutor.java:248)
at org.eclipse.persistence.testing.framework.TestModel.execute(TestModel.java:208)
at org.eclipse.persistence.testing.framework.TestCollection.run(TestCollection.java:313)

This failure occurred on both 2.1.1 and trunk.
New test cases added by Chris Delahunt.
Comment 1 Chris Delahunt CLA 2010-08-04 14:31:19 EDT
Created attachment 175870 [details]
trivial test fix

test cases uses string.isEmpty() which was added in jdk 6, causing compile issues in JDK 5.
Comment 2 Chris Delahunt CLA 2010-08-04 14:46:46 EDT
fix checked into main and 2.1
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:27:18 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink