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 7739 - New from template class wizard doesn't stub out interface methods
Summary: New from template class wizard doesn't stub out interface methods
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Other Windows ME/2000
: P4 minor (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-22 16:54 UTC by Scott Stark
Modified: 2007-09-26 09:14 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 Scott Stark 2000-09-22 16:54:58 UTC
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
Comment 1 Svata Dedic 2000-09-25 12:09:59 UTC
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.
Comment 2 Jan Becicka 2000-10-30 16:06:59 UTC
[1133] Verified
Comment 3 Quality Engineering 2003-07-01 13:19:29 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2007-09-20 10:47:40 UTC
Reorganization of java component