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.
1. Create a MyRun class using New->Classes->Class to bring up the New From Template New Object Name dialog and enter MyRun, then hit Next 2. Add java.lang.Runnable to the Implemented Interfaces section and hit next 3. Add all Runnable methods to the Selected Methods and hit next x 2 to go to the "Add or customize methods" page. 4. Select the run() method in the Methods list and I see that this has the abstract check box on in the Other Modifiers section. This prevents the body from being generated. When there a many methods from one or more interfaces this is very tedious to toggle this off for all methods. The abstract modifier should be off by default. Version info: ------------------------------------------------------------------------------- >Log Session: Friday, September 22, 2000 8:35:27 AM PDT >System Info: Product Version = NetBeans IDE, Development Version (Build 35) IDE Versioning = IDE/1 spec=1.1.1 impl=Build 35 Operating System = Windows 2000 Version 5.0 Running on x86 Java Version = 1.3.0 Java VM Version = Java HotSpot(TM) Client VM 1.3.0-C Java Vendor = Sun Microsystems Inc. Java Vendor URL = http://java.sun.com/ Java Home = D:\usr\local\Java\jdk1.3\jre Java Class Version = 47.0 System Locale = en_US JIT = unknown or not used Home Dir = D:\Documents and Settings\Administrator Current Directory = D:\usr\local\Java\Forte4j_devl\netbeans\bin IDE Home = .. IDE User Home = .. System Directory = ..\system CLASSPATH = ..\lib;..\lib\openide.jar;..\lib\developer.jar;..\lib\ext\AbsoluteLayout.jar;. .\lib\ext\javac.jar;..\lib\ext\jaxp.jar;..\lib\ext\jh.jar;..\lib\ext\nb- editor.jar;..\lib\ext\openidex.jar;..\lib\ext\parser.jar;..\lib\ext\regexp.jar;. .\lib\ext\servlet.jar;/usr/local/Java/jdk1.3\lib\dt.jar;/usr/local/Java/jdk1.3 \lib\tools.jar;D:\usr\IBMVJava2 \eab\runtime30;\usr\local\src\scott_home_rips\packages;.\ASEP\Monclass.zip;.\ASE P\3pclass.zip ------------------------------------------------------------------------------- [INFO] Loaded modules: org.netbeans.modules.clazz/1 (1.3/35); org.netbeans.modules.html/1 (1.3/35); org.netbeans.modules.httpserver/1 (1.3/35); org.netbeans.modules.icebrowser/1 (1.3/35); org.netbeans.modules.image/1 (1.3/35); org.netbeans.modules.properties/1 (1.3/35); org.netbeans.modules.text/1 (1.3/35); org.netbeans.modules.usersguide/1 (1.3/35); org.openidex.util/1 (1.3/35); org.netbeans.modules.autoupdate/1 (1.3/35); org.netbeans.modules.debugger.core/1 (1.1.5/35); org.netbeans.modules.applet/1 (1.3/35); org.netbeans.modules.debugger.debug/1 (1.5/35); org.netbeans.modules.debugger.jpda/1 (1.5/35); org.netbeans.modules.editor/1 (1.4/35); org.netbeans.modules.jarpackager/1 (1.3/35); org.netbeans.modules.java/1 (1.3/35); org.netbeans.modules.beans/1 (1.3/35); org.netbeans.modules.form/1 (1.3/35); org.netbeans.modules.i18n/1 (1.3/35); org.netbeans.modules.javadoc/1 (1.3/35); org.netbeans.modules.objectbrowser/1 (1.3/35); org.netbeans.modules.projects/1 (1.3/35); org.netbeans.modules.utilities/1 (1.3/35); org.netbeans.modules.vcs.cmdline/1 (1.4/35); org.netbeans.modules.web.core/1 (1.1.3/35); org.netbeans.modules.web.wizard/1 (1.1.3/35) path="" :jsp: init
Got it. It was a stupid typo in code that masks out unwanted modifiers when it creates the method description object. The bug shows up iff you select a sourceless class (like the Runnable) as implemented interface since the bytecode contains abstract modifier on every method.
[1133] Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.
Reorganization of java component