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.
[1141] I can not generate interface using ClassElement. classElement.setModifiers(Modifier.PUBLIC | Modifier.INTERFACE); produces public interface class
setModifiers was not meant for THAT type of change, really. It should, however throw a SourceException on you instead of creating invalid code. Please use ClassElement.setClassOrInterface(false); to turn the class element ot an interface (set to true if you want it to be a class - this is the default value).
Why do not deprecate setClassOrInterface(boolean)?
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.