Yes, I ran into the same issue and "fix" in some of my non-Jena work.

-----Original Message-----
From: Andy Seaborne [mailto:[email protected]] 
Sent: Monday, August 26, 2013 6:04 AM
To: [email protected]
Subject: jena-jdbc : JDJK6->JDK7-ism?

I'm getting the following compile time error when building with maven.

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project jena-jdbc-core: Compilation failure: 
Compilation failure:
[ERROR]
/home/afs/Jena/jena-jdbc/jena-jdbc-core/src/main/java/org/apache/jena/jdbc/metadata/results/MetaResultSet.java:[51,8]
org.apache.jena.jdbc.metadata.results.MetaResultSet is not abstract and does 
not override abstract method
<T>getObject(java.lang.String,java.lang.Class<T>) in java.sql.ResultSet

and then some others.

Maybe it's this:

http://stackoverflow.com/questions/7692320/is-there-really-resultset-getobjectstring-classt-in-jdk7

I'm using a Java7 compiler in Java6 mode so it's the JDK7 runtime.

If so, the fix is to add, without @Override but with suppressed warnings:

<T> T getObject(int columnIndex, Class<T> type) throws SQLException <T> T 
getObject(String columnLabel,  Class<T> type) throws SQLException

        Andy

Reply via email to