details: https://code.openbravo.com/erp/devel/pi/rev/c71e65f4a614
changeset: 16810:c71e65f4a614
user: Antonio Moreno <antonio.moreno <at> openbravo.com>
date: Tue Jun 12 13:49:31 2012 +0200
summary: Fixed issue 20734. Readded optimization.
Without the optimization, the results generated by the Javascript parsing were
different. In this specific example, the value 102 was transformed into a
double (102.0), and this produced the error described in the issue.
diffstat:
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
| 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diffs (11 lines):
diff -r ceefd321f7ba -r c71e65f4a614
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
---
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
Tue Jun 12 07:06:37 2012 -0400
+++
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/FormInitializationComponent.java
Tue Jun 12 13:49:31 2012 +0200
@@ -1435,7 +1435,6 @@
}
try {
Context cx = Context.enter();
- cx.setOptimizationLevel(-1);
Scriptable scope = cx.initStandardObjects();
cx.evaluateString(scope, resp, "<cmd>", 1, null);
NativeArray array = (NativeArray) scope.get("respuesta", scope);
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits