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

(-)compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties (-2 / +2 lines)
Lines 38-45 Link Here
38
27 = Cannot use an expression of the type {0} as a valid enclosing instance
38
27 = Cannot use an expression of the type {0} as a valid enclosing instance
39
28 = No enclosing instance of type {0} is available due to some intermediate constructor invocation
39
28 = No enclosing instance of type {0} is available due to some intermediate constructor invocation
40
29 = An anonymous class cannot subclass the final class {0}
40
29 = An anonymous class cannot subclass the final class {0}
41
30 = The member annotation {0} can only be defined inside a static context
41
30 = The member annotation {0} can only be defined inside a top-level class or interface
42
31 = The member enum {0} cannot be local
42
31 = The member enum {0} can only be defined inside a top-level class or interface
43
32 = The member enum {0} must be defined inside a static member type
43
32 = The member enum {0} must be defined inside a static member type
44
33 = The type {0} is hiding the type {1}
44
33 = The type {0} is hiding the type {1}
45
45
(-)src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java (-1 / +1 lines)
Lines 4747-4753 Link Here
4747
    		"1. ERROR in X.java (at line 3)\n" +
4747
    		"1. ERROR in X.java (at line 3)\n" +
4748
    		"	@interface Bar {\n" +
4748
    		"	@interface Bar {\n" +
4749
    		"	           ^^^\n" +
4749
    		"	           ^^^\n" +
4750
    		"The member annotation Bar can only be defined inside a static context\n" +
4750
    		"The member annotation Bar can only be defined inside a top-level class or interface\n" +
4751
    		"----------\n");
4751
    		"----------\n");
4752
    }
4752
    }
4753
4753
(-)src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java (-3 / +3 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2010 IBM Corporation and others.
2
 * Copyright (c) 2000, 2011 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 2524-2530 Link Here
2524
		"1. ERROR in X.java (at line 3)\n" +
2524
		"1. ERROR in X.java (at line 3)\n" +
2525
		"	enum E {}\n" +
2525
		"	enum E {}\n" +
2526
		"	     ^\n" +
2526
		"	     ^\n" +
2527
		"The member enum E cannot be local\n" +
2527
		"The member enum E can only be defined inside a top-level class or interface\n" +
2528
		"----------\n");
2528
		"----------\n");
2529
}
2529
}
2530
2530
Lines 2570-2576 Link Here
2570
		"1. ERROR in X.java (at line 4)\n" +
2570
		"1. ERROR in X.java (at line 4)\n" +
2571
		"	enum E {}\n" +
2571
		"	enum E {}\n" +
2572
		"	     ^\n" +
2572
		"	     ^\n" +
2573
		"The member enum E cannot be local\n" +
2573
		"The member enum E can only be defined inside a top-level class or interface\n" +
2574
		"----------\n");
2574
		"----------\n");
2575
}
2575
}
2576
2576

Return to bug 339913