diff options
author | aclement <aclement> | 2007-01-09 13:13:48 +0000 |
---|---|---|
committer | aclement <aclement> | 2007-01-09 13:13:48 +0000 |
commit | f1ce9eb89f9df1ffacb4ffa0123de7daaf527cb3 (patch) | |
tree | 9af1d1f7acd2b3e071222faf2c62d19f1a1c8f22 | |
parent | ffebf4f882fe2c0a3a30b4f6b33918e2140fa4e2 (diff) | |
download | aspectj-f1ce9eb89f9df1ffacb4ffa0123de7daaf527cb3.tar.gz aspectj-f1ce9eb89f9df1ffacb4ffa0123de7daaf527cb3.zip |
made synchronized method message a lint warning
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc152/SynchronizationTransformTests.java | 5 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc152/synchronization.xml | 20 |
2 files changed, 20 insertions, 5 deletions
diff --git a/tests/src/org/aspectj/systemtest/ajc152/SynchronizationTransformTests.java b/tests/src/org/aspectj/systemtest/ajc152/SynchronizationTransformTests.java index d9f09d4b4..8437fd69d 100644 --- a/tests/src/org/aspectj/systemtest/ajc152/SynchronizationTransformTests.java +++ b/tests/src/org/aspectj/systemtest/ajc152/SynchronizationTransformTests.java @@ -113,6 +113,11 @@ public class SynchronizationTransformTests extends XMLBasedAjcTestCase { runTest("Two"); checkMethod("C","ma"); } + + public void testTransform2XlintOff() { + runTest("Two - xlintoff"); + checkMethod("C","ma"); + } // after() returning/after() throwing on execution jp // after() returning -> make all returns go through the same exit point and make diff --git a/tests/src/org/aspectj/systemtest/ajc152/synchronization.xml b/tests/src/org/aspectj/systemtest/ajc152/synchronization.xml index 2803a1622..99096fa53 100644 --- a/tests/src/org/aspectj/systemtest/ajc152/synchronization.xml +++ b/tests/src/org/aspectj/systemtest/ajc152/synchronization.xml @@ -430,7 +430,7 @@ <ajc-test dir="features152/synchronization/transformed" title="Two"> <compile files="Two.java -Xjoinpoints:synchronization"> - <message kind="warning" line="14" text="advice matching the synchronized method shadow 'method-execution(void C.ma())' will be executed outside the lock rather than inside (compiler limitation)"/> + <message kind="warning" line="14" text="advice matching the synchronized method shadow 'method-execution(void C.ma())' will be executed outside the lock rather than inside (compiler limitation) [Xlint"/> </compile> <run class="Two"> <stderr> @@ -440,10 +440,20 @@ </run> </ajc-test> + <ajc-test dir="features152/synchronization/transformed" title="Two - xlintoff"> + <compile files="Two.java -Xjoinpoints:synchronization -Xlint:ignore"/> + <run class="Two"> + <stderr> + <line text="execution advice running"/> + <line text="hello"/> + </stderr> + </run> + </ajc-test> + <ajc-test dir="features152/synchronization/transformed" title="Three"> <compile files="Three.java -Xjoinpoints:synchronization"> - <message kind="warning" line="20" text="advice matching the synchronized method shadow 'method-execution(void C.m3())' will be executed outside the lock rather than inside (compiler limitation)"/> - <message kind="warning" line="24" text="advice matching the synchronized method shadow 'method-execution(void C.m32())' will be executed outside the lock rather than inside (compiler limitation)"/> + <message kind="warning" line="20" text="advice matching the synchronized method shadow 'method-execution(void C.m3())' will be executed outside the lock rather than inside (compiler limitation) [Xlint"/> + <message kind="warning" line="24" text="advice matching the synchronized method shadow 'method-execution(void C.m32())' will be executed outside the lock rather than inside (compiler limitation) [Xlint"/> </compile> <run class="Three"> <stderr> @@ -461,8 +471,8 @@ <ajc-test dir="features152/synchronization/transformed" title="Four"> <compile files="Four.java -Xjoinpoints:synchronization"> - <message kind="warning" line="16" text="advice matching the synchronized method shadow 'method-execution(void C.m())' will be executed outside the lock rather than inside (compiler limitation)"/> - <message kind="warning" line="20" text="advice matching the synchronized method shadow 'method-execution(void C.m2())' will be executed outside the lock rather than inside (compiler limitation)"/> + <message kind="warning" line="16" text="advice matching the synchronized method shadow 'method-execution(void C.m())' will be executed outside the lock rather than inside (compiler limitation) [Xlint"/> + <message kind="warning" line="20" text="advice matching the synchronized method shadow 'method-execution(void C.m2())' will be executed outside the lock rather than inside (compiler limitation) [Xlint"/> </compile> <run class="Four"> <stderr> |