commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SANDBOX-290) [javaflow] Ant task terminates with org.apache.bcel.verifier.exc.AssertionViolatedException
Date Tue, 05 Jan 2010 23:39:54 GMT

     [ https://issues.apache.org/jira/browse/SANDBOX-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Torsten Curdt resolved SANDBOX-290.
-----------------------------------

    Resolution: Fixed

Thanks for the fix. BCEL is deprecated now anyway though.

> [javaflow] Ant task terminates with org.apache.bcel.verifier.exc.AssertionViolatedException
> -------------------------------------------------------------------------------------------
>
>                 Key: SANDBOX-290
>                 URL: https://issues.apache.org/jira/browse/SANDBOX-290
>             Project: Commons Sandbox
>          Issue Type: Bug
>          Components: Javaflow
>            Reporter: Michael Binz
>            Assignee: Torsten Curdt
>         Attachments: AntRewriteTask.java, BcelClassTransformer.java
>
>
> Unexpected behaviour:  When the Javaflow Ant task is executed on a set of class files
in the file system, then Ant terminates with the error message:
> {{C:\svnx\dev_scream\build.xml:155: org.apache.bcel.verifier.exc.AssertionViolatedException:
INTERNAL ERROR: Missing class: java.lang.ClassNotFoundException: Exception while looking for
class de.michab.scream.FirstClassObject: java.io.IOException: Couldn't find: de/michab/scream/FirstClassObject.class}}
> Expected is, that the task can rewrite the class files without throwing an exception.
> The reason for the above behaviour is that currently no explicit Bcel repository is set.
 This repository (org.apache.bcel.util.Repository) is responsible for resolving class references
while Bcel is working.  Since none was set explicitly, the implicit default repository is
used, which depends on the class path.
> The solution for the above problem is that the BcelClassTransformer always explicitly
installs a SyntheticRepository that points to the task's srcDir.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message