Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
test/functional: Disable parameter annotation tests
Browse files Browse the repository at this point in the history
Parameter annotation support is broken. If you run the test case under OpenJDK,
for example, you see this:

$ java -cp test/functional/ test/java/lang/reflect/MethodTest
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
	at test.java.lang.reflect.MethodTest.testGetAnnotation(MethodTest.java:23)
	at test.java.lang.reflect.MethodTest.main(MethodTest.java:145)

Cc: Nikhil Sarda <nikhilsarda.iitkgp@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
  • Loading branch information
penberg committed May 29, 2011
1 parent a0cc4ba commit 49284cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/functional/test/java/lang/reflect/MethodTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ public static void testGetAnnotation() throws Exception {
tag = (Tag)allAnnotations[0];
testTag(tag);

/* FIXME:
Annotation[][] paramAnnotations = m.getParameterAnnotations();
assertNotNull(paramAnnotations);
tag = (Tag)paramAnnotations[0][0];
testTag(tag);
*/
}

public static void testTag(Tag tag) throws Exception {
Expand Down

0 comments on commit 49284cf

Please sign in to comment.