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 237070 - Void type method parameter not marked as error, despite always throwing ClassFormatError on run
Summary: Void type method parameter not marked as error, despite always throwing Class...
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-12 21:33 UTC by GinjaNinja32
Modified: 2016-07-07 07:18 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 GinjaNinja32 2013-10-12 21:33:34 UTC
Using a method declaration with a 'void' parameter is not marked as an error or warning in the editor, though it will crash the JVM when loaded. Compiling from command-line javac returns no errors, but the resulting class file crashes the JVM with the same error as from within NetBeans.

Example - this code crashes the JVM on load even though none of it is executed:

public class C {
    void m(void v) {}
}

Error:
ClassFormatError: Method [...] has illegal signature "(V)V"
Comment 1 Jan Lahoda 2013-10-13 10:54:39 UTC
FWIW, I have filled a bug against javac:
https://bugs.openjdk.java.net/browse/JDK-8026374
Comment 2 Martin Balin 2016-07-07 07:18:43 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss