Update FlatLaf from 2.4 to 2.5#4696
Conversation
…rsion This allows modules that need access to the internal packages and accept, that they will be version locked to declare an implementation dependency on this module.
|
Change looks sane to me, however I suggest to include this in this change set (if in doubt, feel free to squash it into your commit): The intention is to fix the issue described in #4619. @neilcsmith-net it would be nice if you could have a look. |
|
@matthiasblaesing Done. Thanks. |
|
@mbastian could you try whether the added implementation version works with your FlatLaf-SwingX module? |
|
@matthiasblaesing that change looks a good idea. I wonder if we should be pre-extracting the native libs similarly to how JNA module does it here? Aside @DevCharly - while looking at FlatLaf code for native loading noticed the comments on libjawt. Similar to #4441 and java-native-access/jna#1422 Probably good to always preload. |
Thanks for having a look.
In theory a good idea, in practice extracting libraries needs a way to force loading through |
Yes, I saw. We'd need to set this in the module installer. Let's merge as is, but keep this in mind if we get any linking error reports. @DevCharly an option in FlatLaf to prefer trying to load via |
|
@neilcsmith-net thank you for the pointer - I looked one level to deep. What do you think about this: @DevCharly the referenced commit should change the library loading, so that the library is loaded from the pre-extracted version in the modules directory. The issue with self extracting libraries is two fold: The first problem is cleanup - windows only lets you remove libraries after the users are closed, the second problem is on linux the temp directory could be mounted |
|
Thanks @matthiasblaesing Possibly should go directly in |
|
@neilcsmith-net valid point updated to: @DevCharly if you consider this, please use this commit, not the previous one, I replaced it based on Neils comments. |
…runtime extraction
|
@matthiasblaesing have added your commit (removed an unused import)
I wonder where Java/NetBeans searches for libraries if System::loadLibrary is used? |
In NetBeans, from |
Is it possible that this is broken? Looking at the JNA code, it seems that JNA uses |
|
The implementation in above line (in previous post) seems not fit to the Javadoc: Also hint at following line is IMHO not useful because |
|
Well, |
|
@DevCharly: You are right - it currently hits the "load from classpath" case |
|
The jna issue should be fixed by #4736 |
|
@DevCharly sorry, looks like our PRs conflicted in changes to |
|
Opened #4803 with conflicts resolved instead. |
Update FlatLaf to v2.5.
Changes: https://github.com/JFormDesigner/FlatLaf/releases/tag/2.5