diff options
author | aclement <aclement> | 2008-03-16 18:59:45 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-03-16 18:59:45 +0000 |
commit | 4297286eee93de4e6589855c776a97f4dc72c044 (patch) | |
tree | 8feac77eff7282d989030c753af2ece14032c572 /tests/src | |
parent | 7b1b5b16539747b6d21762f554479f44d2f8e0fc (diff) | |
download | aspectj-4297286eee93de4e6589855c776a97f4dc72c044.tar.gz aspectj-4297286eee93de4e6589855c776a97f4dc72c044.zip |
180264 - testcase
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java | 10 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc160/ajc160.xml | 5 |
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> |