Buggy code:
public class CLIWrapper implements Runnable { private static String cliCommand = null ; private static final String outThreadHame = "CLI-out" ; private static final String errThreadHame = "CLI-err" ; private Process cliProcess ; private PrintWriter writer ; private BufferedReader outputReader ; private BufferedReader errorReader ; private BlockingQueue < String > outputQueue = new LinkedBlockingQueue < String > ( ) ; private boolean running = false ; public CLIWrapper ( ) throws Exception { } public CLIWrapper ( boolean connect ) throws Exception { } public CLIWrapper ( boolean connect , String [ ] cliArgs ) throws Exception { } public void sendLine ( String line , boolean readEcho ) throws Exception { } public void sendLine ( String line ) throws Exception { } public void waitForPrompt ( long timeout ) throws Exception { } public String readLine ( ) { } public String readLine ( long timeout ) throws Exception { } public String [ ] readAll ( long timeout , long lineTimeout ) { } public String readAllUnformated ( long timeout , long lineTimeout ) { } public CLIOpResult readAllAsOpResult ( long timeout , long lineTimeout ) throws Exception { } private Map < String , Object > parseCompound ( StreamTokenizer st ) throws IOException , ParseException { } private List parseList ( StreamTokenizer st ) throws IOException , ParseException { } public void flush ( ) { } public synchronized void quit ( ) throws Exception { } public boolean hasQuit ( ) { } private void init ( String [ ] cliArgs ) throws Exception { } private static String getCliCommand ( ) throws Exception { if ( ( CLIWrapper . cliCommand ) != null ) { return CLIWrapper . cliCommand ; } String asDist = System . getProperty ( "jboss.dist" ) ; String asInst = System . getProperty ( "jboss.inst" ) ; String javaExec = ( ( ( ( System . getProperty ( "java.home" ) ) + ( File . separatorChar ) ) + "bin" ) + ( File . separatorChar ) ) + "java" ; if ( javaExec . contains ( "<seq2seq4repair_space>" ) ) { javaExec = ( "\"" + javaExec ) + "\"" ; } <START_BUG> CLIWrapper . cliCommand = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( javaExec + "<seq2seq4repair_space>-Djboss.home.dir=" ) + asInst ) + "<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.cli" ) + "<seq2seq4repair_space>--user=" ) + ( USERNAME ) ) + "<seq2seq4repair_space>--password=" ) + ( PASSWORD ) ; <END_BUG> return CLIWrapper . cliCommand ; } public void run ( ) { } private synchronized void outputLineReceived ( String line ) { } private synchronized void errorLineReceived ( String line ) { } }

Fix:
CLIWrapper . cliCommand = ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( javaExec + "<seq2seq4repair_space>-Djboss.home.dir=" ) + asInst ) + "<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.cli" ) + "<seq2seq4repair_space>--user=" ) + ( USERNAME ) ) + "<seq2seq4repair_space>--password=" ) + ( PASSWORD ) ;