[jboss-user] [Javassist user questions] - Re: Anomalous VerifyError (related to inner classes?)
I think that Javassist is instrumenting field access incorrectly inside static methods (when the static method accesses an instance variable of an object passed as a parameter). That's why it affects these $access methods so much ... that's pretty much what those do. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051523#4051523 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051523 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: Anomalous VerifyError (related to inner classes?)
The class that was affected has changed a bit since my first encounter with the problem. No, even though I've restored the inner class that spurred the problem in the first place, I'm no longer seeing the VerifyError. I guess I'll post again if and when it recurs. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015831#4015831 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015831 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: Anomalous VerifyError (related to inner classes?)
Yes, I think access$0 is generated by the normal compiler. I'm going to try and reproduce this, and I'll upload the normal and enhanced .class files. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015811#4015811 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015811 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: Anomalous VerifyError (related to inner classes?)
Hi, The bytecode of access$0 in GridDataSopurce seems broken. If access$0 is generated by Javassist, can you find the source code given to Javassist for generating this method? I don't think access$0 is not a method implicitly generated by Javassist. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015672#4015672 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: Anomalous VerifyError (related to inner classes?)
And now I can see that the forum has truncated my (very long) message. Here's the most relevant part at the end: | public void initializer(); | Code: |Stack=1, Locals=1, Args_size=1 |0: aload_0 |1: pop |2: nop |3: nop |4: return | LineNumberTable: |line 23: 0 | LocalVariableTable: |Start Length Slot Name Signature |0 5 0this Lorg/apache/tapestry/corelib/components/Grid; | | public org.apache.tapestry.corelib.components.Grid(org.apache.tapestry.internal.InternalComponentResources, org.apache.tapestry.services.GridDataModelSource, org.apache.tapestry.services.BindingSource); | Code: |Stack=2, Locals=4, Args_size=4 |0: aload_0 |1: invokespecial #466; //Method java/lang/Object."":()V |4: aload_0 |5: aload_1 |6: putfield#468; //Field org/apache/tapestry/corelib/components/Grid._$resources:Lorg/apache/tapestry/internal/InternalComponentResources; |9: aload_0 |10: aload_2 |11: putfield#470; //Field org/apache/tapestry/corelib/components/Grid._modelSource:Lorg/apache/tapestry/services/GridDataModelSource; |14: aload_0 |15: aload_3 |16: putfield#472; //Field org/apache/tapestry/corelib/components/Grid._$bindingSource:Lorg/apache/tapestry/services/BindingSource; |19: aload_0 |20: invokevirtual #474; //Method org/apache/tapestry/corelib/components/Grid.initializer:()V |23: return | | } | and here's the synthetic accessor method: | static org.apache.tapestry.grid.GridDataSource access$0(org.apache.tapestry.corelib.components.Grid); | Code: |Stack=1, Locals=3, Args_size=1 |0: aload_0 |1: astore_1 |2: aconst_null |3: astore_2 |4: invokespecial #80; //Method org/apache/tapestry/corelib/components/Grid._$read_parameter_source:()Lorg/apache/tapestry/grid/GridDataSource; |7: astore_2 |8: aload_2 |9: areturn | LineNumberTable: |line 26: 0 | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013273#4013273 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013273 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Javassist user questions] - Re: Anomalous VerifyError (related to inner classes?)
Ah, never mind that note at the bottom, I found the compiler-generated code for access$0. | static org.apache.tapestry.grid.GridDataSource access$0(org.apache.tapestry.corelib.components.Grid); | Code: |Stack=1, Locals=3, Args_size=1 |0: aload_0 |1: astore_1 |2: aconst_null |3: astore_2 |4: invokespecial #80; //Method org/apache/tapestry/corelib/components/Grid._$read_parameter_source:()Lorg/apache/tapestry/grid/GridDataSource; |7: astore_2 |8: aload_2 |9: areturn | LineNumberTable: |line 26: 0 | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013259#4013259 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013259 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user