Bladeren bron

@testcase type not imported in around advice

tags/v1_1_0_RC1
wisberg 21 jaren geleden
bovenliggende
commit
c6d8c34761
2 gewijzigde bestanden met toevoegingen van 19 en 0 verwijderingen
  1. 7
    0
      tests/ajcTestsFailing.xml
  2. 12
    0
      tests/errors/TypeNotImportedInAroundCE.java

+ 7
- 0
tests/ajcTestsFailing.xml Bestand weergeven

@@ -49,4 +49,11 @@
<run class="AspectInitError"/>
</ajc-test>

<ajc-test dir="errors"
title="type not imported in around advice">
<compile files="TypeNotImportedInAroundCE.java">
<message kind="error" line="10"/>
</compile>
</ajc-test>

</suite>

+ 12
- 0
tests/errors/TypeNotImportedInAroundCE.java Bestand weergeven

@@ -0,0 +1,12 @@



class C { void m() { } }


/** @testcase type not imported in around advice */
aspect A {
void around() : execution(void m()) {
Rectangle expected = null; // CE 10
}
}

Laden…
Annuleren
Opslaan