13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.awt.Frame;
25 import java.awt.GraphicsConfiguration;
26 import java.awt.Window;
27
28 import static java.util.concurrent.TimeUnit.MINUTES;
29 import static java.util.concurrent.TimeUnit.NANOSECONDS;
30
31 /**
32 * @test
33 * @bug 8138764
34 */
35 public final class TreeLockDeadlock extends Frame {
36
37 @Override
38 public synchronized GraphicsConfiguration getGraphicsConfiguration() {
39 return super.getGraphicsConfiguration();
40 }
41
42 @Override
43 public synchronized void reshape(int x, int y, int width, int height) {
44 super.reshape(x, y, width, height);
45 }
46
47 @Override
48 public synchronized float getOpacity() {
49 return super.getOpacity();
50 }
51
52 public static void main(final String[] args) throws Exception {
|
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 import java.awt.Frame;
25 import java.awt.GraphicsConfiguration;
26 import java.awt.Window;
27
28 import static java.util.concurrent.TimeUnit.MINUTES;
29 import static java.util.concurrent.TimeUnit.NANOSECONDS;
30
31 /**
32 * @test
33 * @key headful
34 * @bug 8138764
35 */
36 public final class TreeLockDeadlock extends Frame {
37
38 @Override
39 public synchronized GraphicsConfiguration getGraphicsConfiguration() {
40 return super.getGraphicsConfiguration();
41 }
42
43 @Override
44 public synchronized void reshape(int x, int y, int width, int height) {
45 super.reshape(x, y, width, height);
46 }
47
48 @Override
49 public synchronized float getOpacity() {
50 return super.getOpacity();
51 }
52
53 public static void main(final String[] args) throws Exception {
|