Lines 28-33
Link Here
|
28 |
import org.eclipse.jdt.internal.compiler.ast.TypeReference; |
28 |
import org.eclipse.jdt.internal.compiler.ast.TypeReference; |
29 |
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; |
29 |
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; |
30 |
import org.eclipse.jdt.internal.compiler.impl.Constant; |
30 |
import org.eclipse.jdt.internal.compiler.impl.Constant; |
|
|
31 |
import org.eclipse.jdt.internal.compiler.util.Util; |
31 |
|
32 |
|
32 |
public class SourceTypeBinding extends ReferenceBinding { |
33 |
public class SourceTypeBinding extends ReferenceBinding { |
33 |
public ReferenceBinding superclass; |
34 |
public ReferenceBinding superclass; |
Lines 577-582
Link Here
|
577 |
if (uniqueKey.length == 2) return uniqueKey; // problem type's unique key is "L;" |
578 |
if (uniqueKey.length == 2) return uniqueKey; // problem type's unique key is "L;" |
578 |
int start = CharOperation.lastIndexOf('/', this.fileName) + 1; |
579 |
int start = CharOperation.lastIndexOf('/', this.fileName) + 1; |
579 |
int end = CharOperation.lastIndexOf('.', this.fileName); |
580 |
int end = CharOperation.lastIndexOf('.', this.fileName); |
|
|
581 |
if (Util.isClassFileName(this.fileName)) { |
582 |
// if (isMemberType()) |
583 |
return uniqueKey; |
584 |
} |
580 |
if (end != -1) { |
585 |
if (end != -1) { |
581 |
char[] mainTypeName = CharOperation.subarray(this.fileName, start, end); |
586 |
char[] mainTypeName = CharOperation.subarray(this.fileName, start, end); |
582 |
start = CharOperation.lastIndexOf('/', uniqueKey) + 1; |
587 |
start = CharOperation.lastIndexOf('/', uniqueKey) + 1; |