Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324691

Summary: Possible parsing error in org.mortbay.util.ajax.JSON
Product: [RT] Jetty Reporter: Wayne Beaton <wayne.beaton>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: jetty-inbox, simone.bordet
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Wayne Beaton CLA 2010-09-07 15:32:17 EDT
Reported via EMO inbox:

--
There is a bug in the jetty util jar (at least in 6.1.9) when parsing a negative number.  This will parse as positive: -0.6667.  This is due to an error on line 1048 where you multiply minus by the existing number.  Since it is 0, the minus gets ignored.
--

I was further able to determine that the file in question is org.mortbay.util.ajax.JSON

FWIW, I took a look at the file in SVN and the line number does not align with the version in trunk. Hopefully this is enough to go on. I understand that 6.1.9 is not technically part of the Eclipse project, but figured that the bug should be reported anyway.

I will ask the the sender to cc himself on this bug.
Comment 1 Greg Wilkins CLA 2010-09-07 19:20:13 EDT
This is already fixed in latest Jetty-6 and Jetty-7
So upgrade to the latest.

thanks for the report.