--- a/test/jdk/javax/swing/JTree/8004298/bug8004298.java Mon Dec 04 10:12:46 2017 -0800
+++ b/test/jdk/javax/swing/JTree/8004298/bug8004298.java Mon Dec 04 16:14:29 2017 -0800
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,7 @@
* @test
* @key headful
* @bug 8004298
+ * @requires (os.family == "windows")
* @summary NPE in WindowsTreeUI.ensureRowsAreVisible
* @author Alexander Scherbatiy
* @library ../../regtesthelpers