|
|
Change By:
|
Martin Kouba
|
Workaround Description:
|
Instead of the method parameter use an additional local variable with the same value assigned; i.e. instead of: {code:java} public void observe(@Observes @Juicy String payload) { Arrays.asList("foo").stream().filter((s) -> s.equals(payload)); } {code} use this: {code:java} public void observe(@Observes @Juicy String payload) { String p = payload; Arrays.asList("foo").stream().filter((s) -> s.equals(p)); } {code}
|
Environment:
|
Oracle JDK 8u60
|
|
|
|