Lines 11-16
Link Here
|
11 |
package org.eclipse.jdt.internal.compiler.lookup; |
11 |
package org.eclipse.jdt.internal.compiler.lookup; |
12 |
|
12 |
|
13 |
import org.eclipse.jdt.core.compiler.CharOperation; |
13 |
import org.eclipse.jdt.core.compiler.CharOperation; |
|
|
14 |
import org.eclipse.jdt.internal.compiler.ast.ASTNode; |
15 |
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; |
16 |
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; |
14 |
|
17 |
|
15 |
public final class MemberTypeBinding extends NestedTypeBinding { |
18 |
public final class MemberTypeBinding extends NestedTypeBinding { |
16 |
public MemberTypeBinding(char[][] compoundName, ClassScope scope, SourceTypeBinding enclosingType) { |
19 |
public MemberTypeBinding(char[][] compoundName, ClassScope scope, SourceTypeBinding enclosingType) { |
Lines 33-38
Link Here
|
33 |
|
36 |
|
34 |
return constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), sourceName, '$'); |
37 |
return constantPoolName = CharOperation.concat(enclosingType().constantPoolName(), sourceName, '$'); |
35 |
} |
38 |
} |
|
|
39 |
public void initializeDeprecatedAnnotationTagBits() { |
40 |
if ((this.tagBits & (TagBits.AnnotationResolved|TagBits.AnnotationDeprecated)) == 0) { |
41 |
ReferenceBinding enclosing = this.enclosingType(); |
42 |
enclosing.initializeDeprecatedAnnotationTagBits(); |
43 |
TypeDeclaration typeDecl = this.scope.referenceContext; |
44 |
boolean old = typeDecl.staticInitializerScope.insideTypeAnnotation; |
45 |
try { |
46 |
typeDecl.staticInitializerScope.insideTypeAnnotation = true; |
47 |
ASTNode.resolveDeprecatedAnnotations(typeDecl.staticInitializerScope, typeDecl.annotations, this); |
48 |
} finally { |
49 |
typeDecl.staticInitializerScope.insideTypeAnnotation = old; |
50 |
} |
51 |
if ((this.tagBits & TagBits.AnnotationDeprecated) != 0) { |
52 |
this.modifiers |= ClassFileConstants.AccDeprecated; |
53 |
} else if ((enclosing.modifiers & (ClassFileConstants.AccDeprecated | |
54 |
ExtraCompilerModifiers.AccDeprecatedImplicitly)) != 0) { |
55 |
this.modifiers |= ExtraCompilerModifiers.AccDeprecatedImplicitly; |
56 |
} |
57 |
} |
58 |
} |
36 |
public String toString() { |
59 |
public String toString() { |
37 |
return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$ |
60 |
return "Member type : " + new String(sourceName()) + " " + super.toString(); //$NON-NLS-2$ //$NON-NLS-1$ |
38 |
} |
61 |
} |