提交 6d7bd70c 编写于 作者: A anthony

6819601: Fix AWT JTReg tests which fail to compile

Summary: Fix compilation of tests.
Reviewed-by: anthony, son
Contributed-by: NAndrew John Hughes <ahughes@redhat.com>
上级 58e9c761
......@@ -118,7 +118,7 @@ class StubComponentPeer implements ComponentPeer {
public boolean handlesWheelScrolling(){return true;};
public void createBuffers(int numBuffers, BufferCapabilities caps) throws AWTException{};
public Image getBackBuffer(){return null;};
public void flip(BufferCapabilities.FlipContents flipAction){};
public void flip(int x1, int y1, int x2, int y2, BufferCapabilities.FlipContents flipAction){};
public void destroyBuffers(){};
/**
......
......@@ -76,8 +76,13 @@ public class bug6638195 {
Callable<Void> afterDispatchCallable =
new Callable<Void>() {
public Void call() {
delegate.afterDispatch(afterDispatchEventArgument[0],
afterDispatchHandleArgument[0]);
try {
delegate.afterDispatch(afterDispatchEventArgument[0],
afterDispatchHandleArgument[0]);
}
catch (InterruptedException e) {
throw new RuntimeException("afterDispatch interrupted", e);
}
return null;
}
};
......@@ -91,8 +96,13 @@ public class bug6638195 {
Callable<Object> beforeDispatchCallable =
new Callable<Object>() {
public Object call() {
return delegate.beforeDispatch(
beforeDispatchEventArgument[0]);
try {
return delegate.beforeDispatch(
beforeDispatchEventArgument[0]);
}
catch (InterruptedException e) {
throw new RuntimeException("beforeDispatch interrupted", e);
}
}
};
methodMap = new HashMap<String, Object>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册