8043529: Serviceability tests using @library failing with java.lang.NoClassDefFoundError
Reviewed-by: sla, jbachorik
Contributed-by: Yekaterina Kantserova <yekaterina.kantserova@oracle.com>
diff --git a/test/java/io/BufferedInputStream/LargeCopyWithMark.java b/test/java/io/BufferedInputStream/LargeCopyWithMark.java
index 2555a1f..74aeda9 100644
--- a/test/java/io/BufferedInputStream/LargeCopyWithMark.java
+++ b/test/java/io/BufferedInputStream/LargeCopyWithMark.java
@@ -26,6 +26,7 @@
  * @summary BufferedInputStream calculates negative array size with large
  *          streams and mark
  * @library /lib/testlibrary
+ * @build jdk.testlibrary.*
  * @run main/othervm LargeCopyWithMark
  */