Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2011 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 11-16
Link Here
|
11 |
*******************************************************************************/ |
11 |
*******************************************************************************/ |
12 |
package org.eclipse.jdt.internal.compiler.ast; |
12 |
package org.eclipse.jdt.internal.compiler.ast; |
13 |
|
13 |
|
|
|
14 |
import org.eclipse.jdt.core.compiler.CharOperation; |
14 |
import org.eclipse.jdt.internal.compiler.ASTVisitor; |
15 |
import org.eclipse.jdt.internal.compiler.ASTVisitor; |
15 |
import org.eclipse.jdt.internal.compiler.impl.Constant; |
16 |
import org.eclipse.jdt.internal.compiler.impl.Constant; |
16 |
import org.eclipse.jdt.internal.compiler.lookup.*; |
17 |
import org.eclipse.jdt.internal.compiler.lookup.*; |
Lines 75-83
Link Here
|
75 |
} |
76 |
} |
76 |
if (this.actualReceiverType instanceof ReferenceBinding) { |
77 |
if (this.actualReceiverType instanceof ReferenceBinding) { |
77 |
ReferenceBinding refBinding = (ReferenceBinding) this.actualReceiverType; |
78 |
ReferenceBinding refBinding = (ReferenceBinding) this.actualReceiverType; |
78 |
MethodBinding possibleMethod = this.receiver.isThis() |
79 |
char[] selector = this.token; |
79 |
? scope.getImplicitMethod(this.token, Binding.NO_TYPES, this) |
80 |
MethodBinding possibleMethod = null; |
80 |
: scope.getMethod(refBinding, this.token, Binding.NO_TYPES, this); |
81 |
if (CharOperation.equals(this.actualReceiverType.sourceName(), selector)) { |
|
|
82 |
possibleMethod = scope.getConstructor(refBinding, Binding.NO_TYPES, this); |
83 |
} else { |
84 |
possibleMethod = this.receiver.isThis() |
85 |
? scope.getImplicitMethod(selector, Binding.NO_TYPES, this) |
86 |
: scope.getMethod(refBinding, selector, Binding.NO_TYPES, this); |
87 |
} |
81 |
if (possibleMethod.isValidBinding()) { |
88 |
if (possibleMethod.isValidBinding()) { |
82 |
this.methodBinding = possibleMethod; |
89 |
this.methodBinding = possibleMethod; |
83 |
} else { |
90 |
} else { |