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 192758 Details for
Bug 341759
NPE in ITypeBinding#getName() for intersection type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix + regression test
patch_341759.txt (text/plain), 1.70 KB, created by
Olivier Thomann
on 2011-04-07 11:40:16 EDT
(
hide
)
Description:
Proposed fix + regression test
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2011-04-07 11:40:16 EDT
Size:
1.70 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: dom/org/eclipse/jdt/core/dom/TypeBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypeBinding.java,v >retrieving revision 1.150 >diff -u -r1.150 TypeBinding.java >--- dom/org/eclipse/jdt/core/dom/TypeBinding.java 7 Jan 2011 15:10:23 -0000 1.150 >+++ dom/org/eclipse/jdt/core/dom/TypeBinding.java 7 Apr 2011 15:35:22 -0000 >@@ -177,7 +177,6 @@ > public ITypeBinding getGenericTypeOfWildcardType() { > switch (this.binding.kind()) { > case Binding.WILDCARD_TYPE : >- case Binding.INTERSECTION_TYPE : > WildcardBinding wildcardBinding = (WildcardBinding) this.binding; > if (wildcardBinding.genericType != null) { > return this.resolver.getTypeBinding(wildcardBinding.genericType); >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/dom/ASTConverter17Test.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/Attic/ASTConverter17Test.java,v >retrieving revision 1.1.2.4 >diff -u -r1.1.2.4 ASTConverter17Test.java >--- src/org/eclipse/jdt/core/tests/dom/ASTConverter17Test.java 1 Apr 2011 16:37:58 -0000 1.1.2.4 >+++ src/org/eclipse/jdt/core/tests/dom/ASTConverter17Test.java 7 Apr 2011 15:35:22 -0000 >@@ -427,5 +427,6 @@ > checkSourceRange(type, "ExceptionA | ExceptionB", contents); > ITypeBinding typeBinding = type.resolveBinding(); > assertNotNull("No binding", typeBinding); >+ assertNull("This should be null for intersection type", typeBinding.getGenericTypeOfWildcardType()); > } > }
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 341759
: 192758