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 19303 Details for
Bug 89448
Java Generics code throws a java.lang.NoClassDefFoundError
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_89448.txt (text/plain), 1.41 KB, created by
Olivier Thomann
on 2005-03-29 22:33:08 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-03-29 22:33:08 EST
Size:
1.41 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/ast/ForeachStatement.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForeachStatement.java,v >retrieving revision 1.15 >diff -u -r1.15 ForeachStatement.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/ForeachStatement.java 24 Feb 2005 16:08:24 -0000 1.15 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/ForeachStatement.java 30 Mar 2005 03:31:24 -0000 >@@ -25,6 +25,7 @@ > import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding; > import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; > import org.eclipse.jdt.internal.compiler.lookup.TypeConstants; >+import org.eclipse.jdt.internal.compiler.lookup.WildcardBinding; > > public class ForeachStatement extends Statement { > >@@ -180,7 +181,11 @@ > case GENERIC_ITERABLE : > collection.generateCode(scope, codeStream, true); > // declaringClass.iterator(); >- final TypeBinding collectionTypeBinding = collection.resolvedType; >+ TypeBinding collectionTypeBinding = collection.resolvedType; >+ if (collectionTypeBinding.isWildcard()) { >+ WildcardBinding wildcardBinding = (WildcardBinding) collectionTypeBinding; >+ collectionTypeBinding = wildcardBinding.bound; >+ } > MethodBinding iteratorMethodBinding = > new MethodBinding( > AccPublic,
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 89448
: 19303