RFR: 8156211: [JVMCI] ResolvedJava* interfaces should extend AnnotatedElement
Christian Thalinger
christian.thalinger at oracle.com
Fri May 6 21:24:19 UTC 2016
> On May 6, 2016, at 2:18 AM, Roland Schatz <roland.schatz at oracle.com> wrote:
>
> Please review this small jvmci change:
>
> http://cr.openjdk.java.net/~rschatz/JDK-8156211/webrev.00/
> https://bugs.openjdk.java.net/browse/JDK-8156211
src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java
+ public Annotation[] getDeclaredAnnotations() {
+ Executable javaMethod = toJava();
+ return javaMethod == null ? null : javaMethod.getDeclaredAnnotations();
+ }
This seems wrong. The specification says:
* If there are no annotations <em>directly present</em> on this element,
* the return value is an array of length 0.
and the others return an empty array.
>
> This change was contributed by Vojin Jovanovic (cc'ed).
>
> Thanks,
> Roland
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20160506/2a7400b5/attachment.html>
More information about the hotspot-compiler-dev
mailing list