Tapestry
  1. Tapestry
  2. TAPESTRY-2409

Service method advice fails when a parameter or return value type is an array

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.12
    • Fix Version/s: 5.0.12
    • Component/s: tapestry-ioc
    • Labels:
      None

      Description

      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)

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Howard M. Lewis Ship added a comment -

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

        Show
        Howard M. Lewis Ship added a comment - Added a couple of examples to the tapestry-core MethodAdviseDemo page to prove it doesn't have the same problem (it didn't).
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.12 [ 12313048 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12430502 ] Default workflow, editable Closed status [ 12568867 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568867 ] jira [ 12591887 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        11m 27s 1 Howard M. Lewis Ship 07/May/08 01:52
        In Progress In Progress Closed Closed
        9m 16s 1 Howard M. Lewis Ship 07/May/08 02:01

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development