From: wisberg Date: Mon, 8 Mar 2004 19:13:55 +0000 (+0000) Subject: -xlintfile option support in the harness, and tests X-Git-Tag: v_preCompileLoopAlteration~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5d0a49d51e5a469ca09c61bef75b824415fe83d5;p=aspectj.git -xlintfile option support in the harness, and tests --- diff --git a/tests/ajcHarnessTests.xml b/tests/ajcHarnessTests.xml index 98c6f0e88..f90eaabdc 100644 --- a/tests/ajcHarnessTests.xml +++ b/tests/ajcHarnessTests.xml @@ -233,7 +233,7 @@ - @@ -293,8 +292,8 @@ - @@ -306,20 +305,41 @@ - - - + diff --git a/tests/ajcTestSuite.dtd b/tests/ajcTestSuite.dtd index b446d2d7d..19d172bc2 100644 --- a/tests/ajcTestSuite.dtd +++ b/tests/ajcTestSuite.dtd @@ -24,6 +24,7 @@ + diff --git a/tests/harness/xlintfile/TypeNotExposed.java b/tests/harness/xlintfile/TypeNotExposed.java new file mode 100644 index 000000000..318c19281 --- /dev/null +++ b/tests/harness/xlintfile/TypeNotExposed.java @@ -0,0 +1,8 @@ + + +public aspect TypeNotExposed { + public void Object.doRun() { // 4 typeNotExposedToWeaver + } +} + + diff --git a/tests/harness/xlintfile/tneError.properties b/tests/harness/xlintfile/tneError.properties new file mode 100644 index 000000000..682f2ade9 --- /dev/null +++ b/tests/harness/xlintfile/tneError.properties @@ -0,0 +1,7 @@ +invalidAbsoluteTypeName = ignore +invalidWildcardTypeName = ignore +unresolvableMember = ignore +typeNotExposedToWeaver = error +shadowNotInStructure = ignore +unmatchedSuperTypeInCall = ignore +canNotImplementLazyTjp = ignore \ No newline at end of file diff --git a/tests/harness/xlintfile/tneIgnore.properties b/tests/harness/xlintfile/tneIgnore.properties new file mode 100644 index 000000000..ebb03b016 --- /dev/null +++ b/tests/harness/xlintfile/tneIgnore.properties @@ -0,0 +1,7 @@ +invalidAbsoluteTypeName = ignore +invalidWildcardTypeName = ignore +unresolvableMember = ignore +typeNotExposedToWeaver = ignore +shadowNotInStructure = ignore +unmatchedSuperTypeInCall = ignore +canNotImplementLazyTjp = ignore \ No newline at end of file diff --git a/tests/readme-writing-compiler-tests.html b/tests/readme-writing-compiler-tests.html index 7266ceeba..120f9dc2b 100644 --- a/tests/readme-writing-compiler-tests.html +++ b/tests/readme-writing-compiler-tests.html @@ -509,10 +509,12 @@ which handle most of the other compiler arguments:
  • aspectpath: binary aspects in jar files
  • argfiles: argument list files
  • sourceroots: root directories for source files +
  • xlintfile: override org.aspectj.weaver.XlintDefault.properties
  • Paths for these are all relative to the test base directory, and multiple entries are separated with commas. +(Use only one entry for xlintfile.)

    Here is a cooked example that uses all compiler attributes:

    @@ -522,6 +524,7 @@ Here is a cooked example that uses all compiler attributes:
                    options="-Xlint,-g:none"
                   argfiles="debug.lst,aspects/test.lst"
                 aspectpath="jars/requiredAspects.jar"
    +             xlintfile="ignore-all-but-typenotfound.properties"
                  classpath="providedClassesDir,jars/required.jar"/>
             <inc-compile tag="20"/>
         </ajc-test>
    @@ -587,7 +590,9 @@ through the sandbox, adding default libraries:
     
     The harness provides some more advance behaviors,
     which you might see specified in the tests.
    -For more information, see the API documentation for the harness.
    +For more information, see the API documentation for the harness
    +(
    + org/aspectj/testing/drivers/package.html).
     
    • option dominance and overriding: Both in test specifications and on the command line @@ -601,7 +606,7 @@ For more information, see the API documentation for the harness.

    -last updated January 8, 2004 +last updated March 8, 2004