DWR

Number.MAX_VALUE not converted properly

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 3.0.M1
  • Component/s: converters
  • 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.
    Show
    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.

Activity

There are no comments yet on this issue.

People

Dates

  • Created:
    08/Oct/07 6:17 PM
    Updated:
    14/Feb/08 2:13 PM
    Resolved:
    14/Feb/08 2:13 PM