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.
Some potential templates can have arguments of different types which are not subtypes of each other. A simple example is a template for a case statement - it can either be a java.util.Enum or a primitive type. It would be nice to be able to specify, e.g. ${foo instanceof="java.util.Enum | $PRIMITIVE"} or similar. See also issue 116599.