[Edserplo_users] [Bug 582] QXFList provides incorrect times and dates when using Linux Java (1.4.2)
bugzilla-daemon at livbop2.nerc-liv.ac.uk
bugzilla-daemon at livbop2.nerc-liv.ac.uk
Thu Apr 12 11:11:13 BST 2007
http://livbop2/bugzilla/show_bug.cgi?id=582
sgl at bodc.ac.uk changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |edserplo_users at biwebs1.nerc-
| |liv.ac.uk
Status|NEW |RESOLVED
Resolution| |FIXED
------- Comment #2 from sgl at bodc.ac.uk 2007-04-12 11:11 -------
This has been resolved up to a point. The problem affects JRE 1.3 (and
presumably earlier). JRE = Java Runtime Environment. I have made an adjustment
to the BODCDate class to allow it to run on 1.3.
For those who want to know more, read on.
The problem is quite deep it seems to me. Basically the constructor of the
superclass (GregorianCalendar) calls the set method of the class (BODCDate) -
which I find bizarre and I think is a bug in Java somewhere. How can a class
know about its subclasses without using reflexive methods?! Why would they be
employed in this case?! This applies post 1.3! I've known about this for a long
time but programmed round it. I need to take it up with Sun.
The problem is resolved - for now - by creating a boolean static final variable
which defines which side of the divide you're on at constructor time. I could
have banned the use 1.3 and earlier but this is simpler to implement and, as
indicated, the problem seems to lie with later versions of Java and not the
earlier ones!
Comments from Java buffs welcome.
Steve
--
Configure bugmail: http://livbop2/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Edserplo_users
mailing list