[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6751) Test failure due to inconsistent scale returned for BigDecimal properties

Gail Badner (JIRA) noreply at atlassian.com
Thu Oct 20 15:58:19 EDT 2011


Test failure due to inconsistent scale returned for BigDecimal properties
-------------------------------------------------------------------------

                 Key: HHH-6751
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6751
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
    Affects Versions: 4.0.0.CR4
            Reporter: Gail Badner
            Assignee: Gail Badner
             Fix For: 4.0.0.next


Oracle returns a value with scale=0 for BigDecimal propertiee, which causes a failure in:

IntermediateMappedSuperclassTest.testGetOnIntermediateMappedSuperclass()

This is because BigDecimal values that have different scale are not equal.

The fix will compare BigDecimal.doubleValue to a precision of 0.001.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list