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 17392 Details for
Bug 83536
"Incompatible argument to function" at vararg function
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_83536.txt (text/plain), 1.11 KB, created by
Olivier Thomann
on 2005-01-24 10:35:46 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-01-24 10:35:46 EST
Size:
1.11 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/ast/Statement.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Statement.java,v >retrieving revision 1.31 >diff -u -r1.31 Statement.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/Statement.java 21 Oct 2004 13:34:43 -0000 1.31 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/Statement.java 24 Jan 2005 15:33:39 -0000 >@@ -63,7 +63,9 @@ > if (argLength >= paramLength) { > // right number of arguments - could be inexact - pass argument as is > TypeBinding lastType = arguments[varArgIndex].resolvedType; >- if (lastType == NullBinding || varArgsType.dimensions() == lastType.dimensions()) { >+ if (lastType == NullBinding >+ || (varArgsType.dimensions() == lastType.dimensions() >+ && lastType.isCompatibleWith(varArgsType))) { > // foo(1, new int[]{2, 3}) or foo(1, null) --> last arg is passed as-is > arguments[varArgIndex].generateCode(currentScope, codeStream, true); > break generateVarargsArgument;
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 83536
: 17392