Re: jshell (tests?) leaking files in /tmp
andrei.i.eremeev at mail.ru
Tue Aug 2 20:03:07 UTC 2016
According to source code of JShell, a new temp file is created in ExternalEditor when a code snippet is modified.
this.dir = Files.createTempDirectory("jshelltemp");
this.tmpfile = Files.createTempFile(dir, null, ".edit");
The created file is not removed.
I reproduced the problem with vim:
int h = 10;
/set editor vim
A file is created in tmp if /edit is executed.
>Tuesday, August 2, 2016 8:43 PM +03:00 from Jonathan Gibbons <jonathan.gibbons at oracle.com>:
>On 08/02/2016 10:37 AM, Jonathan Gibbons wrote:
>> A simple script to execute the jshell tests one at a time, and to
>> check the /tmp directory after executing each test, shows that the
>> culprit is ToolretainTest.java
>> I'll file a bug.
>> -- Jon
More information about the kulla-dev