diff options
author | Thomas Kalmár <puma.rsch@googlemail.com> | 2020-04-11 14:42:11 +0200 |
---|---|---|
committer | Thomas Kalmár <puma.rsch@googlemail.com> | 2020-04-11 15:25:08 +0200 |
commit | 2566345e6108037c63383ec0287b773989d9ed33 (patch) | |
tree | ab9d0c2cb2ee6de6cc4a8fb0d85916f0fce40979 /src/launch | |
parent | 94440a8bd73f176637a9890dc10df67d26615674 (diff) | |
download | lombok-2566345e6108037c63383ec0287b773989d9ed33.tar.gz lombok-2566345e6108037c63383ec0287b773989d9ed33.tar.bz2 lombok-2566345e6108037c63383ec0287b773989d9ed33.zip |
Encode + sign properly. Fixes #1539
Diffstat (limited to 'src/launch')
-rw-r--r-- | src/launch/lombok/launch/ShadowClassLoader.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/launch/lombok/launch/ShadowClassLoader.java b/src/launch/lombok/launch/ShadowClassLoader.java index 30ca6e97..da377ae4 100644 --- a/src/launch/lombok/launch/ShadowClassLoader.java +++ b/src/launch/lombok/launch/ShadowClassLoader.java @@ -321,8 +321,9 @@ class ShadowClassLoader extends ClassLoader { } private static String urlDecode(String in) { + final String plusFixed = in.replaceAll("\\+", "%2B"); try { - return URLDecoder.decode(in, "UTF-8"); + return URLDecoder.decode(plusFixed, "UTF-8"); } catch (UnsupportedEncodingException e) { throw new InternalError("UTF-8 not supported"); } |