DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28121>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28121

Extension doesn't work on inner classes

           Summary: Extension doesn't work on inner classes
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: org.apache.xalan.extensions
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I've tried to use an inner class as an extension object like this:

<xsl:stylesheet
  
xmlns:urlMaker="com.activsoft.engine.redirection.StandardRedirectionServlet$Stan
dardUrlMaker"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  extension-element-prefixes="urlMaker"
  exclude-result-prefixes="urlMaker"
  version="1.0">

...

<xsl:variable name="urlMaker" select="urlMaker:new($root)"/>

...

</xsl:stylesheet>

I get a NoSuchMethodError telling me that it cannot find a constructor for 
com.activsoft.engine.redirection.StandardRedirectionServlet$StandardUrlMaker 
with ExtensionContext and String as parameters, though they exist. I've turned 
my inner class into a class, and it works. Am I doing something wrong or is it 
a bug?

Reply via email to