You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/05/07 03:02:01 UTC

[jira] Closed: (TAPESTRY-2409) Service method advice fails when a parameter or return value type is an array

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

Howard M. Lewis Ship closed TAPESTRY-2409.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.12

Added a couple of examples to the tapestry-core MethodAdviseDemo page to prove it doesn't have the same problem (it didn't).

> Service method advice fails when a parameter or return value type is an array
> -----------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2409
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2409
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.0.12
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>             Fix For: 5.0.12
>
>
> In this case, it is the new logging decorator that is failing for a method whose return value is String[].
> javassist.compiler.SyntaxError
> syntax error near "{ [Ljava.lang"
> lex
>     javassist.compiler.Lex@fc1432
> Stack trace
>         * javassist.compiler.Parser.parsePrimaryExpr(Parser.java:1255)
>         * javassist.compiler.Parser.parsePostfix(Parser.java:1029)
>         * javassist.compiler.Parser.parseUnaryExpr(Parser.java:887)
>         * javassist.compiler.Parser.parseBinaryExpr(Parser.java:774)
>         * javassist.compiler.Parser.parseConditionalExpr(Parser.java:718)
>         * javassist.compiler.Parser.parseExpression(Parser.java:698)
>         * javassist.compiler.Parser.parseDeclarationOrExpression(Parser.java:590)
>         * javassist.compiler.Parser.parseStatement(Parser.java:276)
>         * javassist.compiler.Parser.parseBlock(Parser.java:288)
>         * javassist.compiler.Parser.parseStatement(Parser.java:242)
>         * javassist.compiler.Javac.compileBody(Javac.java:213)
>         * javassist.CtBehavior.setBody(CtBehavior.java:360)
>         * javassist.CtBehavior.setBody(CtBehavior.java:334)
>         * org.apache.tapestry.ioc.internal.services.ClassFabImpl.addMethod(ClassFabImpl.java:211)
>         * org.apache.tapestry.ioc.internal.services.AspectInterceptorBuilderImpl.addProceed(AspectInterceptorBuilderImpl.java:245)
>         * org.apache.tapestry.ioc.internal.services.AspectInterceptorBuilderImpl.createInvocationClass(AspectInterceptorBuilderImpl.java:185)
>         * org.apache.tapestry.ioc.internal.services.AspectInterceptorBuilderImpl.adviseMethod(AspectInterceptorBuilderImpl.java:107)
>         * org.apache.tapestry.ioc.internal.services.AspectDecoratorImpl$1.adviseMethod(AspectDecoratorImpl.java:69)
>         * org.apache.tapestry.ioc.internal.services.AspectDecoratorImpl.build(AspectDecoratorImpl.java:44)
>         * org.apache.tapestry.ioc.internal.services.LoggingDecoratorImpl.build(LoggingDecoratorImpl.java:74)
>         * com.parametrix.earth.services.AppModule.decorateWithLogging(AppModule.java:280)

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org