Skip to content

Commit

Permalink
[UNDERTOW-1519] Included getUnsafe in try/catch to make it work with …
Browse files Browse the repository at this point in the history
…Java 11+
  • Loading branch information
smironov authored and fl4via committed Apr 3, 2019
1 parent e022deb commit 3c70a81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public final class DirectByteBufferDeallocator {
supported = false;
}
} else {
tmpUnsafe = getUnsafe();
try {
tmpUnsafe = getUnsafe();
tmpCleanerClean = tmpUnsafe.getClass().getDeclaredMethod("invokeCleaner", ByteBuffer.class);
tmpCleanerClean.setAccessible(true);
supported = true;
Expand Down

0 comments on commit 3c70a81

Please sign in to comment.