Fix UnSatisfiedLinkError when trying to load non-existent libraries - #47
pavly-gerges wants to merge 7 commits into
Conversation
…action for the incremental loading criterion
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Documentation | 2 minor |
🟢 Metrics 101 complexity · 3 duplication
Metric Results Complexity 101 Duplication 3
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
@stephengold You shouldn't catch exceptions anymore, the standard way to deal with exceptions and errors thrown from the API is to use both EDIT: Btw, it appears that the techdemos that demonstrate the library features using |
Of course. I have many projects that use jSnapLoader. Can you be specific about which projects are broken and how they are broken? |
This PR introduces
LibraryNotFoundExceptionas a guard against directly loading non-existent file regardless of whether they are actual binaries or corrupted files.Furthermore, the PR introduces a way to antagonize the effect of initializing a
FileOutputStreamby theFileExtractorAPI that by default creates a blank file (or opaque file); bypassing the formerly mentioned "LibraryNotFoundException".In addition, it also introduces an example that shows how to deal with broken features using
FileExtractionListenerinterface.