| Summary: | Complex assignment operators cause errors in generated Java | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | broy2 |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffdouglas |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
fixed Verified in 20110912 |
Build Identifier: 20110831 program pgm type BasicProgram{} a decimal(4); b decimal(4); c decimal(4); function main() a+=b; a-=b; a*=b; a/=b; a**=b; a%=b; end end The operator -= is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal The operator *= is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal The operator *= is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal The operator /= is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal The operator %= is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal The operator += is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal It also looks like the message doesn't allow enough space for a 3 character operator. The operator **= just has *= in the message. Reproducible: Always