Mercurial > hg > graal-jvmci-8
diff jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java @ 23793:e1e98e0ca9b8
ResolvedJavaMethod.getParameterAnnotations cannot return null
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 22 Nov 2016 11:34:29 +0100 |
parents | 224f43824e2b |
children | 6d2c72b822b0 |
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java Wed Nov 09 14:41:57 2016 -0800 +++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl.java Tue Nov 22 11:34:29 2016 +0100 @@ -483,7 +483,7 @@ @Override public Annotation[][] getParameterAnnotations() { Executable javaMethod = toJava(); - return javaMethod == null ? null : javaMethod.getParameterAnnotations(); + return javaMethod == null ? new Annotation[signature.getParameterCount(false)][0] : javaMethod.getParameterAnnotations(); } @Override