Issue2589

classification
Title: Two copies of jansi DLL created per invocation of Jython
Type: behaviour Severity: minor
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jeff.allen
Priority: Keywords:

Created on 2017-05-07.08:38:40 by jeff.allen, last changed 2017-05-07.08:38:40 by jeff.allen.

Messages
msg11358 (view) Author: Jeff Allen (jeff.allen) Date: 2017-05-07.08:38:39
Noted in passing on Windows, the jansi DLL that is necessary to support the JLine console is extracted twice from the JLine JAR every time I run Jython. Doing it twice appears to be a bug in org.fusesource.hawtjni.runtime.Library, which cannot find the file it extracted earlier when loading a class.

Files extracted from a URL are given (by Java) a randomly-generated name component, so the DLL ends up as "jansi-64-2636578793605407255.dll", or some such, and go into the temporary directory.

However, WIBNI JLine (and jnr-posix for that matter) found the necessary dependencies, instead of regenarating them?
History
Date User Action Args
2017-05-07 08:38:40jeff.allencreate