Fix compilation failures for scala 2.9.0.RC1
I tried to cross build the current squeryl codebase in the master branch against 2.9.0.RC1 and got the following two compilation errors:
[error] /Users/marcorico-gomez/dev/scala/Squeryl/src/main/scala/org/squeryl/logging/StatsSchema.scala:92: type mismatch;
[error] found : org.squeryl.dsl.NvlFunctionNumerical[?A,?B]
[error] required: org.squeryl.dsl.ast.TypedExpressionNode[?]
[error] Note that implicit conversions are not applicable because they are ambiguous:
[error] both method binaryOpConv1 in trait TypeArithmetic of type (op: org.squeryl.dsl.BinaryAMSOp[org.squeryl.PrimitiveTypeMode.ByteType,org.squeryl.PrimitiveTypeMode.ByteType])org.squeryl.dsl.NumericalTypeConversion[org.squeryl.PrimitiveTypeMode.ByteType]
[error] and method binaryOpConv2 in trait TypeArithmetic of type (op: org.squeryl.dsl.BinaryAMSOp[org.squeryl.PrimitiveTypeMode.ByteType,org.squeryl.PrimitiveTypeMode.IntType])org.squeryl.dsl.NumericalTypeConversion[org.squeryl.PrimitiveTypeMode.IntType]
[error] are possible conversion functions from org.squeryl.dsl.NvlFunctionNumerical[?A,?B] to org.squeryl.dsl.ast.TypedExpressionNode[?]
[error] compute(avg(si.executeTime), count, sum(si.executeTime), nvl(avg(si.rowCount),0))
[error] ^
[error] /Users/marcorico-gomez/dev/scala/Squeryl/src/main/scala/org/squeryl/logging/StatsSchema.scala:99: value key is not a member of Nothing
[error] where(si.key._1 === s.hash and si.key._2 === s.statementHashCollisionNumber)
[error] ^
[error] two errors found
Leave a comment
on 2011-04-15 17:23 *
By maxime.levesque
Assigned to set to maxime.levesque
Status changed from New to Accepted
Subsequent RCs of Scala do not have the problem, thanks to the Scala Team !