-
Bug
-
Resolution: Fixed
-
P4
-
None
-
None
-
b57
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085633 | emb-9 | Hannes Wallnoefer | P4 | Resolved | Fixed | team |
JDK-8087051 | 8u65 | Hannes Wallnoefer | P4 | Resolved | Fixed | b01 |
JDK-8076100 | 8u60 | Hannes Wallnoefer | P4 | Resolved | Fixed | b10 |
JDK-8138499 | emb-8u65 | Unassigned | P4 | Resolved | Fixed | b01 |
JDK-8079051 | emb-8u60 | Hannes Wallnoefer | P4 | Resolved | Fixed | team |
We use java.lang.Double.parseDouble(String) in JSType.toNumber(String). However, that method allows some characters such as trailing 'f' or 'd' that are not allowed by ECMA spec (9.3.1):
"0.5d"
"1f"
We need to improve our checks. This may also help improve performance as more input strigns are converted to NaN without a NumberFormatException being thrown.
"0.5d"
"1f"
We need to improve our checks. This may also help improve performance as more input strigns are converted to NaN without a NumberFormatException being thrown.
- backported by
-
JDK-8076100 toNumber(String) accepts illegal characters
-
- Resolved
-
-
JDK-8079051 toNumber(String) accepts illegal characters
-
- Resolved
-
-
JDK-8085633 toNumber(String) accepts illegal characters
-
- Resolved
-
-
JDK-8087051 toNumber(String) accepts illegal characters
-
- Resolved
-
-
JDK-8138499 toNumber(String) accepts illegal characters
-
- Resolved
-