Summary: | char/string concat bug | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | salmasri |
Version: | 2.0 | ||
Target Milestone: | 2.0 M2 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Olivier Thomann
2002-01-10 12:53:52 EST
This is a code gen optimization bug: s = '0' + s --> s += '0', but in the case of a String concat it is not allowed. There was a fix in this area already, but the fix did only look at the left operand instead of both operands of the + expression to check for String... Fixed. Couldn't we check that the operation implicit conversion isn't T_String instead of checking the left and the right? Backported to 1.0 stream (rollup2) Verified and added test case (see ConformTest.test109). Verified in rollup2. |