From d0eda37a9017889128b2a64c5b519b3b2c4e8219 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 11 May 2012 13:23:19 -0600 Subject: [PATCH] make Thread.interrupted static to match Java API --- classpath/java/lang/Thread.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classpath/java/lang/Thread.java b/classpath/java/lang/Thread.java index 4846287daf..7d403ec367 100644 --- a/classpath/java/lang/Thread.java +++ b/classpath/java/lang/Thread.java @@ -145,8 +145,8 @@ public class Thread implements Runnable { private static native boolean interrupt(long peer); - public boolean interrupted() { - return interrupted(peer); + public static boolean interrupted() { + return interrupted(currentThread().peer); } private static native boolean interrupted(long peer);