langtools/test/tools/sjavac/SjavacBase.java
changeset 40308 274367a99f98
parent 32337 c9d3ab9f601c
equal deleted inserted replaced
40306:1a0fcaf3f2ed 40308:274367a99f98
     1 /*
     1 /*
     2  * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    22  */
    22  */
    23 
    23 
    24 import java.lang.reflect.Method;
    24 import java.lang.reflect.Method;
    25 import java.util.Arrays;
    25 import java.util.Arrays;
    26 
    26 
       
    27 import toolbox.ToolBox;
       
    28 
    27 public class SjavacBase {
    29 public class SjavacBase {
    28 
    30 
    29     protected final static ToolBox toolbox = new ToolBox();
    31     protected final static ToolBox toolbox = new ToolBox();
    30 
    32 
    31     /**
    33     /**
    42         for (int i = 0; i < args.length; i++)
    44         for (int i = 0; i < args.length; i++)
    43             strArgs[i] = args[i].toString();
    45             strArgs[i] = args[i].toString();
    44         int rc = (Integer) m.invoke(null, (Object) strArgs);
    46         int rc = (Integer) m.invoke(null, (Object) strArgs);
    45         return rc;
    47         return rc;
    46     }
    48     }
    47 
       
    48 }
    49 }