aboutsummaryrefslogtreecommitdiff
path: root/test/test/ContextEscapeDetection.java
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-05-12 12:43:59 +0200
committerSamuel Gruetter <samuel.gruetter@epfl.ch>2014-05-20 13:39:23 +0200
commit2f7706c2c4c335a3c7fddf5b6350c473eb7a4431 (patch)
treeea565fcc64a6df057fd00dcbadc9d1d2c55dee43 /test/test/ContextEscapeDetection.java
parent394b645dd2d44ff68597527c6c690c73653f1bcb (diff)
downloaddotty-2f7706c2c4c335a3c7fddf5b6350c473eb7a4431.tar.gz
dotty-2f7706c2c4c335a3c7fddf5b6350c473eb7a4431.tar.bz2
dotty-2f7706c2c4c335a3c7fddf5b6350c473eb7a4431.zip
Make java file compile under 1.6.
I still have 1.6 installed. So the two simple fixes are necessary to make my build pass for now.
Diffstat (limited to 'test/test/ContextEscapeDetection.java')
-rw-r--r--test/test/ContextEscapeDetection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test/ContextEscapeDetection.java b/test/test/ContextEscapeDetection.java
index 233630eb2..8852c9fe9 100644
--- a/test/test/ContextEscapeDetection.java
+++ b/test/test/ContextEscapeDetection.java
@@ -19,7 +19,7 @@ public abstract class ContextEscapeDetection {
public final String testName;
}
- public static final List<TestContext> contexts = new LinkedList<>();
+ public static final List<TestContext> contexts = new LinkedList<TestContext>();
public abstract Contexts.Context getCtx();
@@ -27,7 +27,7 @@ public abstract class ContextEscapeDetection {
@Before
public synchronized void stealContext() {
- contexts.add(new TestContext(new WeakReference<>(this.getCtx()), this.getClass().getName()));
+ contexts.add(new TestContext(new WeakReference<Contexts.Context>(this.getCtx()), this.getClass().getName()));
}
@After