cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4881) Wrong set custom trace function in cxf-utils.js
Date Mon, 11 Mar 2013 13:25:13 GMT

    [ https://issues.apache.org/jira/browse/CXF-4881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13598802#comment-13598802
] 

Daniel Kulp commented on CXF-4881:
----------------------------------

It's a Java class that we throw into the rhino runtime we used for testing:

{code:java}
    public static class Trace extends ScriptableObject {
        public Trace() {
        }
        public String getClassName() {
            return "org_apache_cxf_trace";
        }
        public static void jsStaticFunction_trace(String message) {
            LOG.fine(message);
        }
    }
{code}

I did try playing around with non-static methods, etc... and didn't find anything that didn't
return "function".
                
> Wrong set custom trace function in cxf-utils.js
> -----------------------------------------------
>
>                 Key: CXF-4881
>                 URL: https://issues.apache.org/jira/browse/CXF-4881
>             Project: CXF
>          Issue Type: Bug
>          Components: Dynamic Languages, JavaScript Client
>    Affects Versions: 2.7.3
>            Reporter: Stanislav Svirid
>              Labels: javascript
>
> In function CxfApacheOrgUtil custom trace function installed like:
> {code:javascript}
> this.trace = org_apache_cxf_trace.trace;
> {code}
> But _org_apache_cxf_trace_ checked for "function" type, not object.
> And default null_trace function is simple function too.
> A think correct code is look like this:
> {code:javascript}
> this.trace = org_apache_cxf_trace;
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message