DO NOT REPLY [Bug 41974] New: - verifier raises ....AssertionViolatedException when done against Java5 files with generics/annotations
[email protected] Wed, 28 Mar 2007 11:48:11 -0700 (PDT)
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
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: [email protected]
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;
Collection<Person> persons = new HashSet<Person>();
@Id
public String getId()
{
return id;
}
public void setId(String id)
{
this.id = id;
}
public void setPersons(Collection<Person> perss)
{
this.persons = perss;
}
public Collection<Person> 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.