aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testsrc
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2012-08-17 14:31:53 -0700
committerAndy Clement <andrew.clement@gmail.com>2012-08-17 14:31:53 -0700
commitd0c81b74d7c2254cea2b8820a1cabda158978e83 (patch)
tree72a7116e3266c8949543d2657e28466b15305b08 /org.aspectj.ajdt.core/testsrc
parent993cef1c34849b5a3c92f5ddf4839ccf9047da77 (diff)
downloadaspectj-d0c81b74d7c2254cea2b8820a1cabda158978e83.tar.gz
aspectj-d0c81b74d7c2254cea2b8820a1cabda158978e83.zip
73507 - it'd fields on interfaces no longer get mangled names by default
Diffstat (limited to 'org.aspectj.ajdt.core/testsrc')
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CommandTestCase.java4
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CompileAndRunTestCase.java8
2 files changed, 11 insertions, 1 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CommandTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CommandTestCase.java
index 65d5e9e3e..a586f8c7d 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CommandTestCase.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CommandTestCase.java
@@ -56,6 +56,10 @@ public abstract class CommandTestCase extends TestCase {
protected void runMain(String className) {
TestUtil.runMain(getSandboxName(), className);
}
+
+ public void checkCompile(String source, String[] extraArgs, int[] expectedErrors) {
+ checkCompile(source,extraArgs,expectedErrors,getSandboxName());
+ }
public static void checkCompile(String source, String[] extraArgs, int[] expectedErrors, String sandboxName) {
List<String> args = new ArrayList<String>();
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CompileAndRunTestCase.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CompileAndRunTestCase.java
index 2838763bf..644b92e98 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CompileAndRunTestCase.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/CompileAndRunTestCase.java
@@ -27,9 +27,15 @@ public class CompileAndRunTestCase extends CommandTestCase {
}
public void testInterType() throws IOException {
- checkCompile("src1/InterType.java", NO_ERRORS);
+ checkCompile("src1/InterType.java",new String[]{"-Xset:itdVersion=1"}, NO_ERRORS);
runMain("InterType");
}
+
+ // new style itds where itdfs on interfaces are not mangled
+ public void testInterType2() throws IOException {
+ checkCompile("src1/InterType2.java", NO_ERRORS);
+ runMain("InterType2");
+ }
public void testInterTypeMethods() throws IOException {
checkCompile("src1/InterTypeMethods.java", NO_ERRORS);