1 Reply Latest reply on May 11, 2005 5:28 AM by Kabir Khan

    bugfix FieldAccessTransformer

    Holger Engels Newbie

       

      [aopc] { if (currentInterceptor < interceptors.length) { try { return interceptors[currentInterceptor++].invoke(this); } catch (Throwable t) { currentInterceptor--; throw t; } } typedTargetObject.bytBerKurzbezeichnung = ((Byte)value).byteValue() return null;}
       [aopc] java.lang.RuntimeException: failed to transform: wilken.basismodul.allgemein.StammdatenbezeichnungImpl
       [aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:625)
       [aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:572)
       [aopc] at org.jboss.aop.AspectManager.transform(AspectManager.java:490)
       [aopc] at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:258)
       [aopc] at org.jboss.aop.standalone.Compiler.compile(Compiler.java:191)
       [aopc] at org.jboss.aop.standalone.Compiler.main(Compiler.java:68)
       [aopc] Caused by: javassist.CannotCompileException: by javassist.CannotCompileException: [source error] ; is missing
       [aopc] at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.buildOptimizedWriteWrapper(FieldAccessTransformer.java:442)
       [aopc] at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.buildOptimizedWrappers(FieldAccessTransformer.java:346)
       [aopc] at org.jboss.aop.instrument.FieldAccessTransformer$OptimizedTransformer.buildFieldWrappers(FieldAccessTransformer.java:232)
       [aopc] at org.jboss.aop.instrument.FieldAccessTransformer.buildFieldWrappers(FieldAccessTransformer.java:65)
       [aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:591)
       [aopc] ... 5 more
      


      can be fixed by simply adding a semicolon to line 591, method castInvocationValueToTypeString of class FieldAccessTransformer:

      cast = "((Byte)value).byteValue();";
      


      release 1.1.2