• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.BigDecimal - Not in jdk rt.jar nor API  RSS feed

 
Brian Elfers
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My unit tests are looking for this class, however it does not appear to
be part of the JDK rt.jar or exist in the JDK api docs. Also, not sure why this class would exist when there is java.math.BigDecimal class. Was java.lang.BigDecimal deprecated?
 
Paul Clapham
Sheriff
Posts: 22836
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It doesn't exist. As far as I know it never existed; if it had been in earlier versions of Java it would still be there. Sun has never ever removed anything from Java, even deprecated classes. Have you considered the possibility that your unit tests are broken?
 
Brian Elfers
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the error for reference...

[junit] Caused by: com.ibatis.sqlmap.client.SqlMapException: Error. Could not set result class. Cause: java.lang.ClassNotFoundException: java.lang.BigDecimal

Yeah, I've considered them broken, now I'm trying to fix them by resolving the class.
 
Brian Elfers
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It appears to be used mostly in sql result sets.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm guessing you've got a reference to java.lang.BigDecimal in your iBATIS datamap file. If so, change it to java.math.BigDecimal, of course. If you can't find anything like this, I'd recommend asking in our Object Relational Mapping forum where there are more people who use iBATIS and can help you.
 
Brian Elfers
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. Will do.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!