We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0b3248 commit 32c29f2Copy full SHA for 32c29f2
org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacBindingResolver.java
@@ -1021,6 +1021,11 @@ IMethodBinding resolveMethod(MethodDeclaration method) {
1021
if (!this.isRecoveringBindings) {
1022
if( methodDecl.type == null || methodDecl.type instanceof ErrorType)
1023
return null;
1024
+ if( methodDecl.restype == null || methodDecl.restype.type instanceof ErrorType) {
1025
+ boolean methodDeclNameMatchesInit = Objects.equals(methodDecl.name.toString(), Names.instance(this.context).init.toString());
1026
+ if( !methodDeclNameMatchesInit )
1027
+ return null;
1028
+ }
1029
if( methodDecl.params != null ) {
1030
for( JCVariableDecl jcvd : methodDecl.params) {
1031
if( jcvd.type instanceof ErrorType ) {
0 commit comments