Example usage for java.lang LinkageError LinkageError

List of usage examples for java.lang LinkageError LinkageError

Introduction

In this page you can find the example usage for java.lang LinkageError LinkageError.

Prototype

public LinkageError(String s, Throwable cause) 

Source Link

Document

Constructs a LinkageError with the specified detail message and cause.

Usage

From source file:org.neo4j.io.pagecache.impl.SingleFilePageSwapper.java

private Object positionLock(FileChannel channel) {
    sun.nio.ch.FileChannelImpl impl = (FileChannelImpl) channel;
    try {/*w  ww  .  ja  va2  s .c  o m*/
        return (Object) positionLockGetter.invokeExact(impl);
    } catch (Throwable th) {
        throw new LinkageError("No getter for FileChannel.positionLock", th);
    }
}