diff options
author | aclement <aclement> | 2004-05-14 12:51:52 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-05-14 12:51:52 +0000 |
commit | 9ebfc84930fde3f56a0166a5abb671029d457ea4 (patch) | |
tree | caecc64856e88fcc1beaaeddd1229e37a621343e /org.aspectj.ajdt.core/testsrc | |
parent | 7051338a0064c3a43223e26e3ace8b64258200d7 (diff) | |
download | aspectj-9ebfc84930fde3f56a0166a5abb671029d457ea4.tar.gz aspectj-9ebfc84930fde3f56a0166a5abb671029d457ea4.zip |
Fix and tests for Bugzilla Bug 62227
Load Time Weaving aborts on any kind of warning (declare/xlint)
Diffstat (limited to 'org.aspectj.ajdt.core/testsrc')
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java index 98c9ea984..40e81eeda 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/compiler/batch/BcweaverJarMaker.java @@ -232,6 +232,30 @@ public class BcweaverJarMaker { CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); /* + * Declare warning advice + */ + args = new ArrayList(); + args.add("-classpath"); + args.add("../lib/test/aspectjrt.jar;../lib/test/testing-client.jar;../weaver/testdata/ltw-classes.jar" + + File.pathSeparator + System.getProperty("aspectjrt.path")); + args.add("-outjar"); + args.add("../weaver/testdata/ltw-dwaspects.jar"); + args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/LTWDeclareWarning.aj"); + CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); + + /* + * Declare error advice + */ + args = new ArrayList(); + args.add("-classpath"); + args.add("../lib/test/aspectjrt.jar;../lib/test/testing-client.jar;../weaver/testdata/ltw-classes.jar" + + File.pathSeparator + System.getProperty("aspectjrt.path")); + args.add("-outjar"); + args.add("../weaver/testdata/ltw-deaspects.jar"); + args.add(AjdtAjcTests.TESTDATA_PATH + "/src1/LTWDeclareError.aj"); + CommandTestCase.runCompiler(args, CommandTestCase.NO_ERRORS); + + /* * Around closure advice */ args = new ArrayList(); |