View | Details | Raw Unified | Return to bug 245007 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java (-3 / +1 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 350-357 Link Here
350
							}
350
							}
351
						}
351
						}
352
					}
352
					}
353
				} else {
354
					return null;
355
				}
353
				}
356
				if (this.anonymousType != null) {
354
				if (this.anonymousType != null) {
357
					// insert anonymous type in scope (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=210070)
355
					// insert anonymous type in scope (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=210070)
(-)src/org/eclipse/jdt/core/tests/compiler/regression/ProblemTypeAndMethodTest.java (-2 / +7 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 2919-2925 Link Here
2919
			"	    ^^^^\n" +
2919
			"	    ^^^^\n" +
2920
			"Zork cannot be resolved to a type\n" +
2920
			"Zork cannot be resolved to a type\n" +
2921
			"----------\n" +
2921
			"----------\n" +
2922
			"11. ERROR in X.java (at line 13)\n" +
2922
			"11. ERROR in X.java (at line 8)\n" +
2923
			"	new Zork(){}.baz();\n" +
2924
			"	             ^^^\n" +
2925
			"The method baz() is undefined for the type new Zork(){}\n" +
2926
			"----------\n" +
2927
			"12. ERROR in X.java (at line 13)\n" +
2923
			"	X1(Zork z) {}\n" +
2928
			"	X1(Zork z) {}\n" +
2924
			"	   ^^^^\n" +
2929
			"	   ^^^^\n" +
2925
			"Zork cannot be resolved to a type\n" +
2930
			"Zork cannot be resolved to a type\n" +
(-)src/org/eclipse/jdt/core/tests/dom/ASTConverterAST3Test.java (-2 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 7409-7415 Link Here
7409
		checkSourceRange(name, "j", source); //$NON-NLS-1$
7409
		checkSourceRange(name, "j", source); //$NON-NLS-1$
7410
		IBinding binding = name.resolveBinding();
7410
		IBinding binding = name.resolveBinding();
7411
		ASTNode declaringNode = compilationUnit.findDeclaringNode(binding);
7411
		ASTNode declaringNode = compilationUnit.findDeclaringNode(binding);
7412
		assertNull("No declaring node is available", declaringNode); //$NON-NLS-1$
7412
		assertNotNull("No declaring node is available", declaringNode); //$NON-NLS-1$
7413
	}
7413
	}
7414
7414
7415
	/**
7415
	/**
(-)src/org/eclipse/jdt/core/tests/dom/ASTConverterBugsTest.java (-2 / +6 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 859-865 Link Here
859
			"8. ERROR in /Converter15/src/a/X.java (at line 16)\n" +
859
			"8. ERROR in /Converter15/src/a/X.java (at line 16)\n" +
860
			"	}takeParam((int) c);\n" +
860
			"	}takeParam((int) c);\n" +
861
			"	^\n" +
861
			"	^\n" +
862
			"Syntax error, insert \";\" to complete Statement\n",
862
			"Syntax error, insert \";\" to complete Statement\n" + 
863
			"9. ERROR in /Converter15/src/a/X.java (at line 16)\n" + 
864
			"	}takeParam((int) c);\n" + 
865
			"	 ^^^^^^^^^^\n" + 
866
			"Return type for the method is missing\n",
863
			result);
867
			result);
864
}
868
}
865
/**
869
/**
(-)src/org/eclipse/jdt/core/tests/dom/ASTConverterTest.java (-2 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 7581-7587 Link Here
7581
		checkSourceRange(name, "j", source); //$NON-NLS-1$
7581
		checkSourceRange(name, "j", source); //$NON-NLS-1$
7582
		IBinding binding = name.resolveBinding();
7582
		IBinding binding = name.resolveBinding();
7583
		ASTNode declaringNode = compilationUnit.findDeclaringNode(binding);
7583
		ASTNode declaringNode = compilationUnit.findDeclaringNode(binding);
7584
		assertNull("No declaring node is available", declaringNode); //$NON-NLS-1$
7584
		assertNotNull("No declaring node is available", declaringNode); //$NON-NLS-1$
7585
	}
7585
	}
7586
7586
7587
	/**
7587
	/**
(-)src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java (-2 / +18 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2009 IBM Corporation and others.
2
 * Copyright (c) 2000, 2010 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 8021-8027 Link Here
8021
				"	CharsetDecoder(CharSet\n" +
8021
				"	CharsetDecoder(CharSet\n" +
8022
				"	^^^^^^^^^^^^^^^^^^^^^^\n" +
8022
				"	^^^^^^^^^^^^^^^^^^^^^^\n" +
8023
				"Syntax error on token(s), misplaced construct(s)\n" +
8023
				"Syntax error on token(s), misplaced construct(s)\n" +
8024
				"11. ERROR in /Converter/src/TestCharset.java (at line 17)\n" +
8024
				"11. ERROR in /Converter/src/TestCharset.java (at line 10)\n" +
8025
				"	CharsetDecoder(CharSet\n" +
8026
				"	^^^^^^^^^^^^^^^\n" +
8027
				"Return type for the method is missing\n" +
8028
				"12. ERROR in /Converter/src/TestCharset.java (at line 11)\n" +
8029
				"	protected CoderResult decodeLoop(ByteBuffer in,\n" +
8030
				"	          ^^^^^^^^^^^\n" +
8031
				"CoderResult cannot be resolved to a type\n" +
8032
				"13. ERROR in /Converter/src/TestCharset.java (at line 11)\n" +
8033
				"	protected CoderResult decodeLoop(ByteBuffer in,\n" +
8034
				"	                                 ^^^^^^^^^^\n" +
8035
				"ByteBuffer cannot be resolved to a type\n" +
8036
				"14. ERROR in /Converter/src/TestCharset.java (at line 12)\n" +
8037
				"	CharBuffer out) {\n" +
8038
				"	^^^^^^^^^^\n" +
8039
				"CharBuffer cannot be resolved to a type\n" +
8040
				"15. ERROR in /Converter/src/TestCharset.java (at line 17)\n" +
8025
				"	public CharsetEncoder newEncoder() {\n" +
8041
				"	public CharsetEncoder newEncoder() {\n" +
8026
				"	       ^^^^^^^^^^^^^^\n" +
8042
				"	       ^^^^^^^^^^^^^^\n" +
8027
				"CharsetEncoder cannot be resolved to a type\n",
8043
				"CharsetEncoder cannot be resolved to a type\n",

Return to bug 245007