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 130129 Details for
Bug 270194
[1.5][compiler] Java error in 3.5M6 that was not present in 3.4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch and testcase
patch.txt (text/plain), 2.41 KB, created by
Kent Johnson
on 2009-03-27 14:27:54 EDT
(
hide
)
Description:
Proposed patch and testcase
Filename:
MIME Type:
Creator:
Kent Johnson
Created:
2009-03-27 14:27:54 EDT
Size:
2.41 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v >retrieving revision 1.352 >diff -u -r1.352 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 25 Mar 2009 20:17:40 -0000 1.352 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 27 Mar 2009 18:28:16 -0000 >@@ -834,7 +834,7 @@ > if (compatibleMethod != null) { > if (compatibleMethod.isValidBinding()) { > if (concreteMatch != null && concreteMatch.declaringClass.findSuperTypeOriginatingFrom(compatibleMethod.declaringClass) != null) >- if (environment().methodVerifier().isParameterSubsignature(concreteMatch, compatibleMethod)) >+ if (environment().methodVerifier().isParameterSubsignature(concreteMatch.original(), compatibleMethod.original())) > continue; // can skip this method since concreteMatch overrides it > if (candidatesCount == 0) { > candidates = new MethodBinding[foundSize - startFoundSize + 1]; >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/AmbiguousMethodTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AmbiguousMethodTest.java,v >retrieving revision 1.63 >diff -u -r1.63 AmbiguousMethodTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/AmbiguousMethodTest.java 19 Mar 2009 14:20:30 -0000 1.63 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/AmbiguousMethodTest.java 27 Mar 2009 18:28:18 -0000 >@@ -3206,4 +3206,23 @@ > "----------\n" > ); > } >+ >+//https://bugs.eclipse.org/bugs/show_bug.cgi?id=270194 >+public void test077() { >+ this.runConformTest( >+ new String[] { >+ "X.java", >+ "abstract class X implements I {\n" + >+ " public <A extends J<A, D>, D extends J<A, D>> A method(A arg) { return null; }\n" + >+ " void test(Y<String> c) { method(c); }\n" + >+ "}\n" + >+ "interface I {\n" + >+ " <A extends J<A,D>, D extends J<A,D>> A method(A arg);\n" + >+ "}\n" + >+ "interface J<A extends J<A,D>, D extends J<A,D>> {}\n" + >+ "class Y<E> implements J<Y<E>, Y<E>> {}" >+ }, >+ "" >+ ); >+} > }
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 270194
:
130029
| 130129