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

Generate warnings/errors when injected interface contains methods without implementation #2446

Open
Earthcomputer opened this issue Mar 2, 2025 · 0 comments

Comments

@Earthcomputer
Copy link
Member

Minecraft Development for IntelliJ plugin version

2024.3-1.8.2-539

Description of the feature request

Interface injection has an issue where if the interface doesn't provide an implementation of the method, then when you try to call that method on a non-abstract class, javac will generate a compile error because it can't find any concrete implementation of the method. However, intellij doesn't detect this compile error.

To mitigate this issue, I think we need:

  • An error when a method is called on a concrete (non-abstract) type but there is no concrete implementation of that method found at compile time.
  • A warning on any method without an implementation in an interface which is used in interface injection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant