anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: micronaut-projects/micronaut-core
Issue: HTTP client pool caches dns lookup forever

When the DefaultHttpClient creates it's poolMap instance a DNS lookup is made and stored in the bootstrap instance:
`                        Bootstrap newBootstrap = bootstrap.clone(group);
                        newBootstrap.remoteAddress(key.getRemoteAddress());
`
The remoteAddress is never updated, which means that if the ip is recycled (very common for AWS hosted services), the pool will continue to try to create connections to the original ip.

### Task List
- [x] Steps to reproduce provided
- [x] Stacktrace (if present) provided
- [x] Example that reproduces the problem uploaded to Github
- [x] Full description of the issue provided (see below)

### Steps to Reproduce
https://github.com/luckyswede/micronaut-dnstest

### Expected Behaviour
When new connections are created a new DNS lookup should take place

### Actual Behaviour
The original DNS lookup result is reused

### Environment Information

- **Operating System**: All
- **Micronaut Version:** 1.2.2
- **JDK Version:** 11

### Example Application
https://github.com/luckyswede/micronaut-dnstest


Changed files:
http-client/src/main/java/io/micronaut/http/client/DefaultHttpClient.java

diff --git a/http-client/src/main/java/io/micronaut/http/client/DefaultHttpClient.java b/http-client/src/main/java/io/micronaut/http/client/DefaultHttpClient.java
index f46d23daad..760d142124 100644
--- a/http-client/src/main/java/io/micronaut/http/client/DefaultHttpClient.java
+++ b/http-client/src/main/java/io/micronaut/http/client/DefaultHttpClient.java
@@ -260,7 +260,6 @@ public class DefaultHttpClient implements RxWebSocketClient, RxHttpClient, RxStr
                         Bootstrap newBootstrap = bootstrap.clone(group);
                         newBootstrap.remoteAddress(key.getRemoteAddress());
 
-
                         AbstractChannelPoolHandler channelPoolHandler = newPoolHandler(key);
                         final Long acquireTimeoutMillis = connectionPoolConfiguration.getAcquireTimeout().map(Duration::toMillis).orElse(-1L);
                         return new FixedChannelPool(
@@ -281,6 +280,7 @@ public class DefaultHttpClient implements RxWebSocketClient, RxHttpClient, RxStr
                     protected ChannelPool newPool(RequestKey key) {
                         Bootstrap newBootstrap = bootstrap.clone(group);
                         newBootstrap.remoteAddress(key.getRemoteAddress());
+
                         AbstractChannelPoolHandler channelPoolHandler = newPoolHandler(key);
                         return new SimpleChannelPool(
                                 newBootstrap,
@@ -2303,7 +2303,7 @@ public class DefaultHttpClient implements RxWebSocketClient, RxHttpClient, RxStr
         }
 
         public InetSocketAddress getRemoteAddress() {
-            return new InetSocketAddress(host, port);
+            return InetSocketAddress.createUnresolved(host, port);
         }
 
         public boolean isSecure() {
Repository: micronaut-projects/micronaut-core
Issue: AmazonComputeInstanceMetadataResolver has an invalid path

While connecting the application to a consul running in a different ec2 instance (same VPC) the following error occurs in the logs

`[35mi.m.d.c.a.AmazonComputeInstanceMetadataResolver[0;39m - error getting public host name from:http://169.254.169.254//latest/meta-data/publicHostname
java.io.FileNotFoundException: http://169.254.169.254//latest/meta-data/public-hostname`

double // is included in path.


Changed files:
runtime/src/main/java/io/micronaut/discovery/cloud/aws/AmazonMetadataConfiguration.java

diff --git a/runtime/src/main/java/io/micronaut/discovery/cloud/aws/AmazonMetadataConfiguration.java b/runtime/src/main/java/io/micronaut/discovery/cloud/aws/AmazonMetadataConfiguration.java
index 8fb8db8f8d..779a3499e3 100644
--- a/runtime/src/main/java/io/micronaut/discovery/cloud/aws/AmazonMetadataConfiguration.java
+++ b/runtime/src/main/java/io/micronaut/discovery/cloud/aws/AmazonMetadataConfiguration.java
@@ -46,7 +46,7 @@ public class AmazonMetadataConfiguration implements Toggleable {
      * The default url value.
      */
     @SuppressWarnings("WeakerAccess")
-    public static final String DEFAULT_URL = "http://169.254.169.254/";
+    public static final String DEFAULT_URL = "http://169.254.169.254";
 
     private String url = DEFAULT_URL;
     private String metadataUrl;
Repository: raphw/byte-buddy
Issue: JavaConstant.Dynamic.ofInvocation() doesn't seem to permit interface default methods as bootstrap methods

Using JDK 15, if I try to use `List#of(E[])` (a `static` interface method declared on `List` itself) as a bootstrap method, I get:
```
java.lang.IncompatibleClassChangeError: Inconsistent constant pool data in classfile for class java/util/List. Method 'java.util.List of(java.lang.Object[])' at index 19 is CONSTANT_MethodRef and should be CONSTANT_InterfaceMethodRef
	at java.base/java.lang.invoke.MethodHandleNatives.copyOutBootstrapArguments(Native Method)
	at java.base/java.lang.invoke.BootstrapMethodInvoker$VM_BSCI.copyConstants(BootstrapMethodInvoker.java:402)
	at java.base/java.lang.invoke.BootstrapMethodInvoker$VM_BSCI.fillCache(BootstrapMethodInvoker.java:377)
	at java.base/java.lang.invoke.AbstractConstantGroup$WithCache.get(AbstractConstantGroup.java:278)
	at java.base/java.lang.invoke.BootstrapMethodInvoker$PullAdapter.pullFromBootstrapMethod(BootstrapMethodInvoker.java:509)
	at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:117)
	at java.base/java.lang.invoke.ConstantBootstraps.makeConstant(ConstantBootstraps.java:72)
	at java.base/java.lang.invoke.MethodHandleNatives.linkDynamicConstantImpl(MethodHandleNatives.java:327)
	at java.base/java.lang.invoke.MethodHandleNatives.linkDynamicConstant(MethodHandleNatives.java:319)
```
I've edited this bug description to remove what I thought was the problem.  Now I just don't know what the problem is at all.  😄 

Changed files:
byte-buddy-dep/src/main/java/net/bytebuddy/utility/JavaConstant.java

diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/utility/JavaConstant.java b/byte-buddy-dep/src/main/java/net/bytebuddy/utility/JavaConstant.java
index 51ad4443c8..85769d7735 100644
--- a/byte-buddy-dep/src/main/java/net/bytebuddy/utility/JavaConstant.java
+++ b/byte-buddy-dep/src/main/java/net/bytebuddy/utility/JavaConstant.java
@@ -1610,7 +1610,7 @@ public interface JavaConstant {
                     methodDescription.getDeclaringType().getInternalName(),
                     methodDescription.getInternalName(),
                     methodDescription.getDescriptor(),
-                    false));
+                    methodDescription.getDeclaringType().isInterface()));
             Iterator<TypeDescription> iterator = (methodDescription.isStatic() || methodDescription.isConstructor()
                     ? methodDescription.getParameters().asTypeList().asErasures()
                     : CompoundList.of(methodDescription.getDeclaringType(), methodDescription.getParameters().asTypeList().asErasures())).iterator();
Repository: reactor/reactor-core
Issue: Self Suppression IllegalArgumentException when 'onErrorResume' propagates existing exception

Sometime conditional logic is required to determine if an error signal should be handled or propagated.  The easiest and most flexible way to do this is via the use of something like this:

```
flux.onErrorResume(e -> {
   if(something){
      return just(someValue);
   else {
      throw propagate(e);
   });
```

In this above example the else clause propagates the existing exception.  This fails though due to FluxResume attempting to do `e.addSuppressed(e)` [here](https://github.com/reactor/reactor-core/blob/master/src/main/java/reactor/core/publisher/FluxResume.java#L92)


Changed files:
src/test/java/reactor/core/publisher/FluxResumeTest.java, src/main/java/reactor/core/publisher/FluxResume.java

diff --git a/src/main/java/reactor/core/publisher/FluxResume.java b/src/main/java/reactor/core/publisher/FluxResume.java
index 17120d9d6..cdd99d31f 100644
--- a/src/main/java/reactor/core/publisher/FluxResume.java
+++ b/src/main/java/reactor/core/publisher/FluxResume.java
@@ -89,7 +89,9 @@ final class FluxResume<T> extends FluxSource<T, T> {
 					p = nextFactory.apply(t);
 				} catch (Throwable e) {
 					Throwable _e = Operators.onOperatorError(e);
-					_e.addSuppressed(t);
+					if(t != _e) {
+					  _e.addSuppressed(t);
+					}
 					subscriber.onError(_e);
 					return;
 				}
diff --git a/src/test/java/reactor/core/publisher/FluxResumeTest.java b/src/test/java/reactor/core/publisher/FluxResumeTest.java
index 58977f228..016c00fe5 100644
--- a/src/test/java/reactor/core/publisher/FluxResumeTest.java
+++ b/src/test/java/reactor/core/publisher/FluxResumeTest.java
@@ -18,6 +18,7 @@ package reactor.core.publisher;
 import org.junit.Assert;
 import org.junit.Test;
 import reactor.test.subscriber.AssertSubscriber;
+import reactor.core.Exceptions;
 
 public class FluxResumeTest {
 /*
@@ -222,4 +223,18 @@ public class FluxResumeTest {
 		  .assertError(NullPointerException.class);
 	}
 
+	@Test
+	public void errorPropagated() {
+		AssertSubscriber<Integer> ts = AssertSubscriber.create(0);
+
+		Exception exception = new NullPointerException("forced failure");
+		Flux.<Integer>error(exception).onErrorResumeWith(v -> {
+		  throw Exceptions.propagate(v);
+		}).subscribe(ts);
+
+		ts.assertNoValues()
+		  .assertNotComplete()
+		  .assertErrorWith(e -> Assert.assertSame(exception, e));
+	}
+
 }
Repository: muzei/muzei
Issue: Bad image URL crashes Muzei

I'm writing an extension, which pulls the image URLs from a web site.  When the URL is formatted incorrectly, Muzei crashes.  It should be made more error tolerant.  Most of the time this shouldn't be a problem, but if the web site designer changes the site, the code retrieving the image URLs could be bad/incorrect until the extension can be updated.  

To duplicate, publish artwork using a URI like "www.example.com".

Here is the stack trace:
03-06 22:48:08.053   20350-5944/? E/AndroidRuntime﹕ FATAL EXCEPTION: IntentService[TaskQueueService]
    Process: net.nurik.roman.muzei, PID: 20350
    java.lang.NullPointerException
            at com.google.android.apps.muzei.util.IOUtil.readFullyWriteToOutputStream(IOUtil.java:210)
            at com.google.android.apps.muzei.util.IOUtil.readFullyWriteToFile(IOUtil.java:202)
            at com.google.android.apps.muzei.ArtworkCache.maybeDownloadCurrentArtworkSync(ArtworkCache.java:122)
            at com.google.android.apps.muzei.TaskQueueService.onHandleIntent(TaskQueueService.java:56)
            at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.os.HandlerThread.run(HandlerThread.java:61)


Changed files:
main/src/main/java/com/google/android/apps/muzei/util/IOUtil.java

diff --git a/main/src/main/java/com/google/android/apps/muzei/util/IOUtil.java b/main/src/main/java/com/google/android/apps/muzei/util/IOUtil.java
index efffc15e..225ae342 100644
--- a/main/src/main/java/com/google/android/apps/muzei/util/IOUtil.java
+++ b/main/src/main/java/com/google/android/apps/muzei/util/IOUtil.java
@@ -58,6 +58,10 @@ public class IOUtil {
         }
 
         String scheme = uri.getScheme();
+        if (scheme == null) {
+            throw new OpenUriException(false, new IOException("Uri had no scheme"));
+        }
+
         InputStream in = null;
         if ("content".equals(scheme)) {
             try {
@@ -118,7 +122,6 @@ public class IOUtil {
 
             } catch (MalformedURLException e) {
                 throw new OpenUriException(false, e);
-
             } catch (IOException e) {
                 if (conn != null && responseCode > 0) {
                     throw new OpenUriException(