You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/09 13:29:42 UTC

[jira] [Commented] (JENA-1288) Reduce dependency on the Xerces jar.

    [ https://issues.apache.org/jira/browse/JENA-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859512#comment-15859512 ] 

ASF GitHub Bot commented on JENA-1288:
--------------------------------------

GitHub user afs opened a pull request:

    https://github.com/apache/jena/pull/216

    JENA-1288: Remove use of Xerces when alternatives exist.

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/afs/jena clean-xerces

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/216.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #216
    
----
commit 3c89e23b8cda5ab4b73141607900d82f72edc075
Author: Andy Seaborne <an...@apache.org>
Date:   2017-02-09T13:00:58Z

    JENA-1288: Remove use of Xerces when alternatives exist.

----


> Reduce dependency on the Xerces jar.
> ------------------------------------
>
>                 Key: JENA-1288
>                 URL: https://issues.apache.org/jira/browse/JENA-1288
>             Project: Apache Jena
>          Issue Type: Task
>    Affects Versions: Jena 3.2.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Minor
>
> There are facilities in the standard JDK that can be used instead of directly calling Xerces, specifically {{DatatypeConverter}}. With these changes, only one class relies on Xerces directly, {{XSDDatatype}}.
> We have to be careful though - it is not perfect. I found that {{parseByte}} calls {{parseInt}} and casts the result to a java {{byte}} so it passes "300" and "3000" which are not valid byte lexical forms.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)