Bug 26179 - Code attribute set for native (and abstract?) methods.
Summary: Code attribute set for native (and abstract?) methods.
Status: RESOLVED FIXED
Alias: None
Product: BCEL - Now in Jira
Classification: Unclassified
Component: Main (show other bugs)
Version: 5.1
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: issues@commons.apache.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-15 23:45 UTC by alok
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alok 2004-01-15 23:45:35 UTC
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
alok.menghrajani@epfl.ch