We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2344b77 commit b0cd437Copy full SHA for b0cd437
retrolambda/src/main/java/net/orfjackal/retrolambda/Transformers.java
@@ -58,6 +58,9 @@ public byte[] backportInterface(ClassReader reader) {
58
next = new RemoveDefaultMethodBodies(next);
59
next = new UpdateRelocatedMethodInvocations(next, analyzer);
60
} else {
61
+ // XXX: It would be better to remove only those static methods which are lambda implementation methods,
62
+ // but that would either require the use of naming patterns (not guaranteed to work with every Java compiler)
63
+ // or passing around information that which relocated static methods are because of lambdas.
64
next = new RemoveStaticMethods(next); // needed for lambdas in an interface's constant initializer
65
next = new WarnAboutDefaultAndStaticMethods(next);
66
}
0 commit comments