{"action":"created","issue":{"url":"https://api.github.com/repos/constretto/constretto-core/issues/52","labels_url":"https://api.github.com/repos/constretto/constretto-core/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/constretto/constretto-core/issues/52/comments","events_url":"https://api.github.com/repos/constretto/constretto-core/issues/52/events","html_url":"https://github.com/constretto/constretto-core/issues/52","id":59227611,"number":52,"title":"Java 8 + Spring 4.1.4 + @Configure + Constretto","user":{"login":"selbekk","id":1307267,"avatar_url":"https://avatars.githubusercontent.com/u/1307267?v=3","gravatar_id":"","url":"https://api.github.com/users/selbekk","html_url":"https://github.com/selbekk","followers_url":"https://api.github.com/users/selbekk/followers","following_url":"https://api.github.com/users/selbekk/following{/other_user}","gists_url":"https://api.github.com/users/selbekk/gists{/gist_id}","starred_url":"https://api.github.com/users/selbekk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selbekk/subscriptions","organizations_url":"https://api.github.com/users/selbekk/orgs","repos_url":"https://api.github.com/users/selbekk/repos","events_url":"https://api.github.com/users/selbekk/events{/privacy}","received_events_url":"https://api.github.com/users/selbekk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-27T12:01:46Z","updated_at":"2015-05-27T14:24:15Z","closed_at":null,"body":"I experienced an issue while writing some java 8 code in a class having the following setter:\r\n\r\n    @Configure\r\n    public void setDatabaseDriverClass(@Configuration(value = \"internal.database.jdbc.driverClassName\") String internalDatabaseClassName) {\r\n        this.internalDatabaseClassName = internalDatabaseClassName;\r\n    }\r\n\r\nWorked beautifully when there's no java 8 code in that particular class, but as soon as you even _mention_ ``.stream()``, you get this error during initialization of Spring:\r\n\r\n    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reportDao' defined in file [<...>/ReportDao.class]: Initialization of bean failed; nested exception is java.lang.ArrayIndexOutOfBoundsException: 33571681\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)\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:299)\r\n\tat org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051)\r\n\tat org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)\r\n\tat org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)\r\n\t... 46 more\r\n    Caused by: java.lang.ArrayIndexOutOfBoundsException: 33571681\r\n\tat com.thoughtworks.paranamer.BytecodeReadingParanamer$ClassReader.readInt(BytecodeReadingParanamer.java:726)\r\n\tat com.thoughtworks.paranamer.BytecodeReadingParanamer$ClassReader.accept(BytecodeReadingParanamer.java:563)\r\n\tat com.thoughtworks.paranamer.BytecodeReadingParanamer$ClassReader.access$200(BytecodeReadingParanamer.java:337)\r\n\tat com.thoughtworks.paranamer.BytecodeReadingParanamer.lookupParameterNames(BytecodeReadingParanamer.java:105)\r\n\tat com.thoughtworks.paranamer.BytecodeReadingParanamer.lookupParameterNames(BytecodeReadingParanamer.java:71)\r\n\tat org.constretto.internal.DefaultConstrettoConfiguration.injectMethods(DefaultConstrettoConfiguration.java:297)\r\n\tat org.constretto.internal.DefaultConstrettoConfiguration.injectConfiguration(DefaultConstrettoConfiguration.java:278)\r\n\tat org.constretto.internal.DefaultConstrettoConfiguration.on(DefaultConstrettoConfiguration.java:153)\r\n\tat org.constretto.spring.ConfigurationAnnotationConfigurer.injectConfiguration(ConfigurationAnnotationConfigurer.java:81)\r\n\tat org.constretto.spring.ConfigurationAnnotationConfigurer.postProcessAfterInstantiation(ConfigurationAnnotationConfigurer.java:57)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1164)\r\n\tat org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)\r\n\t... 56 more\r\n\r\nThis ``ArrayIndexOutOfBoundsException`` is typically something we've seen while writing Java 8 code in classes with dependencies (direct or transient) that do not support Java 8 bytecode yet.\r\n\r\nWe resolved the issue by autowiring in a ``ConstrettoConfiguration`` in the constructor and setting the property there instead - but this is obviously an error that you might want to look into. \r\n\r\nI even tried excluding your (somewhat dated) dependency on [paranamer](https://github.com/paul-hammant/paranamer) and depend on the newest version directly - without any success.\r\n\r\nWe're using Spring 4.1.4 and Constretto 2.2.1."},"comment":{"url":"https://api.github.com/repos/constretto/constretto-core/issues/comments/105930089","html_url":"https://github.com/constretto/constretto-core/issues/52#issuecomment-105930089","issue_url":"https://api.github.com/repos/constretto/constretto-core/issues/52","id":105930089,"user":{"login":"LeonardMeyer","id":1922364,"avatar_url":"https://avatars.githubusercontent.com/u/1922364?v=3","gravatar_id":"","url":"https://api.github.com/users/LeonardMeyer","html_url":"https://github.com/LeonardMeyer","followers_url":"https://api.github.com/users/LeonardMeyer/followers","following_url":"https://api.github.com/users/LeonardMeyer/following{/other_user}","gists_url":"https://api.github.com/users/LeonardMeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/LeonardMeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeonardMeyer/subscriptions","organizations_url":"https://api.github.com/users/LeonardMeyer/orgs","repos_url":"https://api.github.com/users/LeonardMeyer/repos","events_url":"https://api.github.com/users/LeonardMeyer/events{/privacy}","received_events_url":"https://api.github.com/users/LeonardMeyer/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T14:24:15Z","updated_at":"2015-05-27T14:24:15Z","body":"@zapodot Any ETA/roadmap available for the 3rd version ?"}}