You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Chris Mildebrandt <ch...@plasticfrog.info> on 2007/05/11 22:44:13 UTC
SDO test case fails when compiling with JDK1.4.2
Hi,
The following test fails when compiling with a 1.4.2 JDK:
public void testTuscany_836() {
assertEquals(DataObjectUtil.getBigDecimal(new Long(Long.MAX_VALUE)).lo
ngValue(), Long.MAX_VALUE);
}
That method can be found in this file:
src\test\java\org\apache\tuscany\sdo\test\TypeConversionTestCase.java
Let me know if you have any questions. Thanks,
-Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: SDO test case fails when compiling with JDK1.4.2
Posted by Chris Mildebrandt <ch...@plasticfrog.info>.
Ah, thanks Paul. I'll follow that issue to track my problem.
Thanks,
-Chris
On 5/14/07, Paul Golick <go...@us.ibm.com> wrote:
> https://issues.apache.org/jira/browse/TUSCANY-1122 records my finding that
> some versions of Java 1.4.2 have BigDecimal implementation with the
> problem that it fails to preserve the value of Long.MAX_VALUE or nearby
> values. (The buggy implementations that I tested map these values to
> Long.MIN_VALUE.)
>
> Regards,
> Paul Golick
> e-mail: golick@us.ibm.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: SDO test case fails when compiling with JDK1.4.2
Posted by Paul Golick <go...@us.ibm.com>.
https://issues.apache.org/jira/browse/TUSCANY-1122 records my finding that
some versions of Java 1.4.2 have BigDecimal implementation with the
problem that it fails to preserve the value of Long.MAX_VALUE or nearby
values. (The buggy implementations that I tested map these values to
Long.MIN_VALUE.)
Regards,
Paul Golick
e-mail: golick@us.ibm.com
Re: SDO test case fails when compiling with JDK1.4.2
Posted by Chris Mildebrandt <ch...@plasticfrog.info>.
Hi Kelvin,
I'm using IBM's J2RE 1.4.2 IBM Windows 32 build cn142ifx-20060209 (SR4-1):
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM Windows 32 build
cn142ifx-20060209 (SR4-1) (JIT enabled: jitc))
-Chris
On 5/14/07, kelvin goodson <ke...@gmail.com> wrote:
> Hi Chris,
> I don't see this failure when I run against a 1.4.2 environment ...
> java version "1.4.2_07"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)
> Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)
>
> Which implementation / version of the JDK are you using?
>
> Regards, Kelvin.
>
>
> On 11/05/07, Chris Mildebrandt <ch...@plasticfrog.info> wrote:
> >
> > Hi,
> >
> > The following test fails when compiling with a 1.4.2 JDK:
> >
> > public void testTuscany_836() {
> > assertEquals(DataObjectUtil.getBigDecimal(new Long(Long.MAX_VALUE
> > )).lo
> > ngValue(), Long.MAX_VALUE);
> > }
> >
> > That method can be found in this file:
> >
> > src\test\java\org\apache\tuscany\sdo\test\TypeConversionTestCase.java
> >
> > Let me know if you have any questions. Thanks,
> > -Chris
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: SDO test case fails when compiling with JDK1.4.2
Posted by kelvin goodson <ke...@gmail.com>.
Hi Chris,
I don't see this failure when I run against a 1.4.2 environment ...
java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-b05)
Java HotSpot(TM) Client VM (build 1.4.2_07-b05, mixed mode)
Which implementation / version of the JDK are you using?
Regards, Kelvin.
On 11/05/07, Chris Mildebrandt <ch...@plasticfrog.info> wrote:
>
> Hi,
>
> The following test fails when compiling with a 1.4.2 JDK:
>
> public void testTuscany_836() {
> assertEquals(DataObjectUtil.getBigDecimal(new Long(Long.MAX_VALUE
> )).lo
> ngValue(), Long.MAX_VALUE);
> }
>
> That method can be found in this file:
>
> src\test\java\org\apache\tuscany\sdo\test\TypeConversionTestCase.java
>
> Let me know if you have any questions. Thanks,
> -Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>