Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail fast on FailOnThreadViolationRepaintManager.install if OpenJDK #34

Open
calvertdw opened this issue May 3, 2019 · 0 comments
Open

Comments

@calvertdw
Copy link

calvertdw commented May 3, 2019

Would be nice to include the following code to throw a RuntimeException if the Java vendor is obviously not Oracle.

if (!System.getProperty("java.vendor").toLowerCase().contains("oracle"))
{
    throw new RuntimeException("Can only install FailOnThreadViolationRepaintManager on Oracle JVMs");
}

public static @Nonnull FailOnThreadViolationRepaintManager install() {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant