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

Konrad Windszus edited comment on JCR-4191 at 10/19/17 2:26 PM:
----------------------------------------------------------------

No, the annotation has only been added with Java 9 
(http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8076112). And this is also 
reflected by the baselining. Only with Java 9 it sees a difference between the 
old version (leveraging the OOTB {{java.lang.Object#hashCode()}} having the 
annotation in Java 9) and the new version of jackrabbit-webdav (overwriting the 
{{hashCode}} and therefore not having the annotation for intrinsics.

You seem to read the report wrong. Actually baselining is noticing that the 
annotation has been removed(!!!) in the new version due to the overwriting of 
the otherwise native method.


was (Author: kwin):
No, the annotation has only been added with Java 9 
(http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8076112). And this is also 
reflected by the baselining. Only with Java 9 it sees a difference between the 
old version (leveraging the OOTB {{java.lang.Object#hashCode()}} having the 
annotation in Java 9) and the new version of jackrabbit-webdav (overriding the 
{{hashCode}} and therefore not having the annotation for intrinsics.

> baseline checks fails for jackrabbit-webdav under Java 9
> --------------------------------------------------------
>
>                 Key: JCR-4191
>                 URL: https://issues.apache.org/jira/browse/JCR-4191
>             Project: Jackrabbit Content Repository
>          Issue Type: Sub-task
>          Components: jackrabbit-webdav
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>             Fix For: 2.16
>
>
> with:
> {noformat}
> [INFO] * org.apache.jackrabbit.webdav.lock                  changed    1.0.0  
>     1.0.0      1.0.1      Version increase required
> [INFO]      ~ class org.apache.jackrabbit.webdav.lock.Scope
> [INFO]          ~ method hashCode()
> [INFO]              - annotated jdk.internal.HotSpotIntrinsicCandidate
> {noformat}
> Note that {{hashCode()}} was indeed added for JCR-4100, but why does have 
> adding {{hashCode()}} have this effect, and only when the bunde plugin is 
> *run* with Java 9?.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to