Re: run time exception for org.hibernate.type.StandardBasicTypes.INTEGER: java.lang.NoSuchFieldError:INTEGER

273 views
Skip to first unread message
Message has been deleted

Sonnenschein

unread,
Feb 14, 2011, 1:56:07 PM2/14/11
to scala...@googlegroups.com
James <breathing@...> writes:

>
> 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...

Reply all
Reply to author
Forward
0 new messages