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 73124 Details for
Bug 195526
org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest.test0744 depends on non-specified package-private class HashMap.Entry implementation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_195526.txt (text/plain), 2.22 KB, created by
Olivier Thomann
on 2007-07-05 10:47:51 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-07-05 10:47:51 EDT
Size:
2.22 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.632 >diff -u -r1.632 GenericTypeTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 2 Jul 2007 15:28:19 -0000 1.632 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 5 Jul 2007 14:47:54 -0000 >@@ -32,7 +32,7 @@ > // All specified tests which does not belong to the class are skipped... > static { > // TESTS_NAMES = new String[] { "test0788" }; >-// TESTS_NUMBERS = new int[] { 1054 }; >+// TESTS_NUMBERS = new int[] { 744 }; > // TESTS_RANGE = new int[] { 1097, -1 }; > } > public static Test suite() { >@@ -23116,11 +23116,18 @@ > "\n" + > "import java.io.*;\n" + > "\n" + >- "public abstract class X<K1, V1> extends HashMap<K1, V1> {\n" + >+ "class Super<U, V> {\n" + >+ " static class Entry<U,V> {\n" + >+ " Entry(int i, U u, V v, Entry<U,V> entry) {}\n" + >+ " void recordAccess(Super<U,V> s) {\n" + >+ " }\n" + >+ " }\n" + >+ "}\n"+ >+ "public abstract class X<K1, V1> extends Super<K1, V1> {\n" + > "\n" + > " Entry<K1, V1> h;\n" + > "\n" + >- " private static class Entry<K2, V2> extends HashMap.Entry<K2, V2> {\n" + >+ " private static class Entry<K2, V2> extends Super.Entry<K2, V2> {\n" + > "\n" + > " Entry() {\n" + > " super(0, null, null, null);\n" + >@@ -23129,7 +23136,7 @@ > " void ab(@SuppressWarnings(\"unused\") Entry<K2, V2> e) {\n" + > " }\n" + > "\n" + >- " @Override void recordAccess(HashMap<K2, V2> m) {\n" + >+ " @Override void recordAccess(Super<K2, V2> m) {\n" + > " X<K2, V2> x = (X<K2, V2>) m;\n" + > " ab(x.h);\n" + > " }\n" + >@@ -23138,7 +23145,7 @@ > "}\n" > }, > "----------\n" + >- "1. ERROR in java\\util\\X.java (at line 23)\n" + >+ "1. ERROR in java\\util\\X.java (at line 30)\n" + > " Zork z;\n" + > " ^^^^\n" + > "Zork cannot be resolved to a type\n" +
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 195526
: 73124