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.
NetBeans needs to allow a separate design-time classpath that is separate from complie-time and runtime (packaged flag) classpaths to limit the scope of references available during code-completion. Currently, since there is no concept of a design-time classpath, the BeanInfo classes are included in the complie-time classpath. Thus when a user is working in the java editor and uses code-completion, BeanInfo classes incorrectly appear. BeanInfo classes are part of the design-time classpath and are not deployed, ie. packaged, and so an app that uses them will fail when deployed.
Seems like it should suffice for the form editor to use ClassPath.RUNTIME if it doesn't already, but we would need 'j2se' libraries to support an extra optional 'designpath' which e.g. j2seproject would need to interpret in RUNTIME but not COMPILE.
See http://www.netbeans.org/issues/show_bug.cgi?id=76979 for more info. This issue is also useful for other kinds of projects.