Lift 1.1 does not compiler under JDK 1.5 #67

Closed
dpp opened this Issue Sep 22, 2009 · 3 comments

Comments

Projects
None yet
3 participants
Owner

dpp commented Sep 22, 2009

[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:compile {execution: default}]
[INFO] Checking for multiple versions of scala
[INFO] Compiling 37 source files to /home/dpp/Desktop/liftweb/lift-mapper/target/classes
[WARNING] Picked up JAVA_TOOL_OPTIONS: -Xmx1024M
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:77: error: value isWrapperFor is not a member of java.sql.Statement
[WARNING] case _ => underlying.isWrapperFor(clazz)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:82: error: value unwrap is not a member of java.sql.Statement
[WARNING] case _ => underlying.unwrap(clazz)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:237: error: value isClosed is not a member of java.sql.Statement
[WARNING] underlying.isClosed()
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:242: error: value isPoolable is not a member of java.sql.Statement
[WARNING] underlying.isPoolable()
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:277: error: value setPoolable is not a member of java.sql.Statement
[WARNING] underlying.setPoolable(poolable)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:303: error: value isWrapperFor is not a member of java.sql.PreparedStatement
[WARNING] case _ => super.isWrapperFor(clazz) || underlying.isWrapperFor(clazz)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:308: error: value unwrap is not a member of java.sql.PreparedStatement
[WARNING] case _ => if (super.isWrapperFor(clazz)) super.unwrap(clazz) else underlying.unwrap(clazz)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:370: error: wrong number of arguments for method setAsciiStream: (Int,java.io.InputStream,Int)Unit
[WARNING] underlying.setAsciiStream(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:380: error: type mismatch;
[WARNING] found : Long
[WARNING] required: Int
[WARNING] underlying.setAsciiStream(index, x, length)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:390: error: wrong number of arguments for method setBinaryStream: (Int,java.io.InputStream,Int)Unit
[WARNING] underlying.setBinaryStream(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:400: error: type mismatch;
[WARNING] found : Long
[WARNING] required: Int
[WARNING] underlying.setBinaryStream(index, x, length)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:410: error: type mismatch;
[WARNING] found : java.io.InputStream
[WARNING] required: java.sql.Blob
[WARNING] underlying.setBlob(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:415: error: wrong number of arguments for method setBlob: (Int,java.sql.Blob)Unit
[WARNING] underlying.setBlob(index, x, length)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:435: error: wrong number of arguments for method setCharacterStream: (Int,java.io.Reader,Int)Unit
[WARNING] underlying.setCharacterStream(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:445: error: type mismatch;
[WARNING] found : Long
[WARNING] required: Int
[WARNING] underlying.setCharacterStream(index, x, length)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:455: error: type mismatch;
[WARNING] found : java.io.Reader
[WARNING] required: java.sql.Clob
[WARNING] underlying.setClob(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:460: error: wrong number of arguments for method setClob: (Int,java.sql.Clob)Unit
[WARNING] underlying.setClob(index, x, length)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:495: error: value setNCharacterStream is not a member of java.sql.PreparedStatement
[WARNING] underlying.setNCharacterStream(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:500: error: value setNCharacterStream is not a member of java.sql.PreparedStatement
[WARNING] underlying.setNCharacterStream(index, x, length)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:504: error: not found: type NClob
[WARNING] def setNClob (index : Int, x : NClob) {
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:505: error: value setNClob is not a member of java.sql.PreparedStatement
[WARNING] underlying.setNClob(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:510: error: value setNClob is not a member of java.sql.PreparedStatement
[WARNING] underlying.setNClob(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:515: error: value setNClob is not a member of java.sql.PreparedStatement
[WARNING] underlying.setNClob(index, x, length)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:520: error: value setNString is not a member of java.sql.PreparedStatement
[WARNING] underlying.setNString(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:554: error: not found: type RowId
[WARNING] def setRowId (index : Int, x : RowId) {
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:555: error: value setRowId is not a member of java.sql.PreparedStatement
[WARNING] underlying.setRowId(index, x)
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:564: error: not found: type SQLXML
[WARNING] def setSQLXML (index : Int, x : SQLXML) {
[WARNING] ^
[WARNING] /home/dpp/Desktop/liftweb/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala:565: error: value setSQLXML is not a member of java.sql.PreparedStatement
[WARNING] underlying.setSQLXML(index, x)
[WARNING] ^
[WARNING] 28 errors found
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] command line returned non-zero value:1
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26 seconds
[INFO] Finished at: Mon Sep 21 15:33:07 PDT 2009
[INFO] Final Memory: 15M/28M
[INFO] ------------------------------------------------------------------------
dpp@david-desktop:~/Desktop/liftweb/lift-mapper$

Member

dchenbecker commented Oct 3, 2009

Refactor logging to work in both Java 5 and 6

Bascially convert the LoggedStatement and LoggedPreparedStatement classes
to java.lang.reflect.Proxy handlers. We had to do this so that we could
dynamically handle methods for both JDBC3 (Java 5) and JDBC4 (Java 6)
interfaces without having to have two code trees. Closed by d0c97065d4eacaa6231efd8e6b3c05554a1d815c

@ghost ghost assigned dchenbecker Mar 1, 2012

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment