[LUAU] Fwd: Interesting Java library error

Brian Chee chee at hawaii.edu
Wed Sep 18 23:27:47 PDT 2013


Sent from my iPad

Begin forwarded message:


*Subject:* *Interesting Java library error*

Hey Brian!

Found this interesting logic bug in Apache.org's XMLGraphicsCommon
libraries while troubleshooting an issue today.  It only affects Hawaii and
Pacific islands (GMT-10 thru GMT-12)

In creating a timestamp with the GMT offset number, the library checks if
offset < 10 and if true, prepends a zero so that you always get a four
digit offset number:
+07:00
+11:00

But when it hits Hawaii timezone, -10 < 10 is true, and it writes the
offset like this:
-010:00

The actual errors come when another class tries to parse the timestamp and
chokes on the five digit offset number.

Here's the full report.  The issue is already fixed, but thought you might
see this one day given the location of your stomping grounds.

https://issues.apache.org/bugzilla/show_bug.cgi?id=51039

High Mobley
Sr. Customer Support Engineer
RedSeal Networks
(408) 641-2326


More information about the LUAU mailing list