6819601: Fix AWT JTReg tests which fail to compile
Fix compilation of tests. Reviewed-by: anthony, son
This commit is contained in:
parent
0c7428a720
commit
f38ce53536
@ -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>();
|
||||
|
Loading…
Reference in New Issue
Block a user