incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Spicar (Commented) (JIRA)" <>
Subject [jira] [Commented] (CLEREZZA-670) Integer MAX/MIN value overflow in Comparator of the RDF JSON serializer
Date Mon, 23 Jan 2012 15:31:43 GMT


Daniel Spicar commented on CLEREZZA-670:

Hi Rupert,

Thank you again for the patch and sorry for the delay. I checked it out and it seems to be
good. However you did not grant Apache the right for inclusion for the second patch. From
the context I assume it's just an oversight. I am not an expert on this legal stuff but in
order to be cautious I won't be able to resolve this issue until you grant us the right for
inclusion. So please drop a line here.
> Integer MAX/MIN value overflow in Comparator of the RDF JSON serializer
> -----------------------------------------------------------------------
>                 Key: CLEREZZA-670
>                 URL:
>             Project: Clerezza
>          Issue Type: Bug
>          Components: rdf.serialize
>            Reporter: Rupert Westenthaler
>            Assignee: Daniel Spicar
>              Labels: rdf/json
>         Attachments: CLEREZZA-670_rdf.rdfjson.int_value_overflow_and_wrong_datatypes_in_parser,
> The implementation of the SUBJECT_COMPARATOR within the RdfJsonSerializingProvider sometimes
encounters an int MAX/MIN value overflow.
> In such cases the compare method erroneously returns an 
>  * negative value - on a max value overflow or an
>  * positive value - on a min value overflow.
> what causes the Triple array used for the serialization not being correctly sorted. In
such cases subjects do appear multiple times within the generated json output.
> To solve this one needs to replace the substraction of "hashA" from "hashB" with a boolean
check that returns a -1/+1.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message