Issue Details (XML | Word | Printable)

Key: XALANJ-2224
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Unassigned
Reporter: Dave Brosius
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XalanJ2

[PATCH] Switch to use 'new' collection apis

Created: 04/Nov/05 03:45 PM   Updated: 09/Jan/08 04:08 AM
Return to search
Component/s: None
Affects Version/s: 2.7
Fix Version/s: 2.7.1
Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works use_new_collection_apis1.diff 2005-11-04 03:46 PM Dave Brosius 13 kB

Xalan info: PatchAvailable
Resolution Date: 31/Oct/06 09:59 PM


 Description  « Hide
Current code relies on custom/ad-hoc apis of Vector and hashtable. Not only are these methods antiquated, but it makes switching collection implementations difficult. Switch to the 'new' collection apis, so that swapping implementations is simpler, if desired, in the future.

This patch covers the Extensions classes

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #469672 Tue Oct 31 21:56:19 UTC 2006 minchau Committing Dave Brosius' patch in XALANJ-2224 that uses
get/add/remove rather than elementAt/addElement/removeElement
moving us from 1.1.x APIs on a java.util.Vector to
similar on a java.util.AbstractList.

The only point of this patch is that in the future we might
experiment with different kinds of Lists and not be stuck
with a Vector.
Files Changed
MODIFY /xalan/java/trunk/src/org/apache/xalan/extensions/ExtensionHandlerJavaClass.java
MODIFY /xalan/java/trunk/src/org/apache/xalan/extensions/ExtensionsTable.java
MODIFY /xalan/java/trunk/src/org/apache/xalan/extensions/ExtensionHandlerJavaPackage.java
MODIFY /xalan/java/trunk/src/org/apache/xalan/extensions/ExtensionHandlerExsltFunction.java
MODIFY /xalan/java/trunk/src/org/apache/xalan/extensions/ExtensionHandlerGeneral.java
MODIFY /xalan/java/trunk/src/org/apache/xalan/extensions/ExtensionNamespacesManager.java