[ 
https://issues.apache.org/jira/browse/JENA-1613?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claude Warren updated JENA-1613:
--------------------------------
    Description: 
Classes that extend AdhocDatatype (or Basedatatype) and want to allow multiple 
instances of the datatype class to be considered equal must do the following:
 # Override BaseDatatype.isEqual(LiteralLabel litLabel1, LiteralLabel 
litLabel2) to call isEqualByTerm(LiteralLabel litLabel1, LiteralLabel 
litLabel2).
 # Override Object.equals(Object obj)
 # Override Object.hashCode(), potentially calling BaseDatatype.getHashCode( 
LiteralLabel lit )


There should be a warning in the log if TypeMapper.register(RDFDatatype type ) 
is called and there is an existing datatype registered for the 
type.getJavaClass() 


 

  was:
Classes that extend AdhocDatatype (or Basedatatype) and want to allow multiple 
instances of the datatype class to be considered equal must do the following:
 # Override BaseDatatype.isEqual(LiteralLabel litLabel1, LiteralLabel 
litLabel2) to call isEqualByTerm(LiteralLabel litLabel1, LiteralLabel 
litLabel2).
 # Override Object.equals(Object obj)
 # Override Object.hashCode(), potentially calling BaseDatatype.getHashCode( 
LiteralLabel lit )


There should be a warning in the log if TypeMapper.register(RDFDatatype type ) 
is called and there is an existing datatype registered for the 
type.getJavaClass() ; and


 


> When registering an incompatible Datatype a warning should be logged
> --------------------------------------------------------------------
>
>                 Key: JENA-1613
>                 URL: https://issues.apache.org/jira/browse/JENA-1613
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: Jena 3.8.0
>            Reporter: Claude Warren
>            Assignee: Claude Warren
>            Priority: Minor
>
> Classes that extend AdhocDatatype (or Basedatatype) and want to allow 
> multiple instances of the datatype class to be considered equal must do the 
> following:
>  # Override BaseDatatype.isEqual(LiteralLabel litLabel1, LiteralLabel 
> litLabel2) to call isEqualByTerm(LiteralLabel litLabel1, LiteralLabel 
> litLabel2).
>  # Override Object.equals(Object obj)
>  # Override Object.hashCode(), potentially calling BaseDatatype.getHashCode( 
> LiteralLabel lit )
> There should be a warning in the log if TypeMapper.register(RDFDatatype type 
> ) is called and there is an existing datatype registered for the 
> type.getJavaClass() 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to