Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2409

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 5.0.12
    • 5.0.12
    • tapestry-ioc
    • 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)

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: