Hi Noel, > Which UUID draft? > http://www.webdav.org/specs/draft-leach-uuids-guids-01.txt?
I'm going off this; http://www.ietf.org/internet-drafts/draft-mealling-uuid-urn-01.txt they are almost identical, except this one is current and adds the uuid urn namespace, and going to RFC status as I understand. I sent a comment to the author's of the draft exaplaining the overflow I got and Rich Salz wrote back noting his intention send in an editorial revision to the RFC (also noting it's a portability issue.) > Isn't this something that the SOAP/Axis projects also need, and could > benefit from? Yes. Hopefully once the implementation is done, Axis, OJB, Jetspeed, at al can use this. Back in August a question came up on the jetspeed list about uuid code, I looked around a saw the Axis implementation. Back then I proposed to Axis list and [lang] commons-dev list to move the Axis implementation into o.a.c.lang. The axis folks had no problem sharing the code but would hold off on integrating it. On the lang list someone pointed out that the Tyrex uuid may be better. Some history on the uuid thread: http://www.mail-archive.com/[EMAIL PROTECTED]/msg32052.html So in the end I'm trying to write a "best of" implementation (i hope.) I did forget about the Axis code though, and that I can pick up code from there as needed since the license is ASF. > Agreed. What about including the C code from the draft > specification in the > test, and then comparing output from the reference implementation against > our implementation? That was my question. I think it could be valuable, but wasn't sure about people's feelings regarding JNI. We could change the testRange test to get the time from the C code before and after generating the time from java and make sure the time is in between? > And I'm not sure what AXIS C uses for UUID > generation. I'd looked at the APR code briefly, I should look at the Axis C code as well. > -----Original Message----- > From: Noel J. Bergman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 20, 2004 11:10 AM > To: Jakarta Commons Developers List > Subject: RE: [id] UUID sending more code and a question or two > > > Tim Reilly wrote: > > I'd decided to test my time (clock) values against the > > example code in the uuid draft. > > Which UUID draft? > http://www.webdav.org/specs/draft-leach-uuids-guids-01.txt? > > Isn't this something that the SOAP/Axis projects also need, and could > benefit from? ref: > http://ws.apache.org/axis/java/apiDocs/org/apache/axis/components/ > uuid/packa > ge-summary.html > > > I'd get about a 34.07xx year difference in my return values > > versus what the C code in the draft is giving. Eventually, > > I figured out to upcast the time struct's return values to > > unsigned long long before multiplying > > > It would be difficult for me to use the C code in the unit tests > > (but not impossible I suppose.) > > > I felt it was important to test against the C reference code > > in the UUID draft appendix > > Agreed. What about including the C code from the draft > specification in the > test, and then comparing output from the reference implementation against > our implementation? And I'm not sure what AXIS C uses for UUID > generation. > > --- Noel > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
