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

Joern Kottmann commented on OPENNLP-722:
----------------------------------------

When you ensure the feature ids are assigned identical while running on Java 7 
and Java 8 the outcome is identical too. I believe there is some code which 
depends on the ordering of the features ids in the context. Maybe not all 
computations done in the code are independent of the ordering.

Anyway, I spent quite some time to find these two places mentioned above, and 
stopped at that point.

>Looks like this issue comes from changes in Java 8's floating point arithmetic.

Was there a change? I googled that and coundn't find a reference.

> PerceptronPrepAttachTest fails only on Java 8
> ---------------------------------------------
>
>                 Key: OPENNLP-722
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-722
>             Project: OpenNLP
>          Issue Type: Bug
>          Components: Build, Packaging and Test
>    Affects Versions: 1.6.0
>            Reporter: Joern Kottmann
>            Assignee: Joern Kottmann
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> The test 
> PerceptronPrepAttachTest.testPerceptronOnPrepAttachDataWithStepSizeDecrease 
> fails if executed on Java 8.
> It would be really nice to track down the cause of that.



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

Reply via email to