DO NOT REPLY [Bug 39695] - java.lang.ClassFormatError: LVTT entry for 'local' in class file org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=39695. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39695 --- Additional Comments From [EMAIL PROTECTED] 2007-03-28 11:41 --- Created an attachment (id=19834) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19834action=view) copying the LVTT entries from method to MethodGen This patch fixes this issue to me. The fix is with copying the LVTT entries from method to MethodGen. In addition, a cosmetic change in the MethodGen.toString method to output the signature attributes, same as Method.toString does. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 41974] New: - verifier raises ....AssertionViolatedException when done against Java5 files with generics/annotations
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=41974. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=41974 Summary: verifier raises AssertionViolatedException when done against Java5 files with generics/annotations Product: BCEL Version: 5.2 Platform: Other OS/Version: other Status: NEW Severity: blocker Priority: P2 Component: Main AssignedTo: bcel-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Running the verifier against the class: package org.jpox.samples.jpa.company; import java.util.Collection; import java.util.HashSet; import javax.persistence.Entity; import javax.persistence.Id; @Entity public class GenericsPerson { public String id; CollectionPerson persons = new HashSetPerson(); @Id public String getId() { return id; } public void setId(String id) { this.id = id; } public void setPersons(CollectionPerson perss) { this.persons = perss; } public CollectionPerson getPersons() { return persons; } } Gives this error output: JustIce by Enver Haase, (C) 2001-2002. http://bcel.sourceforge.net http://jakarta.apache.org/bcel Now verifying: org.jpox.samples.jpa.company.GenericsPerson Pass 1: VERIFIED_OK Passed verification. Exception in thread main org.apache.bcel.verifier.exc.AssertionViolatedException: INTERNAL ERROR: Please adapt 'class org.apache.bcel.verifier.statics.StringRepresentation' to deal with objects of class 'class org.apache.bcel.classfile.RuntimeVisibleAnnotations'. at org.apache.bcel.verifier.statics.StringRepresentation.toString(StringRepresentation.java:98) at org.apache.bcel.verifier.statics.Pass2Verifier.tostring(Pass2Verifier.java:1442) at org.apache.bcel.verifier.statics.Pass2Verifier.access$0(Pass2Verifier.java:1441) at org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.visitJavaClass(Pass2Verifier.java:387) at org.apache.bcel.classfile.JavaClass.accept(JavaClass.java:213) at org.apache.bcel.classfile.DescendingVisitor.visitJavaClass(DescendingVisitor.java:94) at org.apache.bcel.classfile.JavaClass.accept(JavaClass.java:213) at org.apache.bcel.classfile.DescendingVisitor.visit(DescendingVisitor.java:88) at org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.init(Pass2Verifier.java:357) at org.apache.bcel.verifier.statics.Pass2Verifier$CPESSC_Visitor.init(Pass2Verifier.java:337) at org.apache.bcel.verifier.statics.Pass2Verifier.constant_pool_entries_satisfy_static_constraints(Pass2Verifier.java:298) at org.apache.bcel.verifier.statics.Pass2Verifier.do_verify(Pass2Verifier.java:159) at org.apache.bcel.verifier.PassVerifier.verify(PassVerifier.java:71) at org.apache.bcel.verifier.Verifier.doPass2(Verifier.java:75) at org.apache.bcel.verifier.Verifier.main(Verifier.java:217) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 41974] - verifier raises ....AssertionViolatedException when done against Java5 files with generics/annotations
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=41974. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=41974 --- Additional Comments From [EMAIL PROTECTED] 2007-03-28 11:49 --- Created an attachment (id=19835) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=19835action=view) add visitAnnotation and visitLocalVariableTypeTable to StringRepresentation -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 39695] - java.lang.ClassFormatError: LVTT entry for 'local' in class file org/shiftone/jrat/test/dummy/CrashTestDummy does not match any LVT entry
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=39695. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=39695 --- Additional Comments From [EMAIL PROTECTED] 2007-03-28 11:59 --- I forgot to say that the patch attached (2007-03-28 11:41), fix the case where a setter having a generic argument is bytecode modified using BCEL. I dont know if there are other cases. The patch works for me, for several classes and several scenarios. public void setEmployees(CollectionEmployee employees) { this.employees = employees; } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]