Issue Details (XML | Word | Printable)

Key: DWR-163
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Joe Walker
Reporter: Joe Walker
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
DWR

Number.MAX_VALUE not converted properly

Created: 08/Oct/07 06:17 PM   Updated: 14/Feb/08 02:13 PM   Resolved: 14/Feb/08 02:13 PM
Component/s: converters
Affects Version/s: None
Fix Version/s: 3.0.M1


 Description  « Hide
I wanted to send Number.MAX_VALUE to the server to a double parameter

Javascript sends this in the HTTP request: 1.7976931348623157e 308

But in org.directwebremoting.util.LocalUtil.simpleConvert(), Java's
Double.valueOf(string) doesn't accept the javascript value.

but it requires 1.7976931348623157E308 instead and throws an exception with
"Invalid float literal number"

This is Firefox 2.0.0.7 - I'm not sure if it's a browser thing, but I'd
guess so.

Looks like it needs a bit more massaging in LocalUtil.

Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.