[
https://issues.apache.org/jira/browse/BCEL-214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352798#comment-14352798
]
Emmanuel Bourg commented on BCEL-214:
-------------------------------------
Here is a Jasmin file that generates the TestReturn01 class from BCEL-184:
{code}
.class public org/apache/bcel/verifier/tests/TestReturn01
.super java/lang/Object
.method public <init>()V
aload_0
invokenonvirtual java/lang/Object/<init>()V
return
.end method
.method public static foo()V
.limit stack 2
new java/lang/Object
dup
invokespecial java/lang/Object/<init>()V
nop
areturn
.end method
{code}
> Integrate Jasmin to generate the test classes
> ---------------------------------------------
>
> Key: BCEL-214
> URL: https://issues.apache.org/jira/browse/BCEL-214
> Project: Commons BCEL
> Issue Type: Test
> Components: Verifier
> Reporter: Emmanuel Bourg
> Priority: Minor
>
> Some of the verifier test cases rely on hand crafted .class files. These
> class file are sourceless because they contain intentional errors and can't
> be generated from a Java source file. However it should be possible to
> generate them from [Jasmin|https://github.com/Sable/jasmin] files.
> Jasmin is available from the [conjars
> repository|http://conjars.org/repo/soot/soot/], embedded in the soot:soot
> artifact. It could be integrated in the Maven build using the
> maven-antrun-plugin attached to the generate-test-resources phase.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)