Generated serialization JS should not pretend to have "block scope"
-------------------------------------------------------------------
Key: CXF-2615
URL: https://issues.apache.org/jira/browse/CXF-2615
Project: CXF
Issue Type: Improvement
Reporter: Tim McCormack
Priority: Minor
org.apache.cxf.javascript.JavascriptUtils generates serializer code in JS that
surrounds individual serializations with block scope. This is allegedly
(according to a code comment) to provide a "block for local variables", but JS
does not actually support block scope:
https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Block_Statement
Instead, all of these chunks of code run in the same scope. I am unsure as to
whether this attempt at keeping a clean scope has any effect on extant code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.