This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 5632 - defining a native method produces incorrect source code
Summary: defining a native method produces incorrect source code
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: support
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-02-03 20:04 UTC by Jan Palka
Modified: 2008-12-23 11:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Palka 2000-02-03 20:04:24 UTC
If I choose "native" when defining a method, the source code produced is as shown above in
"System Information."  Note that the produced code includes a block declaration "{ }" which is invalid.
When I try to compile this declaration, I get an error stating that "native" (and abstract) methods
declarations do not take a body.  The correct source code produced should be:

 private native void initAE(String strInit);

Notice the semi-colon ";" instead of the block "{ }"
private native void initAE(String strInit) {
}
Comment 1 Marek Grummich 2000-07-25 09:43:59 UTC
Priority is changed to P4 (normal).