1
0
Fork 0

Try Java8+ native method first

This commit is contained in:
hpi1 2019-02-21 23:15:34 +02:00
parent bab43543dc
commit 8d1179408c
1 changed files with 2 additions and 2 deletions

View File

@ -91,10 +91,10 @@ public class FileInputStream extends InputStream
/* open()/open0() wrapper to select correct native method at runtime */
private void openImpl(String name) throws FileNotFoundException {
try {
open(name);
} catch (UnsatisfiedLinkError e) {
/* OpenJDK 8 b40 */
open0(name);
} catch (UnsatisfiedLinkError e) {
open(name);
}
}