Gary Bentley

Show:

What's happening?

  • Comment: sorting with null data

    Hi, JoSQL just uses the standard Java mechanisms for comparing objects (i.e. the Comparable interface) so it may be better to wrap the values that will contain the nulls in a custom function that will return a value (instead of null) that will force it to sort at the "top". It doesn't seem that the behavior for handling nulls is defined in the Comparable interface so a custom function is...

    2009-10-29 23:38:38 UTC in JoSQL (SQL for Java Objects)

  • JDomSerializer does not handle namespaces for attributes

    The JDomSerializer doesn't take namespaces into account (regardless of whether you have the setNamespacesAware flag set in the properties). This leads to a: "org.jdom.IllegalNameException: The name "x:attr" is not legal for JDOM/XML attributes: Attribute names cannot contain colons." being thrown by JDOM. For example:

    2009-07-29 01:45:14 UTC in HtmlCleaner