From d831aabf6cf04a793792fec712912e31d537d4c9 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Tue, 31 Mar 2015 00:32:21 +0200 Subject: We are getting some reports that might indicate there’s a race condition in loading shadowclassloader. This should fix that. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/eclipseAgent/lombok/eclipse/agent/EclipseLoaderPatcher.java') 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") -- cgit