Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Workaround for JRE bug freezing the PDE #4079
Because of a JRE bug, code completion will occasionally freeze the PDE. Never seen this one before, however, it happened to me three times in a row while I was giving a lecture today and I had to kill the PDE and write all the code again. I can reproduce it back to beta 7. It is caused by JIT compiler, workaround is to disable it for this particular method. See https://bugs.openjdk.java.net/browse/JDK-8060036 and http://kingsfleet.blogspot.com.br/2014/11/but-thats-impossible-or-finding-out.html
@benfry JDK bug is os generic. It's difficult to reproduce on demand, because it depends on when JIT compiles
I can sometimes reproduce it by typing (not pasting) this line:
then starting the sketch and then clicking between
and PDE will remain operational.