You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2011/09/09 20:53:09 UTC

[jira] [Resolved] (CXF-2615) Generated serialization JS should not pretend to have "block scope"

     [ https://issues.apache.org/jira/browse/CXF-2615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2615.
------------------------------

       Resolution: Won't Fix
    Fix Version/s: Invalid


This improvement request has been open for over a year and no-one has stepped up to implement it. As such, it does not seems to be a priority for the existing CXF community. If, in the future, someone would like to tackle this, feel free to open is and attach a patch.

> 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
>          Components: JavaScript Client
>            Reporter: Tim McCormack
>            Priority: Minor
>             Fix For: Invalid
>
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira