Buggy code:
public class AppClientWrapper implements Runnable { private String appClientCommand = null ; private static final String outThreadHame = "APPCLIENT-out" ; private static final String errThreadHame = "APPCLIENT-err" ; private Process appClientProcess ; private PrintWriter writer ; private BufferedReader outputReader ; private BufferedReader errorReader ; private BlockingQueue < String > outputQueue = new LinkedBlockingQueue < String > ( ) ; private Thread shutdownThread ; private final Archive < ? > archive ; private final String clientArchiveName ; private File archiveOnDisk ; private final String args ; public AppClientWrapper ( final Archive < ? > archive , final String clientArchiveName , final String args ) throws Exception { } public String [ ] readAll ( final long timeout ) { } public String readAllUnformated ( long timeout ) { } public synchronized void quit ( ) throws Exception { } private void init ( ) throws Exception { } private String getAppClientCommand ( ) throws Exception { if ( ( appClientCommand ) != null ) return appClientCommand ; final String tempDir = System . getProperty ( "java.io.tmpdir" ) ; archiveOnDisk = new File ( ( ( tempDir + ( File . separator ) ) + ( archive . getName ( ) ) ) ) ; if ( archiveOnDisk . exists ( ) ) { archiveOnDisk . delete ( ) ; } final ZipExporter exporter = archive . as ( ZipExporter . class ) ; exporter . exportTo ( archiveOnDisk ) ; final String appClientArg ; if ( ( clientArchiveName ) == null ) { appClientArg = archiveOnDisk . getAbsolutePath ( ) ; } else { appClientArg = ( ( archiveOnDisk . getAbsolutePath ( ) ) + "#" ) + ( clientArchiveName ) ; } System . out . println ( "***<seq2seq4repair_space>System<seq2seq4repair_space>properties:<seq2seq4repair_space>***" ) ; Properties props = System . getProperties ( ) ; Enumeration en = props . propertyNames ( ) ; while ( en . hasMoreElements ( ) ) { String name = ( ( String ) ( en . nextElement ( ) ) ) ; System . out . println ( ( ( ( "\t" + name ) + "<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( System . getProperty ( name ) ) ) ) ; } String asDist = System . getProperty ( "jboss.dist" ) ; if ( asDist == null ) throw new Exception ( "'jboss.dist'<seq2seq4repair_space>property<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>set." ) ; if ( ! ( new File ( asDist ) . exists ( ) ) ) throw new Exception ( ( ( ( "AS<seq2seq4repair_space>dir<seq2seq4repair_space>from<seq2seq4repair_space>'jboss.dist'<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist:<seq2seq4repair_space>" + asDist ) + "<seq2seq4repair_space>user.dir:<seq2seq4repair_space>" ) + ( System . getProperty ( "user.dir" ) ) ) ) ; String asInst = System . getProperty ( "jboss.inst" ) ; if ( asInst == null ) throw new Exception ( "'jboss.inst'<seq2seq4repair_space>property<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>set.<seq2seq4repair_space>Perhaps<seq2seq4repair_space>this<seq2seq4repair_space>test<seq2seq4repair_space>is<seq2seq4repair_space>in<seq2seq4repair_space>a<seq2seq4repair_space>multi-node<seq2seq4repair_space>tests<seq2seq4repair_space>group<seq2seq4repair_space>but<seq2seq4repair_space>runs<seq2seq4repair_space>outside<seq2seq4repair_space>container?" ) ; if ( ! ( new File ( asInst ) . exists ( ) ) ) throw new Exception ( ( ( ( "AS<seq2seq4repair_space>dir<seq2seq4repair_space>from<seq2seq4repair_space>'jboss.inst'<seq2seq4repair_space>doesn't<seq2seq4repair_space>exist:<seq2seq4repair_space>" + asInst ) + "<seq2seq4repair_space>user.dir:<seq2seq4repair_space>" ) + ( System . getProperty ( "user.dir" ) ) ) ) ; <START_BUG> appClientCommand = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "java" + "<seq2seq4repair_space>-Djboss.modules.dir=" ) + asDist ) + "//modules" ) + "<seq2seq4repair_space>-Djline.WindowsTerminal.directConsole=false" ) + "<seq2seq4repair_space>-jar<seq2seq4repair_space>" ) + asDist ) + "//jboss-modules.jar" ) + "<seq2seq4repair_space>-mp<seq2seq4repair_space>" ) + asDist ) + "//modules" ) + "<seq2seq4repair_space>-logmodule<seq2seq4repair_space>org.jboss.logmanager<seq2seq4repair_space>org.jboss.as.appclient" ) + "<seq2seq4repair_space>-Djboss.server.base.dir=" ) + asInst ) + "//appclient" ) + "<seq2seq4repair_space>-Djboss.home.dir=" ) + asInst ) + "<seq2seq4repair_space>" ) + appClientArg ) + "<seq2seq4repair_space>" ) + ( args ) ; <END_BUG> return appClientCommand ; } public void run ( ) { } private synchronized void outputLineReceived ( String line ) { } private synchronized void errorLineReceived ( String line ) { } }

Fix:
appClientCommand = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "java" + "<seq2seq4repair_space>-Djboss.modules.dir=" ) + asDist ) + "//modules" ) + "<seq2seq4repair_space>-Djline.WindowsTerminal.directConsole=false" ) + "<seq2seq4repair_space>-jar<seq2seq4repair_space>" ) + asDist ) + "//jboss-modules.jar" ) + "<seq2seq4repair_space>-mp<seq2seq4repair_space>" ) + asDist ) + "//modules" ) + "<seq2seq4repair_space>org.jboss.as.appclient" ) + "<seq2seq4repair_space>-Djboss.server.base.dir=" ) + asInst ) + "//appclient" ) + "<seq2seq4repair_space>-Djboss.home.dir=" ) + asInst ) + "<seq2seq4repair_space>" ) + appClientArg ) + "<seq2seq4repair_space>" ) + ( args ) ;