- 
    Bug 
- 
    Resolution: Fixed
- 
     P4 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 | Closed | Fixed | b03 | 
| JDK-8363420 | 17.0.17 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 | 
| JDK-8348762 | 11.0.29-oracle | Johny Jose | P4 | Closed | Fixed | b03 | 
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-8363420 Add a pre-check for the number of canonical equivalent permutations in j.u.r.Pattern -           
- Resolved
 
-         
- 
                    JDK-8348761 Add a pre-check for the number of canonical equivalent permutations in j.u.r.Pattern -           
- Closed
 
-         
- 
                    JDK-8348762 Add a pre-check for the number of canonical equivalent permutations in j.u.r.Pattern -           
- Closed
 
-         
- csr for
- 
                    JDK-8300209 Specify that usage of CANON_EQ in j.u.r.Pattern may lead to memory exhaustion -           
- Closed
 
-         
- links to
- 
                     Commit
        openjdk/jdk/030b071d Commit
        openjdk/jdk/030b071d
- 
                     Commit(master)
        openjdk/jdk17u-dev/e97a8fab Commit(master)
        openjdk/jdk17u-dev/e97a8fab
- 
                     Review
        openjdk/jdk/12027 Review
        openjdk/jdk/12027
- 
                     Review(master)
        openjdk/jdk17u-dev/3765 Review(master)
        openjdk/jdk17u-dev/3765