Bug 321620 - org.eclipse.persistence.testing.tests.jpa.jpql.JUnitNativeQueryTestSuite.testCaseSensitivity_GoldBuyer1 failed on jdk1.5
Summary: org.eclipse.persistence.testing.tests.jpa.jpql.JUnitNativeQueryTestSuite.test...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2010-08-03 11:40 EDT by Kevin Yuan CLA
Modified: 2022-06-09 10:27 EDT (History)
0 users

See Also:


Attachments
trivial test fix (981 bytes, patch)
2010-08-04 14:31 EDT, Chris Delahunt CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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