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.
Product Version: NetBeans Platform Dev (Build 200905180201) Java: 1.6.0_13; Java HotSpot(TM) Client VM 11.3-b02 System: SunOS version 5.11 running on x86; UTF-8; ja_JP (nb) Compilation error is displayed in English but it should be Japanese and it's working fine on 6.5.1. Try to copy the following into NetBeans editor. There are 2 errors that "cannot find symbol". Editor and task list shows error for the 1st one in Japanese. However, it displayed English for the 2nd one. public class Main { public static void main(String[] args) { NoClass obj1 = new NoClass(); // シンボルを見つけられません。 NoMethod obj2 = new NoMethod(); obj2.hello(); // cannot find symbol, "シンボルを見つけられません。" should be displayed } static class NoMethod { } } I understand these error message come from JDK. Actually it displays Japanese when I compile it by javac. I'll attach 2 screenshots later - trunk and 6.5.1. These are running on the same machine and same JDK. 6.5.1 is OK, both errors are displayed in Japanese on editor, task list and output. On trunk, editor and task list are English - "cannot find symbol" is displayed. On output window, it's the result by javac, it displays in Japanese.
Created attachment 82302 [details] screenshot on 6.5 - error messages are Japanese
Created attachment 82303 [details] screenshot on 6.7 - 2nd error message is English on editor and task list. On output window(javac output) is Japanese.
Most likely, there is no code error. This is rather a missing localization. NetBeans uses its own copy of a javac, currently a javac from JDK7 is used. There were major changes to error reporting in JDK7. To my knowledge, these changes has not yet been propagated to the Japanese bundle. In this particular case, the error is likely "compiler.err.cant.resolve.location.args", but this key is missing in compiler_ja.properties, and so the english version is used (note that "method" and "class" are translated).
Masaki, will you be able to translate those for us? The repository for NB javac clone is hg.netbeans.org/main/nb-javac. The relevant files are src/share/classes/com/sun/tools/javac/resources/compiler*.properties A full list of keys possibly requiring i18n are: -compiler.err.cant.apply.symbol.1 -compiler.err.empty.bytecode.ident -compiler.err.illegal.bytecode.ident.char -compiler.err.illegal.self.ref -compiler.warn.self.ref -compiler.err.warnings.and.werror -compiler.err.unclosed.bytecode.ident -compiler.warn.raw.class.use -compiler.misc.type.captureof -compiler.misc.type.captureof.1 -compiler.misc.type.none -compiler.misc.bad.source.file.header -compiler.err.cant.resolve.args -compiler.err.cant.resolve.args.params -compiler.err.cant.resolve.location.args -compiler.err.cant.resolve.location.args.params -compiler.misc.no.args
Delivered localized files ja and zh_CN to David. David, could you check and integrate them?
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/c16a77ae9cbc changeset 31bf398ab548 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=31bf398ab548
Thank you! Once it's integrated to trunk, I'll check.
It looks working for me on build 200905270201.
Integrated into 'main-golden', will be available in build *200905270201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c16a77ae9cbc User: Dusan Balek <dbalek@netbeans.org> Log: Missing localization added (see issue #165388).
The change seems OK to me.
Transplanted to release67 as http://hg.netbeans.org/release67/rev/c2a697f09110.
verified in 6.7rc1
Thank you very much! I also verified it works on rc1 build.