From c6aac87508a99b0e5514da687abdb1ba246f3839 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= <l.weinan@gmail.com>
Date: Thu, 12 Mar 2020 12:13:17 +0800
Subject: [PATCH] update

---
 .../java/org/jboss/resteasy/core/StringParameterInjector.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/StringParameterInjector.java b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/StringParameterInjector.java
index 537ae0d..fbfd5d4 100755
--- a/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/StringParameterInjector.java
+++ b/jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/StringParameterInjector.java
@@ -373,9 +373,9 @@ public class StringParameterInjector
 
    private String _encode(String strVal) {
       try {
-         return URLEncoder.encode(strVal, StandardCharsets.UTF_8.toString());
+         return URLEncoder.encode(strVal, StandardCharsets.UTF_8.name());
       } catch (UnsupportedEncodingException e) {
-	 return e.getMessage();
+        throw new RuntimeException(e);
       }
    }
 
-- 
2.23.0

