aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-10-29 20:36:27 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-10-29 20:36:27 +0100
commitf5819f11f4f924adaf012ac927c798191e112848 (patch)
tree71e17ab1e5b94223c57668f02c143ebb3235e1cb /src/eclipseAgent/lombok/eclipse/agent
parent980c913fbca3a32542b5e3434a13bf176ca697f2 (diff)
downloadlombok-f5819f11f4f924adaf012ac927c798191e112848.tar.gz
lombok-f5819f11f4f924adaf012ac927c798191e112848.tar.bz2
lombok-f5819f11f4f924adaf012ac927c798191e112848.zip
[shadowloader] simple bugfix; shadowloader wasn’t working in luna.
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java
index c9b8ca85..0d21c212 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java
@@ -22,10 +22,10 @@ public class EclipseLoaderPatcher {
public static Class<?> overrideLoadResult(ClassLoader original, String name, boolean resolve) throws ClassNotFoundException {
try {
- Field shadowLoaderField = original.getClass().getDeclaredField("lombok$shadowLoader");
+ Field shadowLoaderField = original.getClass().getField("lombok$shadowLoader");
ClassLoader shadowLoader = (ClassLoader) shadowLoaderField.get(original);
if (shadowLoader == null) {
- String jarLoc = (String) original.getClass().getDeclaredField("lombok$location").get(null);
+ String jarLoc = (String) original.getClass().getField("lombok$location").get(null);
JarFile jf = new JarFile(jarLoc);
InputStream in = null;
try {