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

Method reference to protected method in base class in other package fails with IllegalAccessError #89

Closed
mikaelstaldal opened this issue Feb 18, 2016 · 0 comments

Comments

@mikaelstaldal
Copy link

A method reference to protected method in base class in other package fails with java.lang.IllegalAccessError at runtime.

Probably since it is called from a generated inner class which is not a subclass of the base class, and therefore cannot access the protected method the base class in other package.
java.lang.IllegalAccessError: Method 'void com.foo.common.BaseClass.someMethod()' is inaccessible to class 'com.foo.stuff.Subclass$$Lambda$3'

com.foo.stuff.Subclass extends com.foo.common.BaseClass.

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

No branches or pull requests

1 participant