Skip to content

Conversation

Rawi01
Copy link
Collaborator

@Rawi01 Rawi01 commented Sep 25, 2025

This PR fixes #3954 and #3947

  • To suppress messages during resolution lombok injected a temporary message collection into the current diagnostic handler and restored the original one afterwards. Instead of using this error prone approach lombok now installs a DiscardDiagnosticHandler that is designed exactly for this purpose and is also used by the compiler itself.
  • The removeAllBetween method now uses a LinkedList to be compatible with all known versions of the Log class. I also noticed that this code was broken a long time and even if I remove it all our tests pass. Might be possible to remove all that stuff.
  • I also noticed that the compare method in JavacResolution doesn't work because the used Name::compareTo returns different results in Java 8

@Rawi01 Rawi01 linked an issue Sep 25, 2025 that may be closed by this pull request
@asheldon
Copy link

I've tested this change against the actual code that demonstrated #3947 and it appears to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants