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 22762 Details for
Bug 99260
[1.5][compiler] Bad bytecode generated with varargs + generics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_99260.txt (text/plain), 1.10 KB, created by
Olivier Thomann
on 2005-06-09 19:53:49 EDT
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-06-09 19:53:49 EDT
Size:
1.10 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java,v >retrieving revision 1.108 >diff -u -r1.108 CodeStream.java >--- compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java 26 May 2005 21:02:13 -0000 1.108 >+++ compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java 9 Jun 2005 23:52:03 -0000 >@@ -5129,7 +5129,15 @@ > this.newarray(DOUBLE_ARRAY); > break; > default : >- this.anewarray(component); >+ if (component.isWildcard()) { >+ WildcardBinding wildcardBinding = (WildcardBinding) component; >+ TypeBinding[] bounds = new TypeBinding[wildcardBinding.otherBounds.length + 1]; >+ bounds[0] = wildcardBinding.bound; >+ System.arraycopy(wildcardBinding.otherBounds, 0, bounds, 1, wildcardBinding.otherBounds.length); >+ this.anewarray(Scope.greaterLowerBound(bounds)[0]); >+ } else { >+ this.anewarray(component); >+ } > } > } > public void newJavaLangError() {
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 99260
:
22762
|
22763
|
22764