jdk/src/solaris/classes/sun/tools/attach/LinuxVirtualMachine.java
changeset 10419 12c063b39232
parent 7668 d4a77089c587
child 11692 dd4289e8b9e3
equal deleted inserted replaced
10418:1d57022fdb6e 10419:12c063b39232
   302         if (s.length() > 0) {
   302         if (s.length() > 0) {
   303             byte b[];
   303             byte b[];
   304             try {
   304             try {
   305                 b = s.getBytes("UTF-8");
   305                 b = s.getBytes("UTF-8");
   306             } catch (java.io.UnsupportedEncodingException x) {
   306             } catch (java.io.UnsupportedEncodingException x) {
   307                 throw new InternalError();
   307                 throw new InternalError(x);
   308             }
   308             }
   309             LinuxVirtualMachine.write(fd, b, 0, b.length);
   309             LinuxVirtualMachine.write(fd, b, 0, b.length);
   310         }
   310         }
   311         byte b[] = new byte[1];
   311         byte b[] = new byte[1];
   312         b[0] = 0;
   312         b[0] = 0;