diff --git a/src/etc/testcases/taskdefs/rmic/rmic.xml b/src/etc/testcases/taskdefs/rmic/rmic.xml index 634229a06..746ad9813 100644 --- a/src/etc/testcases/taskdefs/rmic/rmic.xml +++ b/src/etc/testcases/taskdefs/rmic/rmic.xml @@ -108,6 +108,12 @@ + + + + + + @@ -243,4 +249,18 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java b/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java index 1fdf2293e..d8da7d405 100644 --- a/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java +++ b/src/testcases/org/apache/tools/ant/taskdefs/RmicAdvancedTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2004-2005 The Apache Software Foundation + * Copyright 2004-2006 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -194,6 +194,24 @@ public class RmicAdvancedTest extends BuildFileTest { executeTarget("testVersionCompat"); } + /** + * test that passes -Xnew to sun's rmic. + * + * @throws Exception + */ + public void testXnew() throws Exception { + executeTarget("testXnew"); + } + + /** + * test that passes -Xnew to sun's rmic running in a different VM. + * + * @throws Exception + */ + public void testXnewForked() throws Exception { + executeTarget("testXnewForked"); + } + /** * this little bunny verifies that we can load stuff, and that * a failure to execute is turned into a fault