diff --git a/java-api/src/main/java/xyz/wagyourtail/jvmdg/providers/Java11Downgrader.java b/java-api/src/main/java/xyz/wagyourtail/jvmdg/providers/Java11Downgrader.java index b2ded25..23db466 100644 --- a/java-api/src/main/java/xyz/wagyourtail/jvmdg/providers/Java11Downgrader.java +++ b/java-api/src/main/java/xyz/wagyourtail/jvmdg/providers/Java11Downgrader.java @@ -123,6 +123,11 @@ public ClassNode otherTransforms(ClassNode clazz, Set extra, Function } public void fixNests(ClassNode clazz, Function getReadOnly) { + for (MethodNode method : clazz.methods) { + if (method.name.equals("")) { + method.access &= ~Opcodes.ACC_PRIVATE; + } + } if (clazz.nestHostClass == null) { fixNestsForParent(clazz, getReadOnly); } else {