I wrote:
> Yes, this sure makes sense to me. Wonder why I didn't do that in the >
first place...
Ah; now I think I recall. If getVersion is static, then the compiler can
convert a check like:
if(Version.getVersion().equals("Xerces 2.0.2")) {
// take account of some bug
}
into a compile-time check, not a run-time check as would be desired. The
only way to get around this is by making getVersion a dynamic method.
Does that make sense?
Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 905-413-3519, T/L 969-3519
E-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]