Issue
When I type in java daikon.DynComp org.junit.runner.JUnitCore
or java daikon.Chicory org.junit.runner.JUnitCore
from the command line, I always get this as a result:
JUnit version 4.12
Exception in thread "main" java.lang.AssertionError: Too many parameters for an annotation method
at sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:66)
at com.sun.proxy.$Proxy0.annotationType(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:122)
at sun.reflect.annotation.AnnotationParser.parseSelectAnnotations(AnnotationParser.java:101)
at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:145)
at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85)
at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:266)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
at java.lang.Class.createAnnotationData(Class.java:3521)
at java.lang.Class.annotationData(Class.java:3510)
at java.lang.Class.getAnnotation(Class.java:3415)
at java.lang.reflect.AnnotatedElement.isAnnotationPresent(AnnotatedElement.java:258)
at java.lang.Class.isAnnotationPresent(Class.java:3425)
at org.junit.runner.notification.RunNotifier.wrapIfNotThreadSafe(RunNotifier.java:50)
at org.junit.runner.notification.RunNotifier.addFirstListener(RunNotifier.java:212)
at org.junit.runner.JUnitCore.run(JUnitCore.java:134)
at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)
at org.junit.runner.JUnitCore.main(JUnitCore.java:36)
Moreover when I try to run other programs in daikon has running junit as part of the code, the same error always occurs. What should I do?
Solution
This was a bug in Daikon that has been fixed.
Answered By - mernst