diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-03-31 00:32:21 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2015-03-31 00:32:21 +0200 |
commit | d831aabf6cf04a793792fec712912e31d537d4c9 (patch) | |
tree | 6a01c7cbb91b76656ebb7ecf0fbe3023784e2e30 /src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java | |
parent | fa38498f793ae1af8a916a51de01735f727bc7fc (diff) | |
download | lombok-d831aabf6cf04a793792fec712912e31d537d4c9.tar.gz lombok-d831aabf6cf04a793792fec712912e31d537d4c9.tar.bz2 lombok-d831aabf6cf04a793792fec712912e31d537d4c9.zip |
We are getting some reports that might indicate there’s a race condition in loading shadowclassloader. This should fix that.
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java index 8616e9bc..c137cb46 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java +++ b/src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java @@ -44,7 +44,7 @@ public class EclipseLoaderPatcher { .transplant() .request(StackRequest.THIS, StackRequest.PARAM1, StackRequest.PARAM2).build()); - sm.addScript(ScriptBuilder.addField().setPublic() + sm.addScript(ScriptBuilder.addField().setPublic().setVolatile() .fieldType("Ljava/lang/ClassLoader;") .fieldName("lombok$shadowLoader") .targetClass("org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader") |