Skip to content

Commit b0cd437

Browse files
committed
Notes
1 parent 2344b77 commit b0cd437

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

retrolambda/src/main/java/net/orfjackal/retrolambda/Transformers.java

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public byte[] backportInterface(ClassReader reader) {
5858
next = new RemoveDefaultMethodBodies(next);
5959
next = new UpdateRelocatedMethodInvocations(next, analyzer);
6060
} 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.
6164
next = new RemoveStaticMethods(next); // needed for lambdas in an interface's constant initializer
6265
next = new WarnAboutDefaultAndStaticMethods(next);
6366
}

0 commit comments

Comments
 (0)