Buggy code:
private } ; private static final byte [ ] warn0_warnA = new byte [ ] { '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' , '<seq2seq4repair_space>' } ; private static final String AUTHENTICATION_PROVIDER_BUILTIN_CLASS = "org.apache.derby.impl.jdbc.authentication.BasicAuthenticationServiceImpl" ; private static final String AUTHENTICATION_PROVIDER_NONE_CLASS = "org.apache.derby.impl.jdbc.authentication.NoneAuthenticationServiceImpl" ; private static final DRDAProtocolExceptionInfo dummy = new DRDAProtocolExceptionInfo ( 0 , 0 , 0 , false ) ; DRDAConnThread ( Session session , NetworkServerControlImpl server , long timeSlice , boolean logConnections ) { } public void run ( ) { } protected InputStream getInputStream ( ) { } protected OutputStream getOutputStream ( ) { } protected DDMReader getReader ( ) { } protected DDMWriter getWriter ( ) { } protected int getCorrelationID ( ) { } protected Session getSession ( ) { } protected Database getDatabase ( ) { } protected NetworkServerControlImpl getServer ( ) { } protected byte [ ] getCrrtkn ( ) { } protected String getDbName ( ) { } protected void close ( ) { } protected void setLogConnections ( boolean value ) { } protected void setTimeSlice ( long value ) { } protected void markCommunicationsFailure ( String arg1 , String arg2 , String arg3 , String arg4 ) throws DRDAProtocolException { } protected void markCommunicationsFailure ( Exception e , String arg1 , String arg2 , String arg3 , String arg4 ) throws DRDAProtocolException { } protected void throwSyntaxrm ( int errcd , int cpArg ) throws DRDAProtocolException { } protected void agentError ( String msg ) throws DRDAProtocolException { } protected void missingCodePoint ( int codePoint ) throws DRDAProtocolException { } protected static void println2Log ( String dbname , String drdaID , String msg ) { } protected void writeRDBNAM ( String rdbnam ) throws DRDAProtocolException { } private void initialize ( ) { } private void initializeForSession ( ) { } private void sessionInitialState ( ) throws Exception { } private void cleanUpAndCloseResultSet ( DRDAStatement stmt , SQLException sqle , int writerMark ) throws DRDAProtocolException { } private void processCommands ( ) throws DRDAProtocolException { } private void errorInChain ( SQLException e ) throws DRDAProtocolException { } private void exchangeServerAttributes ( ) throws DRDAProtocolException { } private boolean parseDRDAConnection ( ) throws DRDAProtocolException { } private void writeRDBfailure ( int codePoint ) throws DRDAProtocolException { } private int getRdbAccessErrorCodePoint ( ) { } private boolean isAuthenticationException ( SQLException sqlException ) { } private int verifyUserIdPassword ( ) throws DRDAProtocolException { } private int getConnFromDatabaseName ( ) throws DRDAProtocolException { } private void parseEXCSAT ( ) throws DRDAProtocolException { } private void parseEXCSAT2 ( ) throws DRDAProtocolException { } private void parseMGRLVLLS ( int time ) throws DRDAProtocolException { } private void writeEXCSATRD ( ) throws DRDAProtocolException { } private void writeMGRLEVELS ( ) throws DRDAProtocolException { } private int parseACCSEC ( ) throws DRDAProtocolException { } private Pkgnamcsn parseOPNQRY ( ) throws SQLException , DRDAProtocolException { } private void parseOPNQRYobjects ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private int parseOUTOVROPT ( ) throws DRDAProtocolException { } private int parseQRYBLKSZ ( ) throws DRDAProtocolException { } private int parseQRYROWSET ( int minVal ) throws DRDAProtocolException { } private int parseQRYCLSIMP ( ) throws DRDAProtocolException { } private int parseQRYCLSRLS ( ) throws DRDAProtocolException { } private void writeQRYPOPRM ( ) throws DRDAProtocolException { } private void writeQRYNOPRM ( int svrCod ) throws DRDAProtocolException { } private void writeOPNQFLRM ( SQLException e ) throws DRDAProtocolException { } private void writePKGNAMCSN ( byte [ ] pkgcnstkn ) throws DRDAProtocolException { } private void writePKGNAMCSN ( ) throws DRDAProtocolException { } private DRDAStatement parseCNTQRY ( ) throws SQLException , DRDAProtocolException { } private void skipRemainder ( boolean onlySkipSameIds ) throws DRDAProtocolException { } private void parseCNTQRYobjects ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void parseOUTOVR ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void writePBSD ( ) throws SQLException , DRDAProtocolException { } private void writeOPNQRYRM ( boolean isDssObject , DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void writeENDQRYRM ( int svrCod ) throws DRDAProtocolException { } private void writeABNUOWRM ( ) throws DRDAProtocolException { } private String parseRDBNAM ( ) throws DRDAProtocolException { } private void writeACCSECRD ( int securityCheckCode ) throws DRDAProtocolException { } private int parseSECCHK ( ) throws DRDAProtocolException { } private void writeSECCHKRM ( int securityCheckCode ) throws DRDAProtocolException { } private int svrcodFromSecchkcd ( int securityCheckCode ) { } private int parseACCRDB ( ) throws DRDAProtocolException { } private String parseTYPDEFNAM ( ) throws DRDAProtocolException { } private void setStmtOrDbByteOrder ( boolean setDatabase , DRDAStatement stmt , String typDefNam ) { } private void writeACCRDBRM ( int svrcod ) throws DRDAProtocolException { } private void writeTYPDEFOVR ( ) throws DRDAProtocolException { } private void parseTYPDEFOVR ( DRDAStatement st ) throws DRDAProtocolException { } private int parsePRPSQLSTT ( ) throws SQLException , DRDAProtocolException { } private String parsePRPSQLSTTobjects ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private boolean parseTYPSQLDA ( ) throws DRDAProtocolException { } protected void parseSQLATTR ( DRDAStatement stmt ) throws DRDAProtocolException { } private boolean parseDSCSQLSTT ( ) throws SQLException , DRDAProtocolException { } private void parseEXCSQLSTT ( ) throws SQLException , DRDAProtocolException { } private void parseRDBCMTOK ( ) throws DRDAProtocolException { } private boolean parseEXCSQLSTTobjects ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void writeSQLCINRD ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void writeSQLRSLRD ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void writeRSLSETRM ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void parseSQLDTA ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private void parseSQLDTA_work ( DRDAStatement stmt ) throws SQLException , DRDAProtocolException { } private int getByteOrder ( ) { } private void readAndSetParams ( int i , DRDAStatement stmt , ParameterMetaData pmeta ) throws SQLException , DRDAProtocolException { PreparedStatement ps = stmt . getPreparedStatement ( ) ; final int drdaType = ( ( stmt . getParamDRDAType ( ( i + 1 ) ) ) | 1 ) & 255 ; final int paramLenNumBytes = stmt . getParamLen ( ( i + 1 ) ) ; if ( ps instanceof CallableStatement ) { if ( stmt . isOutputParam ( ( i + 1 ) ) ) { CallableStatement cs = ( ( CallableStatement ) ( ps ) ) ; cs . registerOutParameter ( ( i + 1 ) , stmt . getOutputParamType ( ( i + 1 ) ) ) ; } } switch ( drdaType ) { case DRDAConstants . DRDA_TYPE_NSMALL : { short paramVal = ( ( short ) ( reader . readShort ( getByteOrder ( ) ) ) ) ; if ( SanityManager . DEBUG ) trace ( ( "short<seq2seq4repair_space>parameter<seq2seq4repair_space>value<seq2seq4repair_space>is:<seq2seq4repair_space>" + paramVal ) ) ; <START_BUG> if ( ( pmeta . getParameterType ( ( i + 1 ) ) ) == ( JDBC30Translation . BOOLEAN ) ) <END_BUG>

Fix:
if ( ( pmeta . getParameterType ( ( i + 1 ) ) ) == ( Types . BOOLEAN ) )