View | Details | Raw Unified | Return to bug 261909
Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java (-2 / +7 lines)
Lines 658-667 Link Here
658
 * @return int
658
 * @return int
659
 */
659
 */
660
public int getModifiers() {
660
public int getModifiers() {
661
	int modifiers;
661
	if (this.innerInfo != null) {
662
	if (this.innerInfo != null) {
662
		return this.innerInfo.getModifiers() | (this.accessFlags & ClassFileConstants.AccDeprecated);
663
		modifiers = this.innerInfo.getModifiers()
664
			| (this.accessFlags & ClassFileConstants.AccDeprecated)
665
			| (this.accessFlags & ClassFileConstants.AccSynthetic);
666
	} else {
667
		modifiers = this.accessFlags;
663
	}
668
	}
664
	return this.accessFlags;
669
	return modifiers;
665
}
670
}
666
671
667
/**
672
/**
(-)model/org/eclipse/jdt/internal/core/BinaryType.java (-1 / +2 lines)
Lines 23-28 Link Here
23
import org.eclipse.jdt.core.search.SearchEngine;
23
import org.eclipse.jdt.core.search.SearchEngine;
24
import org.eclipse.jdt.internal.codeassist.CompletionEngine;
24
import org.eclipse.jdt.internal.codeassist.CompletionEngine;
25
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;
25
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;
26
import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants;
26
import org.eclipse.jdt.internal.compiler.env.IBinaryAnnotation;
27
import org.eclipse.jdt.internal.compiler.env.IBinaryAnnotation;
27
import org.eclipse.jdt.internal.compiler.env.IBinaryType;
28
import org.eclipse.jdt.internal.compiler.env.IBinaryType;
28
import org.eclipse.jdt.internal.compiler.lookup.Binding;
29
import org.eclipse.jdt.internal.compiler.lookup.Binding;
Lines 315-321 Link Here
315
 */
316
 */
316
public int getFlags() throws JavaModelException {
317
public int getFlags() throws JavaModelException {
317
	IBinaryType info = (IBinaryType) getElementInfo();
318
	IBinaryType info = (IBinaryType) getElementInfo();
318
	return info.getModifiers();
319
	return info.getModifiers() & ~ClassFileConstants.AccSuper;
319
}
320
}
320
/*
321
/*
321
 * @see IType#getFullyQualifiedName()
322
 * @see IType#getFullyQualifiedName()

Return to bug 261909