Super calls not resolved
See original GitHub issueExample:
public class A {
public int getInt() {
return 42;
}
}
public class B extends A {
@Override
public int getInt() {
return super.getInt() + 2;
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Why is super.super.method(); not allowed in Java?
Wanting to call super.super.toString() contradicts your own decision when you choose to extend a class thus accepting all (not some of) its features....
Read more >keyword to force calling the super on any method #21388
The problem is that, unlike a constructor, there is no way to force a method overriding another one to call the parent "super"...
Read more >IntelliJ IDEA cannot resolve calls to super() if constructor is not ...
Hello guys, I am having trouble with 'moving' (CTRL + B or CTRL + left click) to super constructor inside IntelliJ IDEA. It...
Read more >The `super` keyword doesn't work as it should? - ESDiscuss.org
A super query must not depend on this (only), it must statically resolve the object on which the called method is defined. In...
Read more >Super Keyword in Java - GeeksforGeeks
One more important thing is that 'super' can call both parametric as well as non-parametric constructors depending upon the situation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah I just double checked, the method itself is correctly resolved as
A.getInt
. So the problem is on our side as it seemsI was looking at https://github.com/javaparser/javaparser/commit/5d63f63846f6049603771d4ff1928ba9fa0e98ab which sounded like in general super calls are resolved but not for specific cases