Commit 07d1ffe
Fix JDK 25 LinkageError in JavaUnrestrictedClassLoader (#6736)
Wrap defineClass() in try-catch for LinkageError to handle JDK 25+ class loader constraint violations. When app classloader eagerly loads com.sun.* classes through cross-module type boundaries, fall back to parent delegation instead of crashing.
Co-authored-by: Tim te Beek <tim@mac.home>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>1 parent f096b9a commit 07d1ffe
1 file changed
Lines changed: 12 additions & 1 deletion
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
109 | 120 | | |
110 | 121 | | |
111 | 122 | | |
| |||
0 commit comments