Buggy code:
public class RBusinessManager implements IBioclipseManager { private static final Logger logger = Logger . getLogger ( RBusinessManager . class ) ; private RServi rservi ; public String R_HOME ; private String status = "" ; private Boolean working = true ; private IPath workspacePath ; private static final String OS = System . getProperty ( "os.name" ) . toString ( ) ; private RServiManager rsmanager = new RServiManager ( "Rconsole" ) ; private boolean rightRVersion = true ; public static String NEWLINE = System . getProperty ( "line.separator" ) ; public static String cmdparser = "(;?\r?\n|;)" ; public static final String fileseparator = File . separator ; public RBusinessManager ( ) throws NoSuchElementException , LoginException { } public String getManagerName ( ) { } public String getStatus ( ) { } public Boolean isWorking ( ) { } public boolean runCmd ( String command ) { } private boolean runRCmd ( String Rcommand ) { } private void checkRdependencies ( ) throws FileNotFoundException { } public boolean getRightRVersion ( ) { } private boolean installRj ( ) throws FileNotFoundException { } private String checkUserLibDir ( ) { } public String checkR_HOME ( String path ) throws FileNotFoundException { } private Boolean rExist ( String testPath ) { } private String RegQuery ( String key ) { } private void initSession ( ) { } public String eval ( String command ) { RBusinessManager . logger . debug ( ( "R<seq2seq4repair_space>cmd:<seq2seq4repair_space>" + command ) ) ; String returnVal = "R<seq2seq4repair_space>console<seq2seq4repair_space>is<seq2seq4repair_space>inactivated:<seq2seq4repair_space>" + ( status ) ; if ( working ) { if ( command . startsWith ( "?" ) ) returnVal = help ( command . substring ( 1 ) ) ; else if ( command . contains ( "quartz" ) ) returnVal = ( "quartz()<seq2seq4repair_space>is<seq2seq4repair_space>currently<seq2seq4repair_space>disabled<seq2seq4repair_space>for<seq2seq4repair_space>stability<seq2seq4repair_space>reasons" + ( RBusinessManager . NEWLINE ) ) + "Please<seq2seq4repair_space>use<seq2seq4repair_space>X11<seq2seq4repair_space>for<seq2seq4repair_space>plotting!" ; else try { <START_BUG> RObject data = rservi . evalData ( ( ( "capture.output(print(" + command ) + "))" ) , null ) ; <END_BUG> RStore rData = data . getData ( ) ; StringBuilder builder = new StringBuilder ( ) ; int n = rData . getLength ( ) ; for ( int i = 0 ; i < n ; i ++ ) { builder . append ( rData . getChar ( i ) ) ; if ( ( i + 1 ) < n ) builder . append ( RBusinessManager . NEWLINE ) ; } returnVal = builder . toString ( ) ; } catch ( CoreException rError ) { returnVal = "Error:<seq2seq4repair_space>" + ( extractRError ( rError . getMessage ( ) ) ) ; } catch ( Throwable error ) { error . printStackTrace ( ) ; returnVal = "Error:<seq2seq4repair_space>" + ( error . getMessage ( ) ) ; } RBusinessManager . logger . debug ( ( ( "<seq2seq4repair_space>-><seq2seq4repair_space>" + ( RBusinessManager . NEWLINE ) ) + returnVal ) ) ; } return returnVal ; } public String evalSnippet ( String seltext ) { } public String [ ] parseCommand ( String command ) { } public String fixFilepath ( String filepath ) { } public String ls ( ) { } private String help ( String command ) { } public String createMatrix ( String varName , IMatrixResource matrixData ) { } private String matrixAsString ( IMatrixResource matrix ) { } private String extractRError ( String error ) { } private static int compare ( String v1 , String v2 ) { } public static String normalisedVersion ( String version ) { } public static String normalisedVersion ( String version , String sep , int maxWidth ) { } }

Fix:
RObject data = rservi . evalData ( ( ( "capture.output(" + command ) + ")" ) , null ) ;