RFR: 8336492: Regression in lambda serialization [v16]

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Aug 9 23:40:32 UTC 2024


On Wed, 7 Aug 2024 20:45:20 GMT, ExE Boss <duke at openjdk.org> wrote:

> Using `SequencedSet` would allow to skip the call to `com.sun.tools.javac.util.List​::reverse()` on the result of `CaptureScanner​::analyzeCaptures()`.

Not sure about that. Note that `Lower` wants the order of capture to be reversed compared to the "logical" order, but `LambdaToMethod` does not. To me, it is cleaner to put the reverse call close to the code that has "special" requirements, which in this case happens to be `Lower` (which is why the code ended up with that shape).

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20349#issuecomment-2278881133


More information about the compiler-dev mailing list