Bug 797135 - BigDecimal 99.99B in TestScenario results in NumberFormatException
Summary: BigDecimal 99.99B in TestScenario results in NumberFormatException
Keywords:
Status: ASSIGNED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: future
Assignee: Toni Rikkola
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-24 11:10 UTC by Zuzana Krejčová
Modified: 2020-04-27 01:13 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 724448 0 high MODIFIED [GUVNOR-675]Support for BigDecimal in Guided Editor 2021-02-22 00:41:40 UTC

Internal Links: 724448

Description Zuzana Krejčová 2012-02-24 11:10:29 UTC
Description of problem:
BigDecimal field of a 'Given fact' with a value 99.99B in TestScenario results in NumberFormatException. The value can be entered via copy&paste, it can't be typed in.


Version-Release number of selected component (if applicable):
BRMS 5.3.0 ER4


Steps to Reproduce:
1. Create a new model with a fact with BigDecimal field.
2. Create a test scenario with a given fact, that one you just created, add the BigDecimal field and copy&paste 99.99B into it. 
3. Save and run the test scenario.

  
Actual results:
Error dialogue - the test cannot be run - and a java.lang.NumberFormatException exception in the server log.


Expected results:
No error, no exception. 


Additional info:
This is closely related to https://bugzilla.redhat.com/show_bug.cgi?id=724448 - Support for BigDecimal in Guided Editor.

Comment 1 Zuzana Krejčová 2012-02-24 11:24:22 UTC
The value 99.99 in a BigDecimal field in test scenarios seems to be understood as BigDecimal even without the B annotation. It matches with 99.99B from a guided rule rhs, it doesn't match 99.99 in the same field in the rule.

Comment 5 Ryan Zhang 2012-03-21 09:55:52 UTC
Please verify this issue on ER5.

Comment 6 manstis 2012-03-21 12:08:53 UTC
Please see comment #3. It has not been back-ported to 5.3.x. I proposed it is
shifted to the subsequent release. Please also note the expectation was that Test Scenarios use TextBoxFactory to ensure value editors were correct for the data-type. Toni Rikkola has been making changes in this area. BZ assigned to Toni to confirm (future) release resolves this issue.

Comment 8 Ryan Zhang 2012-04-23 07:37:38 UTC
Update status to ON_QA. Please verify them against ER6.


Note You need to log in before you can comment on or make changes to this bug.