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 178015 - AID generation button works only once
Summary: AID generation button works only once
Status: VERIFIED FIXED
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 12:36 UTC by vitalys
Modified: 2010-01-22 02:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vitalys 2009-12-02 12:36:42 UTC
There are "Generate" buttons in the Project Properties dialog of Classic Applet Project:
1. "Project Properties" Dialog -> "Applets" tab -> Applet AID
2. "Project Properties" Dialog -> "Build/Packaging" tab -> Classic Package AID

These buttons works fine when they're pressed first time, and AID is re-generated.
Any further pressing on these buttons don't cause any effect on the AID value.
Comment 1 _ tboudreau 2009-12-02 13:04:54 UTC
Actually, it works every time, it's just always producing the same result :-)

Not sure whether to rewrite it, or rename it.  Basically it just uses an algorithm to hash package and class names into something reasonable;  it's intended to be more like "I don't like the one I have, give me one that's definitely spec compliant and will work".

I suppose it *could* randomize it;  the thinking here was that package and class names are likely to be unique, so hashing using them made sense.  (BTW, the RID part is set globally - randomly generated on first use - and can be changed in Tools | Options).
Comment 2 _ tboudreau 2009-12-03 15:59:48 UTC
Fixed in main/ f689efeb3787
Comment 3 Quality Engineering 2009-12-04 16:15:37 UTC
Integrated into 'main-golden', will be available in build *200912041400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f689efeb3787
User: tboudreau@netbeans.org
Log: #178015 - actually generate a randomized AID if the user clicks multiple times,
try hashing first