@@ -0,0 +1,3078 @@
+/*%0A %0A   Derby - Class org.apache.derbyTesting.functionTests.harness.jdk18%0A %0A   Licensed to the Apache Software Foundation (ASF) under one or more%0A   contributor license agreements.  See the NOTICE file distributed with%0A   this work for additional information regarding copyright ownership.%0A   The ASF licenses this file to You under the Apache License, Version 2.0%0A   (the %22License%22); you may not use this file except in compliance with%0A   the License.  You may obtain a copy of the License at%0A %0A      http://www.apache.org/licenses/LICENSE-2.0%0A %0A   Unless required by applicable law or agreed to in writing, software%0A   distributed under the License is distributed on an %22AS IS%22 BASIS,%0A   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A   See the License for the specific language governing permissions and%0A   limitations under the License.%0A %0A */%0A%0Apackage org.apache.derbyTesting.functionTests.harness;%0A%0Aimport java.util.Vector;%0Aimport java.util.StringTokenizer;%0A%0A%0Apublic class jdk18 extends jvm %7B%0A    %0A    public String getName()%7Breturn %22jdk18%22;%7D%0A    public jdk18(boolean noasyncgc, boolean verbosegc, boolean noclassgc,%0A        long ss, long oss, long ms, long mx, String classpath, String prof,%0A        boolean verify, boolean noverify, boolean nojit, Vector D) %7B%0A        super(noasyncgc,verbosegc,noclassgc,ss,oss,ms,mx,classpath,prof,%0A            verify,noverify,nojit,D);%0A    %7D%0A    %0A    public jdk18(String classpath, Vector D) %7B%0A        super(classpath,D);%0A    %7D%0A    %0A    public jdk18(long ms, long mx, String classpath, Vector D) %7B%0A        super(ms,mx,classpath,D);%0A    %7D%0A    %0A    public jdk18() %7B %7D%0A    %0A    %0A    public Vector getCommandLine() %7B%0A        StringBuffer sb = new StringBuffer();%0A        Vector v = super.getCommandLine();%0A        appendOtherFlags(sb);%0A        String s = sb.toString();%0A        StringTokenizer st = new StringTokenizer(s);%0A        while (st.hasMoreTokens()) %7B%0A            v.addElement(st.nextToken());%0A        %7D%0A        return v;%0A    %7D%0A    %0A    public void appendOtherFlags(StringBuffer sb) %7B%0A        if (noasyncgc) warn(%22jdk18 does not support noasyncgc%22);%0A        if (verbosegc) sb.append(%22 -verbose:gc%22);%0A        if (noclassgc) sb.append(%22 -Xnoclassgc%22);%0A        if (ss%3E=0) warn(%22jdk18 does not support ss%22);%0A        if (oss%3E=0) warn(%22jdk18 does not support oss%22);%0A        if (ms%3E=0) %7B%0A            sb.append(%22 -ms%22);%0A            sb.append(ms);%0A        %7D%0A        if (mx%3E=0) %7B%0A            sb.append(%22 -mx%22);%0A            sb.append(mx);%0A        %7D%0A        if (classpath!=null) %7B%0A            sb.append(%22 -classpath %22);%0A            sb.append(classpath);%0A        %7D%0A        if (prof!=null) warn(%22jdk18 does not support prof%22);%0A        if (verify) warn(%22jdk18 does not support verify%22);%0A        if (noverify) warn(%22jdk18 does not support noverify%22);%0A        if (nojit) sb.append(%22 -Djava.compiler=NONE%22);%0A        if (D != null)%0A            for (int i=0; i%3CD.size();i++) %7B%0A            sb.append(%22 -D%22);%0A            sb.append((String)(D.elementAt(i)));%0A            %7D%0A    %7D%0A    public String getDintro() %7B return %22-D%22; %7D%0A%7D%0A

Prepare old test harness for running tests on Java 8