Buggy code:
public class CookieManager extends ConfigTestElement implements Serializable , PerThreadClonable { private static transient Logger log = Hierarchy . getDefaultHierarchy ( ) . getLoggerFor ( "jmeter.protocol.http" ) ; public static final String COOKIES = "CookieManager.cookies" ; private static SimpleDateFormat dateFormat = new SimpleDateFormat ( "EEEE,<seq2seq4repair_space>dd-MMM-yyyy<seq2seq4repair_space>HH:mm:ss<seq2seq4repair_space>zzz" ) ; private static List addableList = new LinkedList ( ) ; public CookieManager ( ) { } public List getCookies ( ) { } public int getCookieCount ( ) { } public Cookie getCookie ( int row ) { } public void save ( String authFile ) throws IOException { } public void addFile ( String cookieFile ) throws IOException { } public void add ( Cookie c ) { } public void add ( ) { } public void remove ( int index ) { } public int size ( ) { } public Cookie get ( int i ) { } public String convertLongToDateFormatStr ( long dateLong ) { } public long convertDateFormatStrToLong ( String dateStr ) { } public String getCookieHeaderForURL ( URL url ) { } public void addCookieFromHeader ( String cookieHeader , URL url ) { StringTokenizer st = new StringTokenizer ( cookieHeader , ";" ) ; String nvp ; nvp = st . nextToken ( ) ; int index = nvp . indexOf ( "=" ) ; String name = nvp . substring ( 0 , index ) ; String value = nvp . substring ( ( index + 1 ) ) ; String domain = url . getHost ( ) ; <START_BUG> String path = url . getFile ( ) ; <END_BUG> Cookie newCookie = new Cookie ( name , value , domain , path , false , ( ( System . currentTimeMillis ( ) ) + ( ( ( 1000 * 60 ) * 60 ) * 24 ) ) ) ; while ( st . hasMoreTokens ( ) ) { nvp = st . nextToken ( ) ; nvp = nvp . trim ( ) ; index = nvp . indexOf ( "=" ) ; if ( index == ( - 1 ) ) { index = nvp . length ( ) ; } String key = nvp . substring ( 0 , index ) ; if ( key . equalsIgnoreCase ( "expires" ) ) { try { String expires = nvp . substring ( ( index + 1 ) ) ; Date date = CookieManager . dateFormat . parse ( expires ) ; newCookie . setExpires ( date . getTime ( ) ) ; } catch ( ParseException pe ) { } } else if ( key . equalsIgnoreCase ( "domain" ) ) { newCookie . setDomain ( nvp . substring ( ( index + 1 ) ) ) ; } else if ( key . equalsIgnoreCase ( "path" ) ) { newCookie . setPath ( nvp . substring ( ( index + 1 ) ) ) ; } else if ( key . equalsIgnoreCase ( "secure" ) ) { newCookie . setSecure ( true ) ; } } Vector removeIndices = new Vector ( ) ; for ( int i = ( getCookies ( ) . size ( ) ) - 1 ; i >= 0 ; i -- ) { Cookie cookie = ( ( Cookie ) ( getCookies ( ) . get ( i ) ) ) ; if ( cookie == null ) continue ; if ( ( ( cookie . getPath ( ) . equals ( newCookie . getPath ( ) ) ) && ( cookie . getDomain ( ) . equals ( newCookie . getDomain ( ) ) ) ) && ( cookie . getName ( ) . equals ( newCookie . getName ( ) ) ) ) { removeIndices . addElement ( new Integer ( i ) ) ; } } for ( Enumeration e = removeIndices . elements ( ) ; e . hasMoreElements ( ) ; ) { index = ( ( Integer ) ( e . nextElement ( ) ) ) . intValue ( ) ; getCookies ( ) . remove ( index ) ; } if ( ( newCookie . getExpires ( ) ) >= ( System . currentTimeMillis ( ) ) ) { getCookies ( ) . add ( newCookie ) ; } } public void removeCookieNamed ( String name ) { } public String [ ] split ( String splittee , String splitChar , String def ) { } public String getClassLabel ( ) { } }

Fix:
String path = "//" ;