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.
Whenever code generation for Java Platform-based Model projects comes into play, it is useful to know what the intended JDK platform will be so that the appropriate business rules can be followed. For instance, JDK 1.5 supports generics and enum keyword, whereas JDK 1.4 and prior do not. If the UML project is already associated with a Java project, it is easy to get the JDK platform type from it. But when you have a UML Java Platform Model project type with no current Java Project association, it will be problematic for the modeler if they are modeling and freely using JDK 1.5+ features, and then they go to associate the model project with a Java project based on JDK 1.4. The Code Generation will fail. So in this case, it is imperative that the modeler be able to specify up front which JDK platform they intend to target. Default should be the same as the default for Java project types and the list of Java Platforms should be pulled from the same list source that Java projects use. There are some current issues that are dependent on this feature.