Buggy code:
public static int getDefaultPort ( String protocol , int port ) { } public int getPortIfSpecified ( ) { } public boolean isProtocolDefaultPort ( ) { } public int getPort ( ) { } public void setDomain ( String value ) { } public String getDomain ( ) { } public void setConnectTimeout ( String value ) { } public int getConnectTimeout ( ) { } public void setResponseTimeout ( String value ) { } public int getResponseTimeout ( ) { } public String getProxyHost ( ) { } public int getProxyPortInt ( ) { } public String getProxyUser ( ) { } public String getProxyPass ( ) { } public void setArguments ( Arguments value ) { } public Arguments getArguments ( ) { } public void setAuthManager ( AuthManager value ) { } public AuthManager getAuthManager ( ) { } public void setHeaderManager ( HeaderManager value ) { } public HeaderManager getHeaderManager ( ) { } public void setCookieManager ( CookieManager value ) { } public CookieManager getCookieManager ( ) { } public void setCacheManager ( CacheManager value ) { } public CacheManager getCacheManager ( ) { } public boolean isImageParser ( ) { } public void setImageParser ( boolean parseImages ) { } public String getEmbeddedUrlRE ( ) { } public void setEmbeddedUrlRE ( String regex ) { } protected HTTPSampleResult errorResult ( Throwable e , HTTPSampleResult res ) { } private static final String HTTP_PREFIX = ( PROTOCOL_HTTP ) + ":////" ; private static final String HTTPS_PREFIX = ( PROTOCOL_HTTPS ) + ":////" ; public java . net . URL getUrl ( ) throws MalformedURLException { } public String getQueryString ( ) { } public String getQueryString ( String contentEncoding ) { } public void parseArguments ( String queryString , String contentEncoding ) { } public void parseArguments ( String queryString ) { } @ Override public String toString ( ) { } public SampleResult sample ( Entry e ) { } public SampleResult sample ( ) { } private HTTPSampleResult fileSample ( URI uri ) throws IOException { } protected abstract HTTPSampleResult sample ( java . net . URL u , String method , boolean areFollowingRedirect , int depth ) { } protected HTTPSampleResult downloadPageResources ( HTTPSampleResult res , HTTPSampleResult container , int frameDepth ) { Iterator < java . net . URL > urls = null ; try { final byte [ ] responseData = res . getResponseData ( ) ; if ( ( responseData . length ) > 0 ) { String parserName = getParserClass ( res ) ; if ( parserName != null ) { final HTMLParser parser = ( ( parserName . length ( ) ) > 0 ) ? HTMLParser . getParser ( parserName ) : HTMLParser . getParser ( ) ; urls = parser . getEmbeddedResourceURLs ( responseData , res . getURL ( ) ) ; } } } catch ( HTMLParseException e ) { res . addSubResult ( errorResult ( e , res ) ) ; res . setSuccessful ( false ) ; } if ( ( urls != null ) && ( urls . hasNext ( ) ) ) { if ( container == null ) { container = new HTTPSampleResult ( res ) ; container . addRawSubResult ( res ) ; } res = container ; String re = getEmbeddedUrlRE ( ) ; Perl5Matcher localMatcher = null ; Pattern pattern = null ; if ( ( re . length ( ) ) > 0 ) { try { pattern = JMeterUtils . getPattern ( re ) ; localMatcher = JMeterUtils . getMatcher ( ) ; } catch ( MalformedCachePatternException e ) { HTTPSamplerBase . log . warn ( ( "Ignoring<seq2seq4repair_space>embedded<seq2seq4repair_space>URL<seq2seq4repair_space>match<seq2seq4repair_space>string:<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) ) ; } } <START_BUG> final ArrayList < HTTPSamplerBase . ASyncSample > liste = new ArrayList < HTTPSamplerBase . ASyncSample > ( ) ; <END_BUG> while ( urls . hasNext ( ) ) { Object binURL = urls . next ( ) ; try { java . net . URL url = ( ( java . net . URL ) ( binURL ) ) ; if ( url == null ) { HTTPSamplerBase . log . warn ( "Null<seq2seq4repair_space>URL<seq2seq4repair_space>detected<seq2seq4repair_space>(should<seq2seq4repair_space>not<seq2seq4repair_space>happen)" ) ; } else { String urlstr = url . toString ( ) ; String urlStrEnc = encodeSpaces ( urlstr ) ; if ( ! ( urlstr . equals ( urlStrEnc ) ) ) { try { url = new java . net . URL ( urlStrEnc ) ; } catch ( MalformedURLException e ) { res . addSubResult ( errorResult ( new Exception ( ( urlStrEnc + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>correct<seq2seq4repair_space>URI" ) ) , res ) ) ; res . setSuccessful ( false ) ; continue ; } } if ( ( ( pattern != null ) && ( localMatcher != null ) ) && ( ! ( localMatcher . matches ( urlStrEnc , pattern ) ) ) ) { continue ; } if ( isConcurrentDwn ( ) ) { liste . add ( new HTTPSamplerBase . ASyncSample ( url , GET , false , ( frameDepth + 1 ) ) ) ; } else { HTTPSampleResult binRes = sample ( url , GET , false , ( frameDepth + 1 ) ) ; res . addSubResult ( binRes ) ; res . setSuccessful ( ( ( res . isSuccessful ( ) ) && ( binRes . isSuccessful ( ) ) ) ) ; } } } catch ( ClassCastException e ) { res . addSubResult ( errorResult ( new Exception ( ( binURL + "<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>correct<seq2seq4repair_space>URI" ) ) , res ) ) ; res . setSuccessful ( false ) ; continue ; } } if ( isConcurrentDwn ( ) ) { int poolSize = HTTPSamplerBase . CONCURRENT_POOL_SIZE ; try { poolSize = Integer . parseInt ( getConcurrentPool ( ) ) ; } catch ( NumberFormatException nfe ) { HTTPSamplerBase . log . warn ( ( "Concurrent<seq2seq4repair_space>download<seq2seq4repair_space>resources<seq2seq4repair_space>selected,<seq2seq4repair_space>" + "but<seq2seq4repair_space>pool<seq2seq4repair_space>size<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>bad.<seq2seq4repair_space>Use<seq2seq4repair_space>default<seq2seq4repair_space>value" ) ) ; }

Fix:
final List < Callable < HTTPSampleResult > > liste = new ArrayList < Callable < HTTPSampleResult > > ( ) ;