< prev index next >

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

Print this page
rev 152 : 7902245: Correct Agent.productVersion
Reviewed-by: jjg

@@ -412,11 +412,11 @@
 
         case SERIAL:
             try {
                 Class<?> c = Class.forName(pkg + ".SerialPortConnectionFactory");
                 Constructor<?> m = c.getConstructor(new Class<?>[] {String.class, String.class, int.class});
-                Object[] args = {serialPort, Agent.productName, new Integer(10*1000)};
+                Object[] args = {serialPort, Agent.PRODUCT_NAME, new Integer(10*1000)};
                 return (ConnectionFactory)(m.newInstance(args));
             }
             catch (InvocationTargetException e) {
                 Throwable t = e.getTargetException();
                 if (t instanceof IllegalArgumentException ||
< prev index next >