Skip to content

Commit

Permalink
Fixes 'readAttributes' method finding
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Pinčuk <alexander.v.pinchuk@gmail.com>
  • Loading branch information
avpinchuk committed Jun 16, 2024
1 parent b586317 commit 1ee2ee3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ private static class Library {
try {
if (OS.isWindows()) {
Class<?> attributesClass = Class.forName("sun.nio.fs.WindowsFileAttributes");
method = attributesClass.getDeclaredMethod("readAttributes", Long.class);
method = attributesClass.getDeclaredMethod("readAttributes", Long.TYPE);
field = FileDescriptor.class.getDeclaredField("handle");
} else {
Class<?> attributesClass = Class.forName("sun.nio.fs.UnixFileAttributes");
Expand Down

0 comments on commit 1ee2ee3

Please sign in to comment.