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 58171 - Blueprints: Missing keys in bundles
Summary: Blueprints: Missing keys in bundles
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: blueprints (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yutaka Yoshida
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 15:10 UTC by Marek Fukala
Modified: 2013-02-13 10:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
diff (805 bytes, text/plain)
2005-04-26 23:10 UTC, Yutaka Yoshida
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2005-04-21 15:10:06 UTC
I did a simple search over sources of ejbmodule and found some broken links to
budles. 

In particullar there are some occurances of NbBundle.getMessage(AClass.class,
"AKEY") where the Bundle.properties file from the package of AClass doesn't
contain the AKEY. The tool I created to find these occurances checks only this
simple (but widely used) pattern, so it is possible that there are some others
missing keys unrevealed.

Please look into the log and verify that the "bad code" referring to
nonexisting keys is not used so it could be probably removed. If the code is
used, please consider the problem severity (whether the problematic code is run
often and in what situation) and update the priority accordingly.

Note, that there is a similar issue #58139 which is a P1 and QE wants this to be
fixed in 4.1.

-----------------------------------------------------------------------
     [java] NO KEY FOUND - TXT_WebProjectFolderList
     [java] Referred in file
e:\temp\.\j2ee\blueprints\src\org\netbeans\modules\j2ee\blueprints\ui\projects\FoldersListSettings.java:30
     [java] According to class = FoldersListSettings
     [java] Bundle file =
E:\temp\j2ee\blueprints\src\org\netbeans\modules\j2ee\blueprints\ui\projects\Bundle.properties
-----------------------------------------------------------------------

format of the list:

1. [java] NO KEY FOUND - <keyname>
2. [java] Referred in file <file>:<line>
3. [java] According to class = <classname>
4. [java] Bundle file = <bundlefile>

1. missing bundle key
2. the java source file and line where the key is used
3. class from which package the bundle.properties is used
4. link to real bundle file
Comment 1 Yutaka Yoshida 2005-04-26 19:41:45 UTC
The method displayName() is never called, but
still needs to override. So I'll change this
method to return just "".
Comment 2 Yutaka Yoshida 2005-04-26 23:06:47 UTC
fixed as:
Checking in
blueprints/src/org/netbeans/modules/j2ee/blueprints/ui/projects/FoldersListSettings.java;
/cvs/j2ee/blueprints/src/org/netbeans/modules/j2ee/blueprints/ui/projects/FoldersListSettings.java,v
 <--  FoldersListSettings.java
new revision: 1.2; previous revision: 1.1
done

Comment 3 Yutaka Yoshida 2005-04-26 23:10:59 UTC
Created attachment 21884 [details]
diff
Comment 4 Jan Horvath 2005-07-15 16:17:17 UTC
v