-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 17, 20
-
b07
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8348761 | 17.0.17-oracle | Johny Jose | P4 | Open | Unresolved | |
JDK-8348762 | 11.0.29-oracle | Johny Jose | P4 | Open | Unresolved |
The computation of the number of canonical equivalent permutations requires a pre-check to ensure the correctness of the result in the `int` range.
A check failure indicates that the computation would overflow the `int` range. As a consequence, there's no point in generating the permutations, as that would later lead to an `OutOfMemoryError`.
From a logical perspective, however, a failure still indicates an `OutOfMemoryError` condition, although not a physical one. Thus, `OutOfMemoryError` is thrown pre-emptively with a descriptive message.
A check failure indicates that the computation would overflow the `int` range. As a consequence, there's no point in generating the permutations, as that would later lead to an `OutOfMemoryError`.
From a logical perspective, however, a failure still indicates an `OutOfMemoryError` condition, although not a physical one. Thus, `OutOfMemoryError` is thrown pre-emptively with a descriptive message.
- backported by
-
JDK-8348761 Add a pre-check for the number of canonical equivalent permutations in j.u.r.Pattern
-
- Open
-
-
JDK-8348762 Add a pre-check for the number of canonical equivalent permutations in j.u.r.Pattern
-
- Open
-
- csr for
-
JDK-8300209 Specify that usage of CANON_EQ in j.u.r.Pattern may lead to memory exhaustion
-
- Closed
-