[jdom-interest] Stack & Threads

David D. Lucas ddlucas at lse.com
Tue Mar 5 04:55:39 PST 2002

I noticed in several classes JDOM uses Stack which is JDK 1.1 type that 
extends Vector.  Seeing that no one is recommending use of JDOM between 
threads, is this a potential synchronization hotspot with the constant 
locking and unlocking when using the stack?

Is there a way to migrate over to JDK 1.2 collections and use the 
ArrayList instead?

Also, I noticed some thread access checking code in ContentList and 
wondered if it works or should even be there, again based on the 
comments that we should not be using JDOM between threads concurrently.




| David Lucas                        mailto:ddlucas at lse.com  |
| Lucas Software Engineering, Inc.   (740) 964-6248 Voice    |
| Unix,Java,C++,CORBA,XML,EJB        (614) 668-4020 Mobile   |
| Middleware,Frameworks              (888) 866-4728 Fax/Msg  |
| GPS Location:  40.0150 deg Lat,  -82.6378 deg Long         |
| IMHC: "Jesus Christ is the way, the truth, and the life."  |
| IMHC: "I know where I am; I know where I'm going."    <><  |

Notes: PGP Key Block=http://www.lse.com/~ddlucas/pgpblock.txt
IMHO="in my humble opinion" IMHC="in my humble conviction"
All trademarks above are those of their respective owners.

More information about the jdom-interest mailing list