DO NOT REPLY [Bug 26179] New: - Code attribute set for native (and abstract?) methods.
| Newsgroups | gmane.comp.jakarta.bcel.devel |
|---|---|
| Message-ID | <[email protected]> |
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26179>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26179
Code attribute set for native (and abstract?) methods.
Summary: Code attribute set for native (and abstract?) methods.
Product: BCEL
Version: 5.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi,
I'm trying to generate a native class on the fly, but I just can't get my class
generated with BCEL. When I try to run my code I get the following error:
ClassFormatError: Code attribute in native or abstract methods.
I used BCELifier to regenerate a working class, and I get the same problem (so
it's clearly a bug in BCEL).
For the ones unfamiliar with JNI, here is what I want to generate:
public class Test {
public native static void run(Object a, String b, String c, String d, int e);
static {
System.loadLibrary("Test");
}
}
Could you please keep me informed by email about the status of this bug. Thanks.
Alok Menghrajani
[email protected]