Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324691 - Possible parsing error in org.mortbay.util.ajax.JSON
Summary: Possible parsing error in org.mortbay.util.ajax.JSON
Status: RESOLVED WORKSFORME
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Greg Wilkins CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-07 15:32 EDT by Wayne Beaton CLA
Modified: 2010-09-07 19:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.