Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2010-04-24 18:36:47 -0400
committerStephan Herrmann2010-04-24 18:36:47 -0400
commite5144c6b1f01dc0906d4aa123a4cda608c6b817f (patch)
tree15a68981a369343f89dd53a57b68dacc2ed217ef /org.eclipse.jdt.core.tests.compiler
parent5bae42844056473de4fd05de3e5135dc1770bb4d (diff)
downloadorg.eclipse.objectteams-e5144c6b1f01dc0906d4aa123a4cda608c6b817f.tar.gz
org.eclipse.objectteams-e5144c6b1f01dc0906d4aa123a4cda608c6b817f.tar.xz
org.eclipse.objectteams-e5144c6b1f01dc0906d4aa123a4cda608c6b817f.zip
Avoid error logging re unconfigured Dependencies in org.eclipse.jdt.core.tests.compiler.regression.EnclosingMethodAttributeTest.
Diffstat (limited to 'org.eclipse.jdt.core.tests.compiler')
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnclosingMethodAttributeTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnclosingMethodAttributeTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnclosingMethodAttributeTest.java
index a869bf152..af0fdffda 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnclosingMethodAttributeTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/EnclosingMethodAttributeTest.java
@@ -22,6 +22,7 @@ import org.eclipse.jdt.internal.compiler.Compiler;
import org.eclipse.jdt.internal.compiler.env.INameEnvironment;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding;
+import org.eclipse.objectteams.otdt.internal.core.compiler.control.Dependencies;
public class EnclosingMethodAttributeTest extends AbstractComparableTest {
public EnclosingMethodAttributeTest(String name) {
@@ -250,7 +251,16 @@ public class EnclosingMethodAttributeTest extends AbstractComparableTest {
compilerOptions,
requestor,
getProblemFactory());
+//{ObjectTeams: avoid exceptions:
+ Dependencies.setup(batchCompiler, batchCompiler.parser, batchCompiler.lookupEnvironment, true, false);
+ try {
+// orig:
ReferenceBinding binaryType = batchCompiler.lookupEnvironment.askForType(new char[][] {new char[0], "X$1".toCharArray()});
assertNotNull("Should not be null", binaryType);
+// :giro
+ } finally {
+ Dependencies.release(batchCompiler);
+ }
+// SH}
}
}

Back to the top