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.
running in other locale, using pseudo localized netbeans, code generation gives error and does not happen - I have tracked it to a group of pseudo localized jars in platform7 but don't know which one(s) - I think the attached exception can give a clue. It might be something in pseudo localized Bundle files that should not be translated or it might be something that can be translated in which some comparison is done based on original english value. removing the ones in platform7/modules and core mentioned in the exception did not help. using english only for names of projects, files, diagrams, etc did not help. this does not happen in zh locale, in which there is no pseudo localized. 0. on solaris, in ja locale. 1. create anagrams sample project 2. create uml project from java project 3. in uml project, create a class diagram and add a class and give it a name 4. choose generate code from uml project menu 5. generate code output window shows errors Code Generation selected options: Source Folder Location - Backup Sources - true Generate Markers - true Processing element 1 of 5: Class Unnamed ... Generating source from template "Java/CompilationUnit.java" ...ERROR: Processing element 2 of 5: Class com::toy::anagrams::ui::Anagrams ... Generating source from template "Java/CompilationUnit.java" ...ERROR: Processing element 3 of 5: Class com::toy::anagrams::ui::About ... Generating source from template "Java/CompilationUnit.java" ...ERROR: Processing element 4 of 5: Class com::toy::anagrams::lib::WordLibraryTest ... Generating source from template "Java/CompilationUnit.java" ...ERROR: Processing element 5 of 5: Class com::toy::anagrams::lib::WordLibrary ... Generating source from template "Java/CompilationUnit.java" ...ERROR: ================================ Task Failed (total time: 1 seconds)
Created attachment 46242 [details] exception
as the exception came from non-UML related call DataObject.createFromTemplate, it would be really appreciated if you please confirm that New->Java Class in a Java Project can be executed successfully in your setup
yes, new java class file can be created in java project; and after rev eng of this project and then add diagram and then gen code - get same problem as before (unless remove the jars as mentioned below) ken.frank@sun.com
fixed.
verified - using solaris ja locale with java project encoding of euc-jp and solaris ja locale with java project encoding of utf-8. ken.frank@sun.com