Another compile question - prblems with target=1.5  
Joe Thu Feb 07 01:37:13 GMT 2008
 
I like the primrose pool. I'm planning to use it.
I'd like to be able to revise the code if needed to deal with a ingres JDBC Driver.
The Driver works fine most of the time but sometimes the connection returns a result that is not handled well and I'd like to get more data in that case.

in ant I set:

and get errors like: /src/uk/org/primrose/pool/core/PoolStatement.java:31: uk.org.primrose.pool.core.PoolStatement is not abstract and does not override abstract method isPoolable() in java.sql.Statement

if I set target + source to 1.4 I get:
uk/org/primrose/pool/core/PoolCallableStatement.java:89: annotations are not supported in -source 1.4
[javac] (use -source 5 or higher to enable annotations)

Linux redhat AS release 4 2.6.9-55.0.6.ELsmp x86_64
 
guest Thu Feb 07 01:38:30 GMT 2008
 
The ant setting was in brackets and does show up. Here it is:
javac srcdir="${src.dir}" destdir="${build.classes}" target="1.5" source="1.5"
sedj Mon Feb 11 20:34:00 GMT 2008
 
If you are compiling to target of JRE 1.4 and JDK 1.5, you need your ant script to be :


destdir="${compile.home}"
optimize="true"
debug="true"
target="jsr14"

>


If you are compiling with JDK 6, unfortunately I cannot yet find a solution ... so basically primrose will only compile with jdk 1.5 as the highest release, and we are not yet ready to move to JDK 6 source.
Joe @ UW Seattle Fri Feb 29 22:29:26 GMT 2008
 
Thanks. I finally go it. I set JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.06
and built primrose.jar. I was trying to compile using java 1.6. That doesn't work even with a target set. We've had the primrose pool in production for two weeks. I like it - thanks!
sedj Sat Mar 01 00:17:26 GMT 2008
 
Great, thanks for the feedback & posting your fix.