-
-
Notifications
You must be signed in to change notification settings - Fork 546
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
Is pf4j.ignoreExtensionPoint supposed to work with abstract ExtensionPoint? #369
Comments
Thanks. I agree. Don't think #360 will help much for the issue I'm having. I can see why it could be difficult to determine from The error message could be improved a bit though, because it made me doubt whether using an abstract class as extension point was supported by pf4j in the first place. Maybe something like |
Yes. Please add a PR. |
@GunoH |
Yes, let's close it. |
Hi,
Using an abstract class as extension point, which does not implement
org.pf4j.ExtensionPoint
(combined with the compiler arg-Apf4j.ignoreExtensionPoint
that was added for #350), gives me the following compilation error:Error:(32,8) java: com.foo.MyExtension is not an extension (it doesn't implement any interface)
According to the pf4j docs, an extension point can either be an interface or an abstract class. Therefore I do not agree with the error message;
MyExtension
is an extension, because it extends an extension point (which happens to be an abstract class instead of an interface). So it should just work :-)Am I missing something here? Is this supposed to work? Could this be a bug in pf4j?
Thanks,
Guno
The text was updated successfully, but these errors were encountered: