Repository navigation
Commit 6634032
Test chaining a caught exception that may already have its cause
The Apache Derby shape behind DERBY-2472: exceptions caught in a loop are
chained with initCause, but their constructor may already have set the cause,
so the call can throw "Can't overwrite cause". The catch parameter's state is
unknown, so the call is reported.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 6559819 commit 6634032
2 files changed
Lines changed: 26 additions & 0 deletions
File tree
- liquidjava-example/src/main/java/testSuite/classes/try_catch_error
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
171 | 189 | | |
0 commit comments