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.

Bug 112147 - I18N - won't generate code in other locale if pseudo localized
Summary: I18N - won't generate code in other locale if pseudo localized
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Viktor Lapitski
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-08-07 05:57 UTC by Ken Frank
Modified: 2007-08-14 23:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (2.36 KB, text/plain)
2007-08-07 05:57 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-08-07 05:57:31 UTC
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)
Comment 1 Ken Frank 2007-08-07 05:57:55 UTC
Created attachment 46242 [details]
exception
Comment 2 Viktor Lapitski 2007-08-07 06:39:12 UTC
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
Comment 3 Ken Frank 2007-08-07 21:33:23 UTC
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
Comment 4 Viktor Lapitski 2007-08-10 00:59:48 UTC
fixed.
Comment 5 Ken Frank 2007-08-14 23:39:39 UTC
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