Commit 3840b15
authored
fix: provide context class loader when transforming classes (#1601)
### Motivation
When a class is currently being transformed the system class loader is
used to provide access to classes that are required to build the final
class file. However, this causes issues when classes are required that
are not available to the system class loader, e.g. if dynamically loaded
by the server software.
### Modification
Use the class loader of the class that is being transformed, as it must
be able to provide all necessary classes to perform the transformation.
### Result
No more issues during class transforming due to unknown classes.1 parent b209b6a commit 3840b15
1 file changed
Lines changed: 8 additions & 1 deletion
File tree
- wrapper-jvm/impl/src/main/java/eu/cloudnetservice/wrapper/impl/transform
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
113 | 120 | | |
114 | 121 | | |
115 | | - | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
| |||
0 commit comments