ASF Bugzilla – Attachment 19835 Details for
Bug 41974
verifier raises ....AssertionViolatedException when done against Java5 files with generics/annotations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
add visitAnnotation and visitLocalVariableTypeTable to StringRepresentation
bcel-patch-verifier.txt (text/plain), 1.73 KB, created by
Erik Bengtson
on 2007-03-28 11:49:35 UTC
(
hide
)
Description:
add visitAnnotation and visitLocalVariableTypeTable to StringRepresentation
Filename:
MIME Type:
Creator:
Erik Bengtson
Created:
2007-03-28 11:49:35 UTC
Size:
1.73 KB
patch
obsolete
>Index: D:/eclipse/workspaces/jpoxworkspace2/bcelhead/src/main/java/org/apache/bcel/verifier/statics/StringRepresentation.java >=================================================================== >--- D:/eclipse/workspaces/jpoxworkspace2/bcelhead/src/main/java/org/apache/bcel/verifier/statics/StringRepresentation.java (revision 523098) >+++ D:/eclipse/workspaces/jpoxworkspace2/bcelhead/src/main/java/org/apache/bcel/verifier/statics/StringRepresentation.java (working copy) >@@ -17,6 +17,7 @@ > package org.apache.bcel.verifier.statics; > > >+import org.apache.bcel.classfile.Annotations; > import org.apache.bcel.classfile.Code; > import org.apache.bcel.classfile.CodeException; > import org.apache.bcel.classfile.ConstantClass; >@@ -42,6 +43,7 @@ > import org.apache.bcel.classfile.LineNumberTable; > import org.apache.bcel.classfile.LocalVariable; > import org.apache.bcel.classfile.LocalVariableTable; >+import org.apache.bcel.classfile.LocalVariableTypeTable; > import org.apache.bcel.classfile.Method; > import org.apache.bcel.classfile.Node; > import org.apache.bcel.classfile.Signature; >@@ -127,6 +129,20 @@ > tostring = "<CODE>"; // We don't need real code outputs. > } > >+ public void visitAnnotation(Annotations obj) >+ { >+ //this is invoked whenever an annotation is found >+ //when verifier is passed over a class >+ tostring = toString(obj); >+ } >+ >+ public void visitLocalVariableTypeTable(LocalVariableTypeTable obj) >+ { >+ //this is invoked whenever a local variable type is found >+ //when verifier is passed over a class >+ tostring = toString(obj); >+ } >+ > public void visitCodeException(CodeException obj) { > tostring = toString(obj); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41974
: 19835