• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

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: 23712
50
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!