Buggy code:
public class EmbedConnection implements EngineConnection { protected static final StandardException exceptionClose = StandardException . closeException ( ) ; public static final SQLException NO_MEM = Util . generateCsSQLException ( LOGIN_FAILED , "java.lang.OutOfMemoryError" ) ; public static final LowMemory memoryState = new LowMemory ( ) ; DatabaseMetaData dbMetadata ; TransactionResourceImpl tr ; private HashMap lobHashMap = null ; private int lobHMKey = 0 ; private WeakHashMap lobReferences = null ; private HashSet lobFiles ; private boolean active ; private boolean aborting = false ; boolean autoCommit = true ; boolean needCommit ; private boolean usingNoneAuth ; private int connectionHoldAbility = ResultSet . HOLD_CURSORS_OVER_COMMIT ; final EmbedConnection rootConnection ; private SQLWarning topWarning ; private InternalDriver factory ; private Connection applicationConnection ; private int resultSetId ; private String connString ; public EmbedConnection ( InternalDriver driver , String url , Properties info ) throws SQLException { } private void checkDatabaseBooted ( Database database , String operation , String dbname ) throws SQLException { } private boolean createBoot ( Properties p ) throws SQLException { } private void handleDBNotFound ( ) throws SQLException { } private boolean isDropDatabase ( Properties p ) { } private boolean isCryptoBoot ( Properties p ) throws SQLException { <START_BUG> return ( ( ( EmbedConnection . isTrue ( p , DATA_ENCRYPTION ) ) || ( EmbedConnection . vetTrue ( p , DECRYPT_DATABASE ) ) ) || ( EmbedConnection . isSet ( p , NEW_BOOT_PASSWORD ) ) ) || ( EmbedConnection . isSet ( p , NEW_CRYPTO_EXTERNAL_KEY ) ) ; <END_BUG> } private boolean isHardUpgradeBoot ( Properties p ) { } private boolean isStartReplicationSlaveBoot ( Properties p ) { } private boolean isStartReplicationMasterBoot ( Properties p ) { } private boolean isReplicationFailover ( Properties p ) { } private boolean isStopReplicationMasterBoot ( Properties p ) { } private boolean isStopReplicationSlaveBoot ( Properties p ) { } private boolean isInternalShutdownSlaveDatabase ( Properties p ) { } private static boolean isSet ( Properties p , String attribute ) { } private static boolean isTrue ( Properties p , String attribute ) { } private static boolean vetTrue ( Properties p , String attribute ) throws SQLException { } private String getReplicationOperation ( Properties p ) throws StandardException { } private void handleStartReplicationMaster ( TransactionResourceImpl tr , Properties p ) throws SQLException { } private void handleStopReplicationMaster ( TransactionResourceImpl tr , Properties p ) throws SQLException { } private void handleStopReplicationSlave ( Database database , Properties p ) throws SQLException , StandardException { } private void internalStopReplicationSlave ( Database database , Properties p ) throws SQLException , StandardException { } private void handleFailoverMaster ( TransactionResourceImpl tr ) throws SQLException , StandardException { } private void handleFailoverSlave ( Database database ) throws SQLException { } private Properties removePhaseTwoProps ( Properties p ) { } public EmbedConnection ( EmbedConnection inputConnection ) { } private void checkUserCredentials ( boolean creatingDatabase , String dbname , Properties userInfo ) throws SQLException { } private boolean emptyCredential ( String credential ) { } private boolean compareDatabaseNames ( String leftDBName , String rightDBName ) throws SQLException { } private void checkUserIsNotARole ( ) throws SQLException { } private static final int OP_ENCRYPT = 0 ; private static final int OP_SHUTDOWN = 1 ; private static final int OP_HARD_UPGRADE = 2 ; private static final int OP_REPLICATION = 3 ; private static final int OP_DECRYPT = 4 ; private void checkIsDBOwner ( int operation ) throws SQLException { } public int getEngineType ( ) { } public final Statement createStatement ( ) throws SQLException { } public final Statement createStatement ( int resultSetType , int resultSetConcurrency ) throws SQLException { } public final Statement createStatement ( int resultSetType , int resultSetConcurrency , int resultSetHoldability ) throws SQLException { } public final PreparedStatement prepareStatement ( String sql ) throws SQLException { } public final PreparedStatement prepareStatement ( String sql , int resultSetType , int resultSetConcurrency ) throws SQLException { } public final PreparedStatement prepareStatement ( String sql , int resultSetType , int resultSetConcurrency , int resultSetHoldability ) throws SQLException { } public final PreparedStatement prepareStatement ( String sql , int [ ] columnIndexes ) throws SQLException { } public final PreparedStatement prepareStatement ( String sql , String [ ] columnNames ) throws SQLException { } public final PreparedStatement prepareStatement ( String sql , int autoGeneratedKeys ) throws SQLException { } private PreparedStatement prepareStatement ( String sql , int resultSetType , int resultSetConcurrency , int resultSetHoldability , int autoGeneratedKeys , int [ ] columnIndexes , String [ ] columnNames ) throws SQLException { } public final CallableStatement prepareCall ( String sql ) throws SQLException { } public final CallableStatement prepareCall ( String sql , int resultSetType , int resultSetConcurrency ) throws SQLException { } public final CallableStatement prepareCall ( String sql , int resultSetType , int resultSetConcurrency , int resultSetHoldability ) throws SQLException { } public String nativeSQL ( String sql ) throws SQLException { } public void setAutoCommit ( boolean autoCommit ) throws SQLException { } public boolean getAutoCommit ( ) throws SQLException { } public void commit ( ) throws SQLException { } public void rollback ( ) throws SQLException { } public void close ( ) throws SQLException { } public void checkForTransactionInProgress ( ) throws SQLException { } protected void close ( StandardException e ) throws SQLException { } public final boolean isClosed ( ) { } public DatabaseMetaData getMetaData ( ) throws SQLException { } public final int getHoldability ( ) throws SQLException { } public final void setHoldability ( int holdability ) throws SQLException { } public final void setReadOnly ( boolean readOnly ) throws SQLException { } public final boolean isReadOnly ( ) throws SQLException { } public void setCatalog ( String catalog ) throws SQLException { } public String getCatalog ( ) throws SQLException { } public void setTransactionIsolation ( int level ) throws SQLException { } public final int getTransactionIsolation ( ) throws SQLException { } public final synchronized SQLWarning getWarnings ( ) throws SQLException { }

Fix:
return ( ( ( EmbedConnection . vetTrue ( p , DATA_ENCRYPTION ) ) || ( EmbedConnection . vetTrue ( p , DECRYPT_DATABASE ) ) ) || ( EmbedConnection . isSet ( p , NEW_BOOT_PASSWORD ) ) ) || ( EmbedConnection . isSet ( p , NEW_CRYPTO_EXTERNAL_KEY ) ) ;