Bug 51275 - Cookie Panel clearGui() sets incorrect default policy in Java 1.6
Cookie Panel clearGui() sets incorrect default policy in Java 1.6
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.4
All All
: P2 normal (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-05-27 09:12 UTC by Sebb
Modified: 2011-05-27 09:58 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebb 2011-05-27 09:12:40 UTC
The Cookie Panel clearGui() method assumes that "compatibility" is the last policy entry. However, as this is derived from HashMap.keySet() the order is not well-defined.

The code should use the default policy name, as is done by the init() method, rather than the assumed index.
Comment 1 Sebb 2011-05-27 09:58:53 UTC
URL: http://svn.apache.org/viewvc?rev=1128210&view=rev
Log:
Bug 51275 - Cookie Panel clearGui() sets incorrect default policy in Java 1.6

Modified:
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CookiePanel.java
   jakarta/jmeter/trunk/xdocs/changes.xml