Buggy code:
public class CookieManager extends ConfigTestElement implements Serializable , TestListener { private static final long serialVersionUID = 233L ; private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String CLEAR = "CookieManager.clearEachIteration" ; private static final String COOKIES = "CookieManager.cookies" ; private static final String POLICY = "CookieManager.policy" ; private static final String TAB = "\t" ; private static final boolean DELETE_NULL_COOKIES = JMeterUtils . getPropDefault ( "CookieManager.delete_null_cookies" , true ) ; private static final boolean ALLOW_VARIABLE_COOKIES = JMeterUtils . getPropDefault ( "CookieManager.allow_variable_cookies" , true ) ; private static final String COOKIE_NAME_PREFIX = JMeterUtils . getPropDefault ( "CookieManager.name.prefix" , "COOKIE_" ) . trim ( ) ; private static final boolean SAVE_COOKIES = JMeterUtils . getPropDefault ( "CookieManager.save.cookies" , false ) ; private static final boolean CHECK_COOKIES = JMeterUtils . getPropDefault ( "CookieManager.check.cookies" , true ) ; private transient CookieSpec cookieSpec ; private transient CollectionProperty initialCookies ; public static final String DEFAULT_POLICY = CookiePolicy . BROWSER_COMPATIBILITY ; public CookieManager ( ) { } @ Override public Object clone ( ) { } public String getPolicy ( ) { } public void setCookiePolicy ( String policy ) { } public CollectionProperty getCookies ( ) { } public int getCookieCount ( ) { } public boolean getClearEachIteration ( ) { } public void setClearEachIteration ( boolean clear ) { } public void save ( String authFile ) throws IOException { } public void addFile ( String cookieFile ) throws IOException { File file = new File ( cookieFile ) ; if ( ! ( file . isAbsolute ( ) ) ) { file = new File ( ( ( ( System . getProperty ( "user.dir" ) ) + ( File . separator ) ) + cookieFile ) ) ; } BufferedReader reader = null ; if ( file . canRead ( ) ) { reader = new BufferedReader ( new FileReader ( file ) ) ; } else { throw new IOException ( "The<seq2seq4repair_space>file<seq2seq4repair_space>you<seq2seq4repair_space>specified<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>read." ) ; } String line ; try { final CollectionProperty cookies = getCookies ( ) ; while ( ( line = reader . readLine ( ) ) != null ) { try { if ( ( line . startsWith ( "#" ) ) || ( ( line . trim ( ) . length ( ) ) == 0 ) ) { continue ; } String [ ] st = JOrphanUtils . split ( line , CookieManager . TAB , false ) ; final int _domain = 0 ; final int _path = 2 ; final int _secure = 3 ; final int _expires = 4 ; final int _name = 5 ; final int _value = 6 ; final int _fields = 7 ; if ( ( st . length ) != _fields ) { throw new IOException ( ( ( ( ( ( "Expected<seq2seq4repair_space>" + _fields ) + "<seq2seq4repair_space>fields,<seq2seq4repair_space>found<seq2seq4repair_space>" ) + ( st . length ) ) + "<seq2seq4repair_space>in<seq2seq4repair_space>" ) + line ) ) ; } if ( ( st [ _path ] . length ( ) ) == 0 ) { st [ _path ] = "//" ; } boolean secure = Boolean . valueOf ( st [ _secure ] ) . booleanValue ( ) ; <START_BUG> long expires = new Long ( st [ _expires ] ) . longValue ( ) ; <END_BUG> if ( expires == ( Long . MAX_VALUE ) ) { expires = 0 ; } Cookie cookie = new Cookie ( st [ _name ] , st [ _value ] , st [ _domain ] , st [ _path ] , secure , expires ) ; cookies . addItem ( cookie ) ; } catch ( NumberFormatException e ) { throw new IOException ( ( ( ( "Error<seq2seq4repair_space>parsing<seq2seq4repair_space>cookie<seq2seq4repair_space>line\n\t\'" + line ) + "\'\n\t" ) + e ) ) ; } } } finally { reader . close ( ) ; } } private String cookieToString ( Cookie c ) { } @ Override public void recoverRunningVersion ( ) { } @ Override public void setRunningVersion ( boolean running ) { } public void add ( Cookie c ) { } @ Override public void clear ( ) { } private void clearCookies ( ) { } public void remove ( int index ) { } public Cookie get ( int i ) { } private org . apache . commons . httpclient . Cookie makeCookie ( Cookie jmc ) { } public org . apache . commons . httpclient . Cookie [ ] getCookiesForUrl ( URL url ) { } public String getCookieHeaderForURL ( URL url ) { } public void addCookieFromHeader ( String cookieHeader , URL url ) { } private boolean match ( Cookie a , Cookie b ) { } private void removeMatchingCookies ( Cookie newCookie ) { } public void testStarted ( ) { } public void testEnded ( ) { } public void testStarted ( String host ) { } public void testEnded ( String host ) { } public void testIterationStart ( LoopIterationEvent event ) { } public static String [ ] getCookieSpecs ( ) { } }

Fix:
long expires = Long . valueOf ( st [ _expires ] ) . longValue ( ) ;