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 58174 - Missing keys in bundles
Summary: Missing keys in bundles
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2005-04-21 15:26 UTC by Marek Fukala
Modified: 2005-11-10 11:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
List of nonexisting bundle keys with marked occurances from the code. (3.52 KB, patch)
2005-04-21 15:27 UTC, Marek Fukala
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2005-04-21 15:26:49 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 attached file 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.

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 Marek Fukala 2005-04-21 15:27:47 UTC
Created attachment 21797 [details]
List of nonexisting bundle keys with marked occurances from the code.
Comment 2 Milan Kuchtiak 2005-08-05 09:09:34 UTC
Need to be fixed for 4.2
Comment 4 Lukas Jungmann 2005-11-10 11:30:16 UTC
v.