--- old/test/lib/jdk/test/lib/cds/CDSOptions.java 2018-11-16 19:18:41.802163759 -0800 +++ new/test/lib/jdk/test/lib/cds/CDSOptions.java 2018-11-16 19:18:41.538153711 -0800 @@ -33,6 +33,9 @@ public ArrayList suffix = new ArrayList(); public boolean useSystemArchive = false; + // classes to be archived + public String[] classList; + // Indicate whether to append "-version" when using CDS Archive. // Most of tests will use '-version' public boolean useVersion = true; @@ -74,4 +77,16 @@ this.useSystemArchive = use; return this; } + + public CDSOptions setClassList(String[] list) { + this.classList = list; + return this; + } + public CDSOptions setClassList(ArrayList list) { + String array[] = new String[list.size()]; + list.toArray(array); + this.classList = array; + return this; + } + }