You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/04/01 11:02:24 UTC
DO NOT REPLY [Bug 28121] New: -
Extension doesn't work on inner classes
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: xalan-dev@xml.apache.org
ReportedBy: flemaire@activsoft.fr
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?