GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — throw LinkageError instead of RuntimeException to wrap UnsatisfiedLin… · mimoccc/objectbox-java@9c5475c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • objectbox-java/src/main/java/io/objectbox/internal
    • NativeLibraryLoader.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎objectbox-java/src/main/java/io/objectbox/internal/NativeLibraryLoader.java‎

Copy file name to clipboardExpand all lines: objectbox-java/src/main/java/io/objectbox/internal/NativeLibraryLoader.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public class NativeLibraryLoader {
8282
System.err.println("File not available: " + file.getAbsolutePath());
8383
}
8484
try {
85-
if (!android || !loadLibraryAndroid(libname)) {
85+
if (!android || !loadLibraryAndroid(libname)) { // if android && loadLibraryAndroid OK: done
8686
System.loadLibrary(libname);
8787
}
8888
} catch (UnsatisfiedLinkError e) {
@@ -101,7 +101,7 @@ public class NativeLibraryLoader {
101101
"Loading ObjectBox native library failed: vendor=%s,os=%s,arch=%s,android=%s,linux=%s",
102102
vendor, osName, sunArch, android, isLinux
103103
);
104-
throw new RuntimeException(message, e);
104+
throw new LinkageError(message, e); // UnsatisfiedLinkError does not allow a cause; use its super class
105105
}
106106
}
107107

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.