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 57329 Details for
Bug 170318
[1.5][compiler] improve message on nameclash when overriding method with "wildcard" parameter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Suggested fix
org.eclipse.jdt.core_01.txt (text/plain), 2.19 KB, created by
Maxime Daniel
on 2007-01-23 04:40:44 EST
(
hide
)
Description:
Suggested fix
Filename:
MIME Type:
Creator:
Maxime Daniel
Created:
2007-01-23 04:40:44 EST
Size:
2.19 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java,v >retrieving revision 1.65 >diff -u -r1.65 MethodVerifier15.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java 15 Jan 2007 12:04:28 -0000 1.65 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java 23 Jan 2007 09:31:16 -0000 >@@ -516,7 +516,8 @@ > MethodBinding original = inherited.original(); // can be the same as inherited > if (!current.areParameterErasuresEqual(original) || current.returnType.erasure() != original.returnType.erasure()) return false; > >- problemReporter(current).methodNameClash(current, original); >+ problemReporter(current).methodNameClash(current, >+ inherited.declaringClass.isRawType() ? inherited : original); > return true; > } > public boolean doesMethodOverride(MethodBinding method, MethodBinding inheritedMethod) { >#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.585 >diff -u -r1.585 GenericTypeTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 15 Jan 2007 12:16:57 -0000 1.585 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java 23 Jan 2007 09:32:52 -0000 >@@ -36394,7 +36394,7 @@ > "2. ERROR in X.java (at line 8)\n" + > " public void foo(final X<?> x) {\n" + > " ^^^^^^^^^^^^^^^^^\n" + >- "Name clash: The method foo(X<?>) of type Z has the same erasure as foo(X<?>) of type Y<T> but does not override it\n" + >+ "Name clash: The method foo(X<?>) of type Z has the same erasure as foo(X) of type Y but does not override it\n" + > "----------\n" + > "3. WARNING in X.java (at line 9)\n" + > " super.foo(x);\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 170318
: 57329