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.
NB5.0 allows to generate event handlers into one private inner class. This is nice as it reduces number of generated classes but still there is another special sythetic inner class created to make the cunstructor of inner class accessible from outer class. To generate smaller and more efficient code the listener should contain package private constructor. It means rather than creating: private class FormListener implements java.awt.event.ActionListener { public void actionPerformed(java.awt.event.ActionEvent evt) { if (evt.getSource() == ... we should create: private class FormListener implements java.awt.event.ActionListener { FormListener () {} public void actionPerformed(java.awt.event.ActionEvent evt) { if (evt.getSource() == ... Once this is fixed we can regenerate many of forms in the existing NetBeans codebase to save certain space in module JARs and also in perm generation area once these classes are loaded.
Fixed. /cvs/form/src/org/netbeans/modules/form/JavaCodeGenerator.java,v new revision: 1.171; previous revision: 1.170