commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexey Panchenko <>
Subject Re: [fileupload] DefaultFileItem.getUniqueId and multiple class loaders
Date Wed, 28 Sep 2005 06:02:15 GMT
Mike S wrote:

> Are there any suggestions as to the best way to modify the getUniqueId
> method to return a unique ID across class loaders? We are thinking along the
> lines of injecting a random number to concatenate with the static counter in
> the DefaultFileItem, (or grabbing the start timestamp off the jvm) to create
> unique names.

return new java.rmi.server.UID().toString().replace(':','-');

Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message