Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356365 - Complex assignment operators cause errors in generated Java
Summary: Complex assignment operators cause errors in generated Java
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-31 12:01 EDT by broy2 CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description broy2 CLA 2011-08-31 12:01:51 EDT
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
Comment 1 Jeff Douglas CLA 2011-09-09 15:24:42 EDT
fixed
Comment 2 broy2 CLA 2011-09-13 11:58:01 EDT
Verified in 20110912