Buggy code:
if ( isAp != null ) { ap . load ( isAp ) ; for ( Enumeration e = ap . propertyNames ( ) ; e . hasMoreElements ( ) ; ) { String key = ( ( String ) ( e . nextElement ( ) ) ) ; String value = ap . getProperty ( key ) ; if ( ( key . equals ( "usedefaults" ) ) && ( value . equals ( "true" ) ) ) { if ( isApDef != null ) { dp . load ( isApDef ) ; RunTest . mergeProps ( ap , dp ) ; break ; } } } } else { if ( isApDef != null ) ap . load ( isApDef ) ; } if ( ap . isEmpty ( ) ) { if ( ! ( ijProps . isEmpty ( ) ) ) ap = ijProps ; } else { if ( ! ( ijProps . isEmpty ( ) ) ) { for ( Enumeration e = ijProps . propertyNames ( ) ; e . hasMoreElements ( ) ; ) { String key = ( ( String ) ( e . nextElement ( ) ) ) ; String value = ijProps . getProperty ( key ) ; ap . put ( key , value ) ; } } } if ( ! ( ap . isEmpty ( ) ) ) { try { RunTest . appPropFile = new File ( new File ( RunTest . baseDir , testPropName ) . getCanonicalPath ( ) ) ; } catch ( IOException e ) { File f = new File ( RunTest . baseDir , testPropName ) ; FileWriter fw = new FileWriter ( f ) ; fw . close ( ) ; RunTest . appPropFile = new File ( f . getCanonicalPath ( ) ) ; } String conEnc = System . getProperty ( "console.encoding" ) ; String fileEnc = System . getProperty ( "file.encoding" ) ; if ( ( ap . getProperty ( "derby.ui.codeset" ) ) != null ) { RunTest . codeset = ap . getProperty ( "derby.ui.codeset" ) ; } else if ( RunTest . isI18N ) { ap . put ( "derby.ui.codeset" , "UTF-8" ) ; } else if ( ( ( conEnc != null ) && ( fileEnc != null ) ) && ( conEnc . startsWith ( "Cp850" ) ) ) { ap . put ( "derby.ui.codeset" , fileEnc ) ; } if ( RunTest . verbose ) System . out . println ( ( ( ( ( ( "console.encoding:" + conEnc ) + "<seq2seq4repair_space>file.encoding:" ) + fileEnc ) + "<seq2seq4repair_space>derby.ui.codeset:<seq2seq4repair_space>" ) + ( ap . getProperty ( "derby.ui.codeset" ) ) ) ) ; if ( ( System . getProperty ( "ij.dataSource" ) ) != null ) { ap . remove ( "ij.database" ) ; ap . remove ( "ij.protocol" ) ; } bos = new BufferedOutputStream ( new FileOutputStream ( RunTest . appPropFile ) ) ; ap . store ( bos , "App<seq2seq4repair_space>Properties" ) ; bos . close ( ) ; String apppropsjvmflags = ap . getProperty ( "jvmflags" ) ; if ( apppropsjvmflags != null ) { <START_BUG> if ( ( RunTest . jvmflags ) != null ) <END_BUG> RunTest . jvmflags = ( apppropsjvmflags + "^" ) + ( RunTest . jvmflags ) ; else RunTest . jvmflags = apppropsjvmflags ; } if ( ( ( RunTest . jvmflags ) != null ) && ( ( RunTest . jvmflags . length ( ) ) > 0 ) ) { StringTokenizer st = new StringTokenizer ( RunTest . jvmflags , "^" ) ; while ( st . hasMoreTokens ( ) ) { String tmpstr = st . nextToken ( ) ; if ( ( ( tmpstr . indexOf ( "=" ) ) > 0 ) && ( tmpstr . startsWith ( "-D" ) ) ) { String key = tmpstr . substring ( 2 , tmpstr . indexOf ( "=" ) ) ; String value = tmpstr . substring ( ( ( tmpstr . indexOf ( "=" ) ) + 1 ) , tmpstr . length ( ) ) ; ap . put ( key , value ) ; } } } if ( ( ( RunTest . framework . length ( ) ) > 0 ) || ( RunTest . encryption ) ) { try { if ( ( ! ( RunTest . framework . equals ( "" ) ) ) && ( ! ( RunTest . framework . equals ( "embedded" ) ) ) ) RunTest . frameworkProtocol ( ap ) ; else if ( RunTest . encryption ) RunTest . encryptionProtocol ( ap ) ; } catch ( Exception e ) { System . out . println ( ( "Exception:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) ) ; e . printStackTrace ( ) ; } RunTest . appPropFile = new File ( RunTest . baseDir , ( ( RunTest . testBase ) + "_app.properties" ) ) ; try { bos = new BufferedOutputStream ( new FileOutputStream ( RunTest . appPropFile ) ) ; ap . store ( bos , "Test<seq2seq4repair_space>Properties" ) ; bos . close ( ) ; } catch ( IOException ioe ) { System . out . println ( ( "IOException<seq2seq4repair_space>creating<seq2seq4repair_space>prop<seq2seq4repair_space>file:<seq2seq4repair_space>" + ( ioe . getMessage ( ) ) ) ) ; } } } if ( ( ( RunTest . appPropFile ) != null ) && ( RunTest . appPropFile . exists ( ) ) ) { propString = RunTest . appPropFile . getPath ( ) ; RunTest . shutdownurl = ap . getProperty ( "shutdown" ) ; String jdk12test = ap . getProperty ( "jdk12test" ) ; if ( jdk12test != null ) { if ( jdk12test . toLowerCase ( ) . equals ( "true" ) ) { RunTest . isjdk12test = true ; if ( RunTest . jvmName . equals ( "currentjvm" ) ) { RunTest . skiptest = true ; RunTest . addSkiptestReason ( ( "Test<seq2seq4repair_space>skipped:<seq2seq4repair_space>test<seq2seq4repair_space>needs<seq2seq4repair_space>jdk12,<seq2seq4repair_space>jvm<seq2seq4repair_space>is<seq2seq4repair_space>reporting<seq2seq4repair_space>currentjvm;<seq2seq4repair_space>skipping<seq2seq4repair_space>test:<seq2seq4repair_space>"

Fix:
if ( ( ( RunTest . jvmflags ) != null ) && ( ( RunTest . jvmflags . length ( ) ) > 0 ) )