< prev index next >

src/com/sun/javatest/agent/Agent.java

Print this page
rev 152 : 7902253: Remove unnecessary array creation for varargs parameters
7902245: Correct Agent.productVersion
Reviewed-by: jjg

*** 593,605 **** static final byte LOG_FLUSH = (byte)'l'; static final byte REF = (byte)'R'; static final byte REF_FLUSH = (byte)'r'; static final byte STATUS = (byte)'S'; ! static final String productName = "JT Harness Agent"; ! static final String productVersion = "JTA_5.0"; ! static final String productCopyright = "Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved."; /** * Tasks handle the individual requests received by Agent. * They read the request from the connection, execute the request, which means --- 593,605 ---- static final byte LOG_FLUSH = (byte)'l'; static final byte REF = (byte)'R'; static final byte REF_FLUSH = (byte)'r'; static final byte STATUS = (byte)'S'; ! static final String PRODUCT_NAME = "JT Harness Agent"; ! static final String PRODUCT_VERSION = "JTA_6.0"; ! static final String PRODUCT_COPYRIGHT = "Copyright (c) 1996, 2018, Oracle and/or its affiliates. All rights reserved."; /** * Tasks handle the individual requests received by Agent. * They read the request from the connection, execute the request, which means
*** 943,953 **** PrintStream out = Deprecated.createPrintStream(new WriterStream(testRef)); PrintStream err = Deprecated.createPrintStream(new WriterStream(testLog)); try { setSystemStreams(this, out, err); ! Method main = c.getDeclaredMethod("main", new Class<?>[] {String[].class}); main.invoke(null, new Object[] {args}); return Status.passed("OK"); } catch (NoSuchMethodException e) { return Status.error("Can't find `public static void main(String[] args)' for `" + c.getName() + "'"); } catch (InvocationTargetException e) { --- 943,953 ---- PrintStream out = Deprecated.createPrintStream(new WriterStream(testRef)); PrintStream err = Deprecated.createPrintStream(new WriterStream(testLog)); try { setSystemStreams(this, out, err); ! Method main = c.getDeclaredMethod("main", String[].class); main.invoke(null, new Object[] {args}); return Status.passed("OK"); } catch (NoSuchMethodException e) { return Status.error("Can't find `public static void main(String[] args)' for `" + c.getName() + "'"); } catch (InvocationTargetException e) {
< prev index next >