You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@any23.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/10/30 00:59:27 UTC

[jira] [Commented] (ANY23-265) ThreadSafety issue in ItemPropValue

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

Hudson commented on ANY23-265:
------------------------------

UNSTABLE: Integrated in Any23-trunk #1464 (See [https://builds.apache.org/job/Any23-trunk/1464/])
ANY23-265 : Convert test to use CountDownLatch (p_ansell: rev 2632bbf17de7f1b50b92f26c0bb1e5008c45ee04)
* core/src/test/java/org/apache/any23/extractor/microdata/MicrodataParserTest.java


> ThreadSafety issue in ItemPropValue
> -----------------------------------
>
>                 Key: ANY23-265
>                 URL: https://issues.apache.org/jira/browse/ANY23-265
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: microdata
>    Affects Versions: 1.1, 1.2
>            Reporter: Antoni Mylka
>
> When multiple HTML documents are parsed concurrently in different threads, the MicrodataParser will sometimes throw very weird Exceptions or deliver broken values of date properties. I tracked it to a static SimpleDateFormat field in ItemPropValue. SimpleDateFormat is not thread-safe and should never be used like this.
> See https://github.com/apache/any23/pull/19



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)