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 30422 Details for
Bug 117495
[compiler] ternary ops return wrong type when condition is boolean literal
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_117495.txt (text/plain), 2.29 KB, created by
Olivier Thomann
on 2005-11-22 19:54:09 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-11-22 19:54:09 EST
Size:
2.29 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java,v >retrieving revision 1.29 >diff -u -r1.29 Constant.java >--- compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java 11 Apr 2005 15:37:37 -0000 1.29 >+++ compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java 23 Nov 2005 00:52:45 -0000 >@@ -1240,15 +1240,15 @@ > break; > case T_JavaLangString : > switch (rightId){ >- case T_char : return Constant.fromValue(left.stringValue() + right.stringValue()); >- case T_float: return Constant.fromValue(left.stringValue() + right.stringValue()); >- case T_double: return Constant.fromValue(left.stringValue() + right.stringValue()); >- case T_byte: return Constant.fromValue(left.stringValue() + right.stringValue()); >- case T_short: return Constant.fromValue(left.stringValue() + right.stringValue()); >- case T_int: return Constant.fromValue(left.stringValue() + right.stringValue()); >- case T_long: return Constant.fromValue(left.stringValue() + right.stringValue()); >+ case T_char : return Constant.fromValue(left.stringValue() + String.valueOf(right.charValue())); >+ case T_float: return Constant.fromValue(left.stringValue() + String.valueOf(right.floatValue())); >+ case T_double: return Constant.fromValue(left.stringValue() + String.valueOf(right.doubleValue())); >+ case T_byte: return Constant.fromValue(left.stringValue() + String.valueOf(right.byteValue())); >+ case T_short: return Constant.fromValue(left.stringValue() + String.valueOf(right.shortValue())); >+ case T_int: return Constant.fromValue(left.stringValue() + String.valueOf(right.intValue())); >+ case T_long: return Constant.fromValue(left.stringValue() + String.valueOf(right.longValue())); > case T_JavaLangString: return Constant.fromValue(left.stringValue() + right.stringValue()); >- case T_boolean: return Constant.fromValue(left.stringValue() + right.stringValue()); >+ case T_boolean: return Constant.fromValue(left.stringValue() + String.valueOf(right.booleanValue())); > } > break; > case T_null :
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 117495
: 30422