You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Eric Schwarzenbach (JIRA)" <xa...@xml.apache.org> on 2008/02/11 22:46:08 UTC

[jira] Created: (XALANJ-2432) static java method extension function call mistaken as non-static if there's a package

static java method extension function call mistaken as non-static if there's a package
--------------------------------------------------------------------------------------

                 Key: XALANJ-2432
                 URL: https://issues.apache.org/jira/browse/XALANJ-2432
             Project: XalanJ2
          Issue Type: Bug
    Affects Versions: 2.7.1
            Reporter: Eric Schwarzenbach


My call to a static method works fine when my class has no package, and I declare a prefix like so:
{code}
xmlns:uuid="xalan://UuidTools"
extension-element-prefixes="uuid"
{code}
and later call it like so
{code}
<xsl:value-of select="uuid:getNewUuidAsBase64()"/>
{code}

If I compile UuidTools with a package declaration and revise my xls accordingly, like so

{code}
xmlns:uuid="xalan://com.wrycan.xms.xslt.extfuncs.UuidTools"
{code}

it fails with 
{code}
(Location of error unknown)javax.xml.transform.TransformerException: Instance method call to method getNewUuidAsBase64 requires an Object instance as first argument
{code}

As though it doesn't understand that this method is static.

The method signature is
{code}
   public static String getNewUuidAsBase64()
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org