>
> Hi,
>
> I am working on a web app with scala and jetty. But this web app needs
> a java library which using
> org.hibernate.type.StandardBasicTypes.INTEGER. it throws an exception
> for certain types. i guess for some reason the compiled java library
> can not import org.hibernate.type.StandardBasicTypes since "type" is
> reserved word for scala.
Don't understand. A Java library knows nothing about Scala.
> Is this the case? How could i work around
> this. I know i can use import org.hibernate.`type`.StandardBasicTypes
> for a scala class. But how about a java library using
> org.hibernate.type.StandardBasicTypes?
Right, in Scala code use just ` to refer to Java identifiers being a reserved
word in Scala. Java libraries will have no problem with that.
To make your problem clear, better you supply the stack trace...