Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 110000 Details for
Bug 244164
[1.5][compiler] Missing implementation error when referencing a generic field with error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch_244164_tests.txt (text/plain), 2.02 KB, created by
Olivier Thomann
on 2008-08-14 12:07:21 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2008-08-14 12:07:21 EDT
Size:
2.02 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java,v >retrieving revision 1.747 >diff -u -r1.747 GenericTypeTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 11 Aug 2008 22:04:54 -0000 1.747 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 14 Aug 2008 16:07:02 -0000 >@@ -31,7 +31,7 @@ > // All specified tests which does not belong to the class are skipped... > static { > // TESTS_NAMES = new String[] { "test0788" }; >-// TESTS_NUMBERS = new int[] { 1368 }; >+// TESTS_NUMBERS = new int[] { 1369 }; > // TESTS_RANGE = new int[] { 1097, -1 }; > } > public static Test suite() { >@@ -45958,4 +45958,30 @@ > }, > ""); > } >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=244164 >+public void test1369() { >+ this.runNegativeTest( >+ new String[] { >+ "X.java", //----------------------------------------------------------------------- >+ "import java.util.HashMap;\n" + >+ "import java.util.Map;\n" + >+ "public class X {\n" + >+ " private static Map<String, Zork> map = new HashMap<String, X>();\n" + >+ " public static X foo(String s) {\n" + >+ " return map.get(s);\n" + >+ " }\n" + >+ "}",//----------------------------------------------------------------------- >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 4)\n" + >+ " private static Map<String, Zork> map = new HashMap<String, X>();\n" + >+ " ^^^^\n" + >+ "Zork cannot be resolved to a type\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 6)\n" + >+ " return map.get(s);\n" + >+ " ^^^\n" + >+ "Map<String,Zork> cannot be resolved to a type\n" + >+ "----------\n"); >+} > } >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244164
:
110000
|
112086
|
112103
|
125135