Yeah, that's because OpenJPA's JDBC wrappers don't have the Java 6 methods in them. If we added them, OpenJPA would not be able to compile on Java 5...

Note that you can use the JAVA_VERSION env variable to tell mvn to try to use Java 5:

    $ JAVA_VERSION=1.5 mvn test

-Patrick

On May 2, 2008, at 6:38 PM, Nikolas Everett wrote:

I guess I should have read more closely. OpenJPA only compiles on java 1.5,
not 1.6.  That is funky.

Sorry to bother the list.

On Fri, May 2, 2008 at 9:12 PM, Nikolas Everett <[EMAIL PROTECTED]> wrote:

I'm interested in hacking on OpenJPA a little. I downloaded the nightly
snapshot, but it doesn't compile on a fresh install of maven:

/home/nik/Documents/Programming/OpenJPA/apache-openjpa-1.1.0- SNAPSHOT-source/openjpa-lib/src/main/java/org/apache/openjpa/lib/ jdbc/DelegatingConnection.java:[47,7] org.apache.openjpa.lib.jdbc.DelegatingConnection is not abstract and does
not override abstract method
createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection

/home/nik/Documents/Programming/OpenJPA/apache-openjpa-1.1.0- SNAPSHOT-source/openjpa-lib/src/main/java/org/apache/openjpa/lib/ jdbc/DelegatingDatabaseMetaData.java:[31,7] org.apache.openjpa.lib.jdbc.DelegatingDatabaseMetaData is not abstract and
does not override abstract method
getFunctionColumns (java.lang.String,java.lang.String,java.lang.String,java.lang.String)
in java.sql.DatabaseMetaData

/home/nik/Documents/Programming/OpenJPA/apache-openjpa-1.1.0- SNAPSHOT-source/openjpa-lib/src/main/java/org/apache/openjpa/lib/ jdbc/DelegatingStatement.java:[37,7] org.apache.openjpa.lib.jdbc.DelegatingStatement is not abstract and does not
override abstract method isPoolable() in java.sql.Statement

/home/nik/Documents/Programming/OpenJPA/apache-openjpa-1.1.0- SNAPSHOT-source/openjpa-lib/src/main/java/org/apache/openjpa/lib/ jdbc/DelegatingPreparedStatement.java:[51,7] org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement is not abstract and
does not override abstract method setNClob(int,java.io.Reader) in
java.sql.PreparedStatement

/home/nik/Documents/Programming/OpenJPA/apache-openjpa-1.1.0- SNAPSHOT-source/openjpa-lib/src/main/java/org/apache/openjpa/lib/ jdbc/DelegatingResultSet.java:[50,7] org.apache.openjpa.lib.jdbc.DelegatingResultSet is not abstract and does not override abstract method updateNClob(java.lang.String,java.io.Reader) in
java.sql.ResultSet

/home/nik/Documents/Programming/OpenJPA/apache-openjpa-1.1.0- SNAPSHOT-source/openjpa-lib/src/main/java/org/apache/openjpa/lib/ jdbc/DelegatingDataSource.java:[35,7] org.apache.openjpa.lib.jdbc.DelegatingDataSource is not abstract and does
not override abstract method isWrapperFor(java.lang.Class<?>) in
java.sql.Wrapper

/home/nik/Documents/Programming/OpenJPA/apache-openjpa-1.1.0- SNAPSHOT-source/openjpa-lib/src/main/java/org/apache/openjpa/lib/ jdbc/DelegatingCallableStatement.java:[49,7] org.apache.openjpa.lib.jdbc.DelegatingCallableStatement is not abstract and does not override abstract method setNClob(java.lang.String,java.io.Reader)
in java.sql.CallableStatement

What can I do to get a compiling version?



--
Patrick Linskey
202 669 5907

Reply via email to