<BUG>Task<String> task = Task.ofType(String.class).named("WithLocalRef").process(() -> local + " won't cause an outer reference");</BUG><CONTEXT>serialize(task);}@Testpublic void shouldSerializeWithLocalReference() throws Exception {String local = instanceField;<extra_id_0>serialize(task);Task<String> des = deserialize();context.evaluate(des).consume(val);</CONTEXT>
Task<String> task = Task.named("WithLocalRef").ofType(String.class).process(() -> local + " won't cause an outer reference");