RFR: JDK-8179531: JShell: fails to provide bytecode for dynamically created lambdas

Paul Sandoz paul.sandoz at oracle.com
Thu May 4 21:24:15 UTC 2017


> On 4 May 2017, at 14:07, Jan Lahoda <jan.lahoda at oracle.com> wrote:
> 
> Thanks for the comments. An updated webrev:
> http://cr.openjdk.java.net/~jlahoda/8179531/webrev.01/
> 

+1

> On 4.5.2017 19:32, Paul Sandoz wrote:
>> 
>> GetResourceTest
>>>> 
>>  118         Thread.sleep(1000); //ensure time change:
>> 
>> The test might intermittently fail. Recommend you wrap in try/catch (InterruptedException e ) {}
> 
> Done. (Will wait for a second even in case of the exception, to prevent following failure.)
> 

For future reference i believe you can do this:

  CompletableFuture.runAsync(() -> {},
      CompletableFuture.delayedExecutor(1, TimeUnit.SECONDS)).join();

Paul.


More information about the kulla-dev mailing list