This week's book giveaways are in the Scala and Android forums.
We're giving away four copies each of Machine Learning Systems: Designs that scale and Xamarin in Action: Creating native cross-platform mobile apps and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
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?
 
Sheriff
Posts: 23506
47
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.
 
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.
 
Oh the stink of it! Smell my tiny ad!
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!