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

(-)dom/org/eclipse/jdt/core/dom/TypeBinding.java (-7 / +7 lines)
Lines 221-227 Link Here
221
	/*
221
	/*
222
	 * @see ITypeBinding#getDeclaredFields()
222
	 * @see ITypeBinding#getDeclaredFields()
223
	 */
223
	 */
224
	public IVariableBinding[] getDeclaredFields() {
224
	public synchronized IVariableBinding[] getDeclaredFields() {
225
		if (this.fields != null) {
225
		if (this.fields != null) {
226
			return this.fields;
226
			return this.fields;
227
		}
227
		}
Lines 256-262 Link Here
256
	/*
256
	/*
257
	 * @see ITypeBinding#getDeclaredMethods()
257
	 * @see ITypeBinding#getDeclaredMethods()
258
	 */
258
	 */
259
	public IMethodBinding[] getDeclaredMethods() {
259
	public synchronized IMethodBinding[] getDeclaredMethods() {
260
		if (this.methods != null) {
260
		if (this.methods != null) {
261
			return this.methods;
261
			return this.methods;
262
		}
262
		}
Lines 304-310 Link Here
304
	/*
304
	/*
305
	 * @see ITypeBinding#getDeclaredTypes()
305
	 * @see ITypeBinding#getDeclaredTypes()
306
	 */
306
	 */
307
	public ITypeBinding[] getDeclaredTypes() {
307
	public synchronized ITypeBinding[] getDeclaredTypes() {
308
		if (this.members != null) {
308
		if (this.members != null) {
309
			return this.members;
309
			return this.members;
310
		}
310
		}
Lines 339-345 Link Here
339
	/*
339
	/*
340
	 * @see ITypeBinding#getDeclaringMethod()
340
	 * @see ITypeBinding#getDeclaringMethod()
341
	 */
341
	 */
342
	public IMethodBinding getDeclaringMethod() {
342
	public synchronized IMethodBinding getDeclaringMethod() {
343
		if (this.binding instanceof LocalTypeBinding) {
343
		if (this.binding instanceof LocalTypeBinding) {
344
			LocalTypeBinding localTypeBinding = (LocalTypeBinding) this.binding;
344
			LocalTypeBinding localTypeBinding = (LocalTypeBinding) this.binding;
345
			MethodBinding methodBinding = localTypeBinding.enclosingMethod;
345
			MethodBinding methodBinding = localTypeBinding.enclosingMethod;
Lines 377-383 Link Here
377
	/*
377
	/*
378
	 * @see ITypeBinding#getDeclaringClass()
378
	 * @see ITypeBinding#getDeclaringClass()
379
	 */
379
	 */
380
	public ITypeBinding getDeclaringClass() {
380
	public synchronized ITypeBinding getDeclaringClass() {
381
		if (isClass() || isInterface() || isEnum()) {
381
		if (isClass() || isInterface() || isEnum()) {
382
			ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
382
			ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
383
			if (referenceBinding.isNestedType()) {
383
			if (referenceBinding.isNestedType()) {
Lines 449-455 Link Here
449
		return this.resolver.getTypeBinding(this.binding.erasure());
449
		return this.resolver.getTypeBinding(this.binding.erasure());
450
	}
450
	}
451
451
452
	public ITypeBinding[] getInterfaces() {
452
	public synchronized ITypeBinding[] getInterfaces() {
453
		if (this.interfaces != null) {
453
		if (this.interfaces != null) {
454
			return this.interfaces;
454
			return this.interfaces;
455
		}
455
		}
Lines 887-893 Link Here
887
	/*
887
	/*
888
	 * @see ITypeBinding#getSuperclass()
888
	 * @see ITypeBinding#getSuperclass()
889
	 */
889
	 */
890
	public ITypeBinding getSuperclass() {
890
	public synchronized ITypeBinding getSuperclass() {
891
		if (this.binding == null)
891
		if (this.binding == null)
892
			return null;
892
			return null;
893
		switch (this.binding.kind()) {
893
		switch (this.binding.kind()) {

Return to bug 181349