{"action":"created","issue":{"url":"https://api.github.com/repos/jacoco/jacoco/issues/459","repository_url":"https://api.github.com/repos/jacoco/jacoco","labels_url":"https://api.github.com/repos/jacoco/jacoco/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/jacoco/jacoco/issues/459/comments","events_url":"https://api.github.com/repos/jacoco/jacoco/issues/459/events","html_url":"https://github.com/jacoco/jacoco/issues/459","id":188714963,"number":459,"title":"Hit \"java.lang.annotation.AnnotationFormatError: Malformed method on an annotation type\" when running test with JaCoco","user":{"login":"charlesxucheng","id":4435198,"avatar_url":"https://avatars.githubusercontent.com/u/4435198?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesxucheng","html_url":"https://github.com/charlesxucheng","followers_url":"https://api.github.com/users/charlesxucheng/followers","following_url":"https://api.github.com/users/charlesxucheng/following{/other_user}","gists_url":"https://api.github.com/users/charlesxucheng/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesxucheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesxucheng/subscriptions","organizations_url":"https://api.github.com/users/charlesxucheng/orgs","repos_url":"https://api.github.com/users/charlesxucheng/repos","events_url":"https://api.github.com/users/charlesxucheng/events{/privacy}","received_events_url":"https://api.github.com/users/charlesxucheng/received_events","type":"User","site_admin":false},"labels":[{"id":17369855,"url":"https://api.github.com/repos/jacoco/jacoco/labels/feedback%20pending","name":"feedback pending","color":"cc33cc","default":false}],"state":"open","locked":false,"assignee":{"login":"Godin","id":138671,"avatar_url":"https://avatars.githubusercontent.com/u/138671?v=3","gravatar_id":"","url":"https://api.github.com/users/Godin","html_url":"https://github.com/Godin","followers_url":"https://api.github.com/users/Godin/followers","following_url":"https://api.github.com/users/Godin/following{/other_user}","gists_url":"https://api.github.com/users/Godin/gists{/gist_id}","starred_url":"https://api.github.com/users/Godin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godin/subscriptions","organizations_url":"https://api.github.com/users/Godin/orgs","repos_url":"https://api.github.com/users/Godin/repos","events_url":"https://api.github.com/users/Godin/events{/privacy}","received_events_url":"https://api.github.com/users/Godin/received_events","type":"User","site_admin":false},"assignees":[{"login":"Godin","id":138671,"avatar_url":"https://avatars.githubusercontent.com/u/138671?v=3","gravatar_id":"","url":"https://api.github.com/users/Godin","html_url":"https://github.com/Godin","followers_url":"https://api.github.com/users/Godin/followers","following_url":"https://api.github.com/users/Godin/following{/other_user}","gists_url":"https://api.github.com/users/Godin/gists{/gist_id}","starred_url":"https://api.github.com/users/Godin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godin/subscriptions","organizations_url":"https://api.github.com/users/Godin/orgs","repos_url":"https://api.github.com/users/Godin/repos","events_url":"https://api.github.com/users/Godin/events{/privacy}","received_events_url":"https://api.github.com/users/Godin/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-11-11T09:06:00Z","updated_at":"2016-11-13T02:26:12Z","closed_at":null,"body":"Stack Trace:\r\n```\r\njava.lang.IllegalStateException: Failed to load ApplicationContext\r\n\tat org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)\r\n\tat org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)\r\n\tat org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:183)\r\n\tat org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:123)\r\n\tat org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)\r\n\tat org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)\r\n\tat org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:363)\r\n\tat org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)\r\n\tat org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)\r\n\tat org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)\r\n\tat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'exceptionFactory': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: java.util.Map stars.em.batch.ExceptionFactory.exceptionServices; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ACCOUNT_GROUP_VALIDATION' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\service\\AccountGroupValidationServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [stars.em.repo.AcctGroupRepo]: Error creating bean with name 'acctGroupRepo' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\repo\\AcctGroupRepo.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to introspect annotations on class stars.em.repo.AcctGroupRepo; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'acctGroupRepo' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\repo\\AcctGroupRepo.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to introspect annotations on class stars.em.repo.AcctGroupRepo\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1218)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:778)\r\n\tat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)\r\n\tat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)\r\n\tat org.springframework.boot.SpringApplication.refresh(SpringApplication.java:760)\r\n\tat org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:360)\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:306)\r\n\tat org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98)\r\n\tat org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)\r\n\tat org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)\r\n\t... 25 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: java.util.Map stars.em.batch.ExceptionFactory.exceptionServices; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ACCOUNT_GROUP_VALIDATION' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\service\\AccountGroupValidationServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [stars.em.repo.AcctGroupRepo]: Error creating bean with name 'acctGroupRepo' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\repo\\AcctGroupRepo.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to introspect annotations on class stars.em.repo.AcctGroupRepo; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'acctGroupRepo' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\repo\\AcctGroupRepo.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to introspect annotations on class stars.em.repo.AcctGroupRepo\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573)\r\n\tat org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)\r\n\t... 41 more\r\nCaused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ACCOUNT_GROUP_VALIDATION' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\service\\AccountGroupValidationServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [stars.em.repo.AcctGroupRepo]: Error creating bean with name 'acctGroupRepo' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\repo\\AcctGroupRepo.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to introspect annotations on class stars.em.repo.AcctGroupRepo; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'acctGroupRepo' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\repo\\AcctGroupRepo.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to introspect annotations on class stars.em.repo.AcctGroupRepo\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1147)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1050)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:325)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1199)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1110)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1021)\r\n\tat org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:545)\r\n\t... 43 more\r\nCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'acctGroupRepo' defined in file [C:\\svn_wa\\STARS-CurrentSprint\\src\\Java\\exception-manager\\bin\\stars\\em\\repo\\AcctGroupRepo.class]: Initialization of bean failed; nested exception is java.lang.IllegalStateException: Failed to introspect annotations on class stars.em.repo.AcctGroupRepo\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)\r\n\tat org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1199)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1123)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1021)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:814)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)\r\n\t... 54 more\r\nCaused by: java.lang.IllegalStateException: Failed to introspect annotations on class stars.em.repo.AcctGroupRepo\r\n\tat org.springframework.core.annotation.AnnotatedElementUtils.searchWithGetSemantics(AnnotatedElementUtils.java:605)\r\n\tat org.springframework.core.annotation.AnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElementUtils.java:323)\r\n\tat org.springframework.transaction.annotation.SpringTransactionAnnotationParser.parseTransactionAnnotation(SpringTransactionAnnotationParser.java:42)\r\n\tat org.springframework.transaction.annotation.AnnotationTransactionAttributeSource.determineTransactionAttribute(AnnotationTransactionAttributeSource.java:155)\r\n\tat org.springframework.transaction.annotation.AnnotationTransactionAttributeSource.findTransactionAttribute(AnnotationTransactionAttributeSource.java:138)\r\n\tat org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource.computeTransactionAttribute(AbstractFallbackTransactionAttributeSource.java:157)\r\n\tat org.springframework.transaction.interceptor.AbstractFallbackTransactionAttributeSource.getTransactionAttribute(AbstractFallbackTransactionAttributeSource.java:100)\r\n\tat org.springframework.transaction.interceptor.TransactionAttributeSourcePointcut.matches(TransactionAttributeSourcePointcut.java:41)\r\n\tat org.springframework.aop.support.AopUtils.canApply(AopUtils.java:211)\r\n\tat org.springframework.aop.support.AopUtils.canApply(AopUtils.java:248)\r\n\tat org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:280)\r\n\tat org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:118)\r\n\tat org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:88)\r\n\tat org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:69)\r\n\tat org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:346)\r\n\tat org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:298)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:422)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1587)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)\r\n\t... 64 more\r\nCaused by: java.lang.annotation.AnnotationFormatError: Malformed method on an annotation type\r\n\tat sun.reflect.annotation.AnnotationInvocationHandler.validateAnnotationMethods(AnnotationInvocationHandler.java:384)\r\n\tat sun.reflect.annotation.AnnotationInvocationHandler.access$100(AnnotationInvocationHandler.java:42)\r\n\tat sun.reflect.annotation.AnnotationInvocationHandler$1.run(AnnotationInvocationHandler.java:289)\r\n\tat sun.reflect.annotation.AnnotationInvocationHandler$1.run(AnnotationInvocationHandler.java:286)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat sun.reflect.annotation.AnnotationInvocationHandler.getMemberMethods(AnnotationInvocationHandler.java:285)\r\n\tat sun.reflect.annotation.AnnotationInvocationHandler.equalsImpl(AnnotationInvocationHandler.java:197)\r\n\tat sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:64)\r\n\tat com.sun.proxy.$Proxy81.equals(Unknown Source)\r\n\tat java.util.Arrays$ArrayList.indexOf(Arrays.java:3860)\r\n\tat java.util.Arrays$ArrayList.contains(Arrays.java:3868)\r\n\tat org.springframework.core.annotation.AnnotatedElementUtils.searchWithGetSemantics(AnnotatedElementUtils.java:643)\r\n\tat org.springframework.core.annotation.AnnotatedElementUtils.searchWithGetSemantics(AnnotatedElementUtils.java:600)\r\n\t... 82 more\r\n```\r\n\r\n\r\n### Steps to reproduce\r\nRunning the test case with no JaCoco plugin (or running test in Eclipse without Coverage) - Test passes.\r\nRunning the same test case with JaCoCo plugin (or running in Eclipse with Coverage) - See trace above.\r\n\r\n```\r\npackage stars.em.util;\r\n\r\nimport java.math.BigDecimal;\r\nimport java.util.ArrayList;\r\nimport java.util.List;\r\n\r\nimport org.junit.Before;\r\nimport org.junit.Test;\r\nimport org.junit.runner.RunWith;\r\nimport org.springframework.beans.factory.annotation.Autowired;\r\nimport org.springframework.boot.test.SpringApplicationConfiguration;\r\nimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;\r\nimport org.springframework.test.context.web.WebAppConfiguration;\r\n\r\nimport lombok.AllArgsConstructor;\r\nimport lombok.Getter;\r\nimport lombok.Setter;\r\nimport stars.em.ApplicationTestConfig;\r\n\r\n@RunWith(SpringJUnit4ClassRunner.class)\r\n@SpringApplicationConfiguration(classes = {ApplicationTestConfig.class})\r\n@WebAppConfiguration\r\npublic class DataDumperTest {\r\n\t@Autowired \r\n\tDataDumper dumper;\r\n\t\r\n\tList<TestObject> objs = new ArrayList<>();\r\n\t\r\n\t@Before\r\n    public void setUp() {\r\n    \tobjs.add(new TestObject(\"AA\", new BigDecimal(\"1000\")));\r\n    \tobjs.add(new TestObject(\"BB\", new BigDecimal(\"2000.00001\")));\r\n    }\r\n\t\r\n\t@Test\r\n\tpublic void testGetAccountBenchmarkFromWS() {\r\n\t\tList<String> names = new ArrayList<>();\r\n\t\tnames.add(\"name\");\r\n\t\tnames.add(\"amount\");\r\n\t\tdumper.dumpObject(objs, names , \"tmp.csv\");\r\n\t}\r\n}\r\n\r\n@Getter\r\n@Setter\r\n@AllArgsConstructor\r\nclass TestObject {\r\n\tprivate String name;\r\n\tprivate BigDecimal amount;\r\n}\r\n```\r\n\r\nJaCoCo version:   \r\nEclipse Plugin - EclEmma Java Code Coverage\t2.3.3.201602231923\t\r\nAlso Gradle plugin 'jacoco'\r\n\r\nOperating system:\r\nWindows 7 Professional\r\n\r\nTool integration: Maven/Ant/API/Other\r\nGradle 3.1, Eclipse Neon.1\r\n\r\n### Expected behaviour\r\nNo exception\r\n\r\n### Actual behaviour\r\nException is thrown"},"comment":{"url":"https://api.github.com/repos/jacoco/jacoco/issues/comments/260162368","html_url":"https://github.com/jacoco/jacoco/issues/459#issuecomment-260162368","issue_url":"https://api.github.com/repos/jacoco/jacoco/issues/459","id":260162368,"user":{"login":"Godin","id":138671,"avatar_url":"https://avatars.githubusercontent.com/u/138671?v=3","gravatar_id":"","url":"https://api.github.com/users/Godin","html_url":"https://github.com/Godin","followers_url":"https://api.github.com/users/Godin/followers","following_url":"https://api.github.com/users/Godin/following{/other_user}","gists_url":"https://api.github.com/users/Godin/gists{/gist_id}","starred_url":"https://api.github.com/users/Godin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Godin/subscriptions","organizations_url":"https://api.github.com/users/Godin/orgs","repos_url":"https://api.github.com/users/Godin/repos","events_url":"https://api.github.com/users/Godin/events{/privacy}","received_events_url":"https://api.github.com/users/Godin/received_events","type":"User","site_admin":false},"created_at":"2016-11-13T02:26:12Z","updated_at":"2016-11-13T02:26:12Z","body":"Okay, here is reproducer\r\n```java\r\nimport java.lang.annotation.Retention;\r\nimport java.lang.annotation.RetentionPolicy;\r\nimport java.lang.reflect.Method;\r\n\r\nclass AnnotationBug {\r\n  @Retention(RetentionPolicy.RUNTIME)\r\n  @interface Annotation {\r\n    // provoke creation of <clinit>\r\n    Object clinit = new Object();\r\n\r\n    int method() default 0;\r\n  }\r\n\r\n  @Annotation\r\n  public static void main(String[] args) throws Exception {\r\n    Method method = AnnotationBug.class.getMethod(\"main\", String[].class);\r\n    Annotation annotation = method.getAnnotation(Annotation.class);\r\n    // provoke verification in AnnotationInvocationHandler\r\n    annotation.equals(annotation);\r\n  }\r\n}\r\n```\r\n\r\nthat causes\r\n```\r\njava.lang.annotation.AnnotationFormatError: Malformed method on an annotation type\r\n```\r\n\r\nwith JaCoCo 0.7.7\r\n```\r\n$ java -version\r\njava version \"1.8.0_102\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_102-b14)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)\r\n\r\n$ javac -source 8 -target 8 AnnotationBug.java\r\n\r\n$ java -javaagent:jacocoagent-0.7.7.jar AnnotationBug\r\n```\r\n\r\nThis already has been fixed in 0.7.8 by #441.\r\n@charlesxucheng  you can use snapshot version to confirm this.\r\nAnd as a temporary workaround you can find affected annotation and exclude it from instrumentation.\r\n"}}
{"actor":{"display_login":"Godin"}}