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 182552 Details for
Bug 329584
[1.4/1.5][compiler] Compiler is confused about name clashes in 1.4 project
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix + test
patch.txt (text/plain), 2.25 KB, created by
Srikanth Sankaran
on 2010-11-06 08:22:17 EDT
(
hide
)
Description:
Proposed fix + test
Filename:
MIME Type:
Creator:
Srikanth Sankaran
Created:
2010-11-06 08:22:17 EDT
Size:
2.25 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.119 >diff -u -r1.119 MethodVerifier15.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java 1 Nov 2010 14:15:47 -0000 1.119 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java 6 Nov 2010 12:20:47 -0000 >@@ -89,6 +89,24 @@ > } > boolean areTypesEqual(TypeBinding one, TypeBinding two) { > if (one == two) return true; >+ // https://bugs.eclipse.org/bugs/show_bug.cgi?id=329584 >+ switch(one.kind()) { >+ case Binding.TYPE: >+ switch (two.kind()) { >+ case Binding.PARAMETERIZED_TYPE: >+ case Binding.RAW_TYPE: >+ if (one == two.erasure()) >+ return true; >+ } >+ break; >+ case Binding.RAW_TYPE: >+ case Binding.PARAMETERIZED_TYPE: >+ switch(two.kind()) { >+ case Binding.TYPE: >+ if (one.erasure() == two) >+ return true; >+ } >+ } > > // need to consider X<?> and X<? extends Object> as the same 'type' > if (one.isParameterizedType() && two.isParameterizedType()) >#P org.eclipse.jdt.core.tests.compiler >Index: src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java,v >retrieving revision 1.208 >diff -u -r1.208 MethodVerifyTest.java >--- src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 5 Nov 2010 20:47:44 -0000 1.208 >+++ src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java 6 Nov 2010 12:21:00 -0000 >@@ -11183,7 +11183,7 @@ > null); > } > //https://bugs.eclipse.org/bugs/show_bug.cgi?id=329584 >-public void _test329584() { >+public void test329584() { > Map compilerOptions15 = getCompilerOptions(); > compilerOptions15.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, CompilerOptions.VERSION_1_5); > compilerOptions15.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_5);
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 329584
:
182524
| 182552