Go Back   Velocity Reviews > Newsgroups > Java
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Java - difference between jdk1.5.06 and jdk1.5.02

 
Thread Tools Search this Thread
Old 11-09-2006, 10:25 AM   #1
Default difference between jdk1.5.06 and jdk1.5.02


i encountered an interesting problem during my s/w development,
I had some calulation part whose result is a double value.The result is
different on difeerent versions of jdk (jdk1.5.06 and jdk1.5.02).


thanks in advance
manzur



manzur
  Reply With Quote
Old 11-09-2006, 10:30 AM   #2
Daniel Dyer
 
Posts: n/a
Default Re: difference between jdk1.5.06 and jdk1.5.02
On Thu, 09 Nov 2006 10:25:16 -0000, manzur <> wrote:

> i encountered an interesting problem during my s/w development,
> I had some calulation part whose result is a double value.The result is
> different on difeerent versions of jdk (jdk1.5.06 and jdk1.5.02).
>


On the same machine?

Dan.

--
Daniel Dyer
http://www.dandyer.co.uk


Daniel Dyer
  Reply With Quote
Old 11-09-2006, 10:36 AM   #3
manzur
 
Posts: n/a
Default Re: difference between jdk1.5.06 and jdk1.5.02
They are two different machines.


Daniel Dyer wrote:
> On Thu, 09 Nov 2006 10:25:16 -0000, manzur <> wrote:
>
> > i encountered an interesting problem during my s/w development,
> > I had some calulation part whose result is a double value.The result is
> > different on difeerent versions of jdk (jdk1.5.06 and jdk1.5.02).
> >

>
> On the same machine?
>
> Dan.
>
> --
> Daniel Dyer
> http://www.dandyer.co.uk




manzur
  Reply With Quote
Old 11-09-2006, 11:41 AM   #4
Daniel Dyer
 
Posts: n/a
Default Re: difference between jdk1.5.06 and jdk1.5.02
On Thu, 09 Nov 2006 10:36:45 -0000, manzur <> wrote:

> They are two different machines.


Might not be the JRE that is the problem. Different machines may use
different precisions. If you want predictable results, use strictfp
(http://en.wikipedia.org/wiki/Strictfp).

Dan.

--
Daniel Dyer
http://www.dandyer.co.uk


Daniel Dyer
  Reply With Quote
Old 11-09-2006, 01:00 PM   #5
=?ISO-8859-1?Q?Arne_Vajh=F8j?=
 
Posts: n/a
Default Re: difference between jdk1.5.06 and jdk1.5.02
manzur wrote:
> i encountered an interesting problem during my s/w development,
> I had some calulation part whose result is a double value.The result is
> different on difeerent versions of jdk (jdk1.5.06 and jdk1.5.02).


Actually it is 1.5.0_2 -> 1.5.0_6 and the _02 to _06 is only bugfixes,
so unless a bug fixed effects your code, then I would look elsewhere
for the difference.

Arne


=?ISO-8859-1?Q?Arne_Vajh=F8j?=
  Reply With Quote
Old 11-09-2006, 01:28 PM   #6
Chris Uppal
 
Posts: n/a
Default Re: difference between jdk1.5.06 and jdk1.5.02
Arne Vajhøj wrote:
> manzur wrote:
> > i encountered an interesting problem during my s/w development,
> > I had some calulation part whose result is a double value.The result is
> > different on difeerent versions of jdk (jdk1.5.06 and jdk1.5.02).

>
> Actually it is 1.5.0_2 -> 1.5.0_6 and the _02 to _06 is only bugfixes,


And for details of the bugfixes see

http://java.sun.com/j2se/1.5.0/ReleaseNotes.html

but like Arne, I suspect your problem lies elsewhere.

-- chris




Chris Uppal
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46