Skip to content

Commit

Permalink
Merge pull request #4768 from ehsavoie/NETBEANS-4923
Browse files Browse the repository at this point in the history
[NETBEANS-4923]: Problem with Deploy/HotDeploy using Netbeans 12.1 an…
  • Loading branch information
ehsavoie authored Oct 12, 2022
2 parents 5b0d526 + d4eda26 commit 0087cff
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ protected Class<?> findClass(String name) throws ClassNotFoundException {
String path = name.replace('.', '/').concat(".class"); // NOI18N
try (InputStream is = super.getResourceAsStream(path)) {
ClassReader cr = new ClassReader(is);
final ClassLoader ld = this;
ClassWriter cw = new ClassWriter(cr, ClassWriter.COMPUTE_FRAMES) {

@Override
Expand All @@ -152,6 +153,13 @@ protected String getCommonSuperClass(String string, String string1) {
}
return super.getCommonSuperClass(string, string1);
}

@Override
protected ClassLoader getClassLoader() {
return ld;
}


};
ClassNode node = new ClassNode(Opcodes.ASM9);
cr.accept(node, 0);
Expand Down

0 comments on commit 0087cff

Please sign in to comment.