<run class="packageOne.Main"
options="new-event"/>
</ajc-test>
-<!-- disabled pending resolution of same in ajcTestsFailing.xml
+
<ajc-test dir="incremental/stringliteral"
keywords="incremental-test,fixme"
title="pass incrementally change only string literal size">
options="in longer packageOne.Main.main(..),
before main packageOne.Main"/>
</ajc-test>
--->
<ajc-test dir="incremental/defaultPackage/src"
title="pass test using prior classes">
</ajc-test>
- <!-- Expect two warnings when compiling -1.3 -->
<ajc-test dir="harness"
+ comment="Expect two warnings when compiling -1.3"
title="pass 2 compound warning -1.3">
<compile files="CompoundMessage.java" options="-1.3">
<message kind="warning" line="6">
</compile>
</ajc-test>
- <!-- Expect no warnings when compiling -1.4 -->
<ajc-test dir="harness"
+ comment="Expect no warnings when compiling -1.4"
title="pass 2 compound warning -1.4">
<compile files="CompoundMessage.java" options="-1.4"/>
</ajc-test>
- <!-- Actual errors on lines 5,6 are: 'Type mismatch: cannot convert from Integer to int'-->
- <!--ajc-test dir="harness"
- title="fail 2 error, but expecting more details">
+ <ajc-test dir="harness/xlintfile"
+ title="pass default xlintfile">
+ <compile files="TypeNotExposed.java">
+ <message kind="warning" line="4" text="xpose"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="harness/xlintfile"
+ title="pass xlintfile promotes to error">
+ <compile files="TypeNotExposed.java"
+ xlintfile="tneError.properties">
+ <message kind="error" line="4" text="xpose"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="harness/xlintfile"
+ title="pass xlintfile demotes to ignore">
+ <compile files="TypeNotExposed.java"
+ xlintfile="tneIgnore.properties"/>
+ </ajc-test>
+
+ <ajc-test dir="harness"
+ keywords="expect-fail"
+ title="fail 2 error, but expecting more details">
<compile files="ErrorTest.java">
<message kind="error" line="5" details="expecting more"/>
<message kind="error" line="6" details="details"/>
</compile>
- </ajc-test-->
+ </ajc-test>
</suite>
<!ATTLIST compile extdirs CDATA #IMPLIED >\r
<!ATTLIST compile options CDATA #IMPLIED >\r
<!ATTLIST compile sourceroots CDATA #IMPLIED >\r
+ <!ATTLIST compile xlintfile CDATA #IMPLIED >\r
\r
<!ELEMENT inc-compile (dir-changes*,message*)>\r
<!ATTLIST inc-compile tag CDATA #REQUIRED >\r
--- /dev/null
+
+
+public aspect TypeNotExposed {
+ public void Object.doRun() { // 4 typeNotExposedToWeaver
+ }
+}
+
+
--- /dev/null
+invalidAbsoluteTypeName = ignore
+invalidWildcardTypeName = ignore
+unresolvableMember = ignore
+typeNotExposedToWeaver = error
+shadowNotInStructure = ignore
+unmatchedSuperTypeInCall = ignore
+canNotImplementLazyTjp = ignore
\ No newline at end of file
--- /dev/null
+invalidAbsoluteTypeName = ignore
+invalidWildcardTypeName = ignore
+unresolvableMember = ignore
+typeNotExposedToWeaver = ignore
+shadowNotInStructure = ignore
+unmatchedSuperTypeInCall = ignore
+canNotImplementLazyTjp = ignore
\ No newline at end of file
</li><li><code>aspectpath</code>: binary aspects in jar files
</li><li><code>argfiles</code>: argument list files
</li><li><code>sourceroots</code>: root directories for source files
+ </li><li><code>xlintfile</code>: override org.aspectj.weaver.XlintDefault.properties
</li>
</ul>
Paths for these are all relative to the test base directory, and
multiple entries are separated with commas.
+(Use only one entry for xlintfile.)
<p>
Here is a cooked example that uses all <code>compiler</code> attributes:
<pre>
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>
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
+(<a href="../testing-drivers/src/org/aspectj/testing/drivers/package.html">
+ org/aspectj/testing/drivers/package.html</a>).
<ul>
<li><u>option dominance and overriding</u>:
Both in test specifications and on the command line
</li>
</ul>
<hr>
-<small>last updated January 8, 2004 </small> <!-- CVS variable -->
+<small>last updated March 8, 2004 </small> <!-- CVS variable -->
</body>
</html>