EHC ❯ ehcache-constructs-0-5 only compiles with jdk1.5
-
Bug
-
Status: Closed
-
-
Resolution: Fixed
-
-
-
drb
-
Reporter: sourceforgetracker
-
September 21, 2009
-
0
-
Watchers: 0
-
September 22, 2009
-
September 22, 2009
Description
The RELEASE_NOTES.txt says in Java Requirements:
“When compiling from source, the build process requires JDK 1.4 or 5.”
***
When i compile the source with jdk1.4 i get compile errors with one testclass:
[javac] /home/krische/cvs/ehcache-constructs/test/java/net/sf/ehcache/constructs/web/filter/SpeedTest.java:128: cannot resolve symbol
[javac] symbol : method contains (java.lang.String)
[javac] location: class java.lang.String
[javac] response.getText().contains("timestamp");
String.contains(String) exists only with jdk1.5+.
***
A solution would be to use the old fashioned way:
String.indexOf(String) >= 0
Sourceforge Ticket ID: 1185149 - Opened By: knigge - 18 Apr 2005 12:56 UTC
Comments
Sourceforge Tracker 2009-09-21
Fiona OShea 2009-09-22
Re-opening so that I can properly close out these issues and have correct Resolution status in Jira
Logged In: YES user_id=693320
Thanks for that. I added source=”1.4” to the usages of javac in ehcache and ehcache-constructs to try and control issues like this.
Changed the code as suggested. Ta. Comment by: gregluck - 26 Apr 2005 05:41 UTC