Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 357852

Summary: Expecting decimal ISA to be based on field definition rather than actual value
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: 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:
Attachments:
Description Flags
run driver program none

Description Kathy Carroll CLA 2011-09-15 14:05:07 EDT
Based on RBD, I'm expecting decimal ISA to be based on the field definition rather than actual value.  I expect these variations to write out true to the console.  Used install build 201109150902

program driver2 type BasicProgram {}

	function main()
		implicitDec05D02 decimal(5,2);
		explicitDec05D02 decimal(5,2) = 123.45;
		nullDec decimal(5,2)?;
		expecting  boolean = true;
		
		actual boolean = implicitDec05D02 isa decimal(5,2);
  		syslib.writestdout("implicitDec05D02 isa decimal(5,2) " + (actual == expecting)); 
  		
 		actual  = explicitDec05D02 isa decimal(5,2);
  		syslib.writestdout("explicitDec05D02 isa decimal(5,2) " + (actual == expecting)); 
  		
  		implicitDec05D02 = 1.2;
  		actual = implicitDec05D02 isa decimal(5,2);
  		syslib.writestdout("implicitDec05D02=1.2 isa decimal(5,2) " + (actual == expecting)); 
  		
  		expecting = false;
  		actual = implicitDec05D02 isa decimal(2,1);
  		syslib.writestdout("implicitDec05D02=1.2 isa decimal(2,1) " + (actual == expecting)); 
  
    	actual = nullDec isa decimal(5,2);
  		syslib.writestdout("nullDec isa decimal(5,2) " + (actual == expecting)); 
	end	
end
Comment 1 Jeff Douglas CLA 2011-09-16 15:17:50 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-09-19 15:47:36 EDT
verified 201109191052
Comment 3 Kathy Carroll CLA 2011-09-22 08:18:30 EDT
Created attachment 203836 [details]
run driver program
Comment 4 Kathy Carroll CLA 2011-09-22 08:20:03 EDT
Seeing the same problem when passing a decimal to a function with an Any or Number parameter.  Project in attached file. Run the driver program.  I'm expecting all variations to write out expected.
Comment 5 Jeff Douglas CLA 2011-09-23 12:42:11 EDT
this is because we haven't implemented the number support as yet
Comment 6 Jeff Douglas CLA 2011-10-03 15:46:05 EDT
fixed.
Comment 7 Kathy Carroll CLA 2011-10-12 13:22:35 EDT
Verified 201110120952