{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-loaded/issues/82","labels_url":"https://api.github.com/repos/spring-projects/spring-loaded/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-loaded/issues/82/comments","events_url":"https://api.github.com/repos/spring-projects/spring-loaded/issues/82/events","html_url":"https://github.com/spring-projects/spring-loaded/issues/82","id":41569275,"number":82,"title":"Stream with lambda fails","user":{"login":"bep","id":394382,"avatar_url":"https://avatars.githubusercontent.com/u/394382?v=3","gravatar_id":"","url":"https://api.github.com/users/bep","html_url":"https://github.com/bep","followers_url":"https://api.github.com/users/bep/followers","following_url":"https://api.github.com/users/bep/following{/other_user}","gists_url":"https://api.github.com/users/bep/gists{/gist_id}","starred_url":"https://api.github.com/users/bep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bep/subscriptions","organizations_url":"https://api.github.com/users/bep/orgs","repos_url":"https://api.github.com/users/bep/repos","events_url":"https://api.github.com/users/bep/events{/privacy}","received_events_url":"https://api.github.com/users/bep/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-08-30T18:49:02Z","updated_at":"2015-03-08T06:12:27Z","closed_at":"2015-03-08T06:11:54Z","body":"I assume this is not implemented, so lets call it a feature request.\r\n\r\nI have a class with a a construction like `items.stream().map(n -> foo.m(n)).collect(Collectors.toList())` that fails on reload.\r\n\r\nI get this:\r\n\r\n```\r\njava.lang.IllegalStateException: The type registry TypeRegistry(id=269223509,loader=sun.misc.Launcher$AppClassLoader) does not know about type id 163\r\n\tat org.springsource.loaded.TypeRegistry.getReloadableType(TypeRegistry.java:1694)\r\n\tat org.springsource.loaded.TypeRegistry.idyrun(TypeRegistry.java:1578)\r\n```\r\nI tried to create a breaking test for it, see bjornerik/spring-loaded@58b7a0be09db30aa3368480b074b6af47f0ebd3d and the failing test `streamWithLambda()`.\r\n\r\nI get:\r\n\r\n```\r\njava.lang.reflect.InvocationTargetException\r\n...\r\nCaused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: no such method: basic.StreamA$$E002.lambda$run$26(Foo,Integer)Integer/invokeStatic\r\n```\r\nAlso when invoked virtually (see `streamWithLambdaInvokedVirtually()`):\r\n```\r\nCaused by: java.lang.IllegalStateException: nyi 9\r\n\tat org.springsource.loaded.support.Java8.callLambdaMetaFactory(Java8.java:150)\r\n\tat org.springsource.loaded.support.Java8.emulateInvokeDynamic(Java8.java:94)\r\n\t... 38 more\r\n```\r\n\r\nWhich obviously means this is not implemented.\r\n\r\nMy environment:\r\n```\r\nLinux bep-laptop 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux\r\njava version \"1.8.0_20\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_20-b26)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-loaded/issues/comments/77735220","html_url":"https://github.com/spring-projects/spring-loaded/issues/82#issuecomment-77735220","issue_url":"https://api.github.com/repos/spring-projects/spring-loaded/issues/82","id":77735220,"user":{"login":"aclement","id":226298,"avatar_url":"https://avatars.githubusercontent.com/u/226298?v=3","gravatar_id":"","url":"https://api.github.com/users/aclement","html_url":"https://github.com/aclement","followers_url":"https://api.github.com/users/aclement/followers","following_url":"https://api.github.com/users/aclement/following{/other_user}","gists_url":"https://api.github.com/users/aclement/gists{/gist_id}","starred_url":"https://api.github.com/users/aclement/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aclement/subscriptions","organizations_url":"https://api.github.com/users/aclement/orgs","repos_url":"https://api.github.com/users/aclement/repos","events_url":"https://api.github.com/users/aclement/events{/privacy}","received_events_url":"https://api.github.com/users/aclement/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T06:12:26Z","updated_at":"2015-03-08T06:12:26Z","body":"I added support for case 9 (H_INVOKEINTERFACE). I'm not totally happy with it because I'm a bit rusty on that area of the code but it passes the testcase from above. The other failing test in that group of test cases was due to the test harness, it wasn't fully rewriting the bootstrap method arguments, so left behind a reference to a non existent type. I've fixed that too."}}