Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't process default methods at all #162

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jtulach
Copy link

@jtulach jtulach commented Oct 18, 2020

Hi.
I am trying to upgrade Bck2Brwsr VM usage of Retrolamda from 2.1.0 to 2.5.7. I am facing problems. Bck2Brwsr doesn't need help with default methods, only with lambdas. Looks like that version 2.5.7 isn't really ready for that.

This change, together with 3a5bb2a change seem to do the trick. Can you please review them and accept or suggest better way to do what is necessary?

One surprising issue is that I have to call analyzer.analyse myself as it is not called when defaultMethodsEnabled is false.

Then I needed to somehow disable creation of the companion class. The protected method which allows me to return existing class name seems to do the trick.

My changes just outline what is necessary. I am sure you can come up with better fixes.

Btw. it maybe hard to test with defaultMethodsEnabled being off - if you are interested, I could prepare some testcase using Bck2Brwsr AOT compilation & execution. It might make upgrading to new retrolambda version less painful in the future.

@jtulach
Copy link
Author

jtulach commented Jul 9, 2021

Is there any chance this PR gets in and a new release is crafted anytime soon? Or shall I fork my own copy of Retrolamda into Bck2Brwsr VM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant