aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java10
-rw-r--r--tests/src/org/aspectj/systemtest/ajc160/ajc160.xml5
2 files changed, 11 insertions, 4 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
index 3b4837c81..316fc9a58 100644
--- a/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
+++ b/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006 IBM
+ * Copyright (c) 2007-2008 Contributors
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -12,15 +12,19 @@ package org.aspectj.systemtest.ajc160;
import java.io.File;
-import org.aspectj.testing.XMLBasedAjcTestCase;
import junit.framework.Test;
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
/**
* These are tests for AspectJ1.6.0
*/
public class Ajc160Tests extends org.aspectj.testing.XMLBasedAjcTestCase {
- // AspectH1.6.0rc1
+ // AspectJ1.6.0rc1
+ public void testClassCastOnArrayType_pr180264() {
+ runTest("classcastexception on array type");
+ }
//public void testITDWithArray_pr201748() { runTest("itd with array");}
public void testBadMessage() { runTest("incorrect itd error with generics");}
public void testBadMessage2() { runTest("incorrect itd error with generics - 2");}
diff --git a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml
index bf539f57b..9818da818 100644
--- a/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml
+++ b/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml
@@ -3,8 +3,11 @@
<!-- AspectJ v1.6.0 Tests -->
<suite>
+ <ajc-test dir="bugs160/pr180264" title="classcastexception on array type">
+ <compile options="-warn:+uselessTypeCheck" files="Foo.java,Main.java"/>
+ </ajc-test>
- <ajc-test dir="bugs160/pr201748" title="itd with array">
+ <ajc-test dir="bugs160/pr201748" title="itd with array">
<compile files="Foo.java">
<message kind="error" text="Type mismatch: cannot convert from Factory[] to Factory"/>
</compile>