You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Ajc10xTests.java 29KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174
  1. /* *******************************************************************
  2. * Copyright (c) 2004 IBM Corporation
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * ******************************************************************/
  10. package org.aspectj.systemtest.ajc10x;
  11. import org.aspectj.testing.XMLBasedAjcTestCase;
  12. import junit.framework.Test;
  13. public class Ajc10xTests extends org.aspectj.testing.XMLBasedAjcTestCase {
  14. public static Test suite() {
  15. return XMLBasedAjcTestCase.loadSuite(Ajc10xTests.class);
  16. }
  17. @Override
  18. protected java.net.URL getSpecFile() {
  19. return getClassResource("ajc10x.xml");
  20. }
  21. public void test001() {
  22. runTest("properly make choice between cast and parenthesis in parser");
  23. }
  24. public void test002() {
  25. runTest("field from implemented interface not found in advice");
  26. }
  27. public void test003() {
  28. runTest("make sure advice affects introduced methods and constructors");
  29. }
  30. public void test004() {
  31. runTest("new around construct");
  32. }
  33. public void test005() {
  34. runTest("aspect redefines a parameter");
  35. }
  36. public void test006() {
  37. runTest("introducing extends and implements");
  38. }
  39. public void test007() {
  40. runTest("(related) aspect on interface");
  41. }
  42. public void test008() {
  43. runTest("advice and package visibility");
  44. }
  45. public void test009() {
  46. runTest("advice and package visibility");
  47. }
  48. public void test010() {
  49. runTest("advice on implied empty constructor");
  50. }
  51. public void test011() {
  52. runTest("advice on * *(..) not mapping to initializers");
  53. }
  54. public void test012() {
  55. runTest("three type declarations in the scope of an advice");
  56. }
  57. public void test013() {
  58. runTest("introduction fails on class with an inner class that extends or implements something");
  59. }
  60. public void test014() {
  61. runTest("checks that methods are introduced on the topmost class implemented");
  62. }
  63. public void test015() {
  64. runTest("a couple different returns from around advice");
  65. }
  66. public void test016() {
  67. runTest("member finally advice paired with signature advice");
  68. }
  69. public void test017() {
  70. runTest("aspect of eachobject(instanceof(Interface))");
  71. }
  72. public void test018() {
  73. runTest("final member initialization broken with JDK before 1.1.8");
  74. }
  75. public void test019() {
  76. runTest("same package and var name clash in preprocessed code when aspectOf is used");
  77. }
  78. public void test020() {
  79. runTest("and PR#201 advice on static methods fails javac compile with this");
  80. }
  81. public void test021() {
  82. runTest("non-static advice on inner class defined inside of method body");
  83. }
  84. public void test022() {
  85. runTest("simple single-threaded eachcflow test (includes aspectOf)");
  86. }
  87. public void test023() {
  88. runTest("bad type resolution when var reassigned in same scope");
  89. }
  90. public void test024() {
  91. runTest("generating the right throws clause for call-site advice (and around)");
  92. }
  93. public void test025() {
  94. runTest("advice on calls to static methods using several syntax");
  95. }
  96. public void test026() {
  97. runTest(", PR#249, PR#250 advice on constructor sites");
  98. }
  99. public void test027() {
  100. runTest("test after throwing advice in several ways");
  101. }
  102. public void test028() {
  103. runTest("fancy name patterns for method names");
  104. }
  105. public void test029() {
  106. runTest("calls: calls(...)");
  107. }
  108. public void test030() {
  109. runTest("throws Exception clause is unnecessarily added to Driver.main method");
  110. }
  111. public void test031() {
  112. runTest("javac fails when this is referenced in the static main method");
  113. }
  114. public void test032() {
  115. runTest("and 276 cast error generated by ajc when type not in signature");
  116. }
  117. public void test033() {
  118. runTest("calls to methods to which we don't have source");
  119. }
  120. public void test034() {
  121. runTest("more aspect inheritance");
  122. }
  123. public void test035() {
  124. runTest("around and calls with both calling and called this params");
  125. }
  126. public void test036() {
  127. runTest("compiler crashes with eachobject and named pointcuts with parameters");
  128. }
  129. public void test037() {
  130. runTest("lookup rules for unqualified pointcut names");
  131. }
  132. public void test038() {
  133. runTest("eachcflow only instantiated if the aspect has some advice in it");
  134. }
  135. public void test039() {
  136. runTest("(DESIGN QUESTION) aspect of eachJVM advising its own initializer");
  137. }
  138. public void test040() {
  139. runTest("after returning advice on calls to constructors");
  140. }
  141. public void test041() {
  142. runTest("Does annotating 'new' with a type work as desired?");
  143. }
  144. public void test042() {
  145. runTest("Referring to inner classes as {super}.{inner} confused ajc.");
  146. }
  147. public void test043() {
  148. runTest("Advice on advice");
  149. }
  150. public void test044() {
  151. runTest("Introductions on other introductions");
  152. }
  153. public void test045() {
  154. runTest("Putting advice on array constructors.");
  155. }
  156. public void test046() {
  157. runTest("call points within block inner classes are doubled");
  158. }
  159. public void test047() {
  160. runTest("Gets and sets with other advice");
  161. }
  162. public void test048() {
  163. runTest("Compiler can compile correct strictfp modifiers");
  164. }
  165. public void test049() {
  166. runTest("basic test of callsto pointcuts");
  167. }
  168. public void test050() {
  169. runTest("package wildcards in packages");
  170. }
  171. public void test051() {
  172. runTest("around advice on calls and receptions with lots of context");
  173. }
  174. public void test052() {
  175. runTest("! modifier and char in pointcut (no longer an error)");
  176. }
  177. public void test053() {
  178. runTest("right number of aspect instances per cflow");
  179. }
  180. public void test054() {
  181. runTest("many this's into around advice on calls");
  182. }
  183. public void test055() {
  184. runTest("Ensures introduction methods can have advice placed on them");
  185. }
  186. public void test056() {
  187. runTest("No boolean appearing in the 'if' clause for around advice with eachJVM()");
  188. }
  189. public void test057() {
  190. runTest("Order of super introductions.");
  191. }
  192. public void test058() {
  193. runTest("Ensuring backdoor methods are produced.");
  194. }
  195. public void test059() {
  196. runTest("no duplicate advice methods in abstract aspects");
  197. }
  198. public void test060() {
  199. runTest("no duplicate advice methods in abstract aspects extended");
  200. }
  201. public void test061() {
  202. runTest("Putting after-constructor advice on the wrong types implementing the same interface.");
  203. }
  204. public void test062() {
  205. runTest("Instantiating non-static inner classes in advice.");
  206. }
  207. public void test063() {
  208. runTest("Referring to pointcut in of clauses");
  209. }
  210. public void test064() {
  211. runTest("Confused referring to instance variables and locals");
  212. }
  213. public void test065() {
  214. runTest("Parsing C+ expressions without parens in super introductions.");
  215. }
  216. public void test066() {
  217. runTest("Introducing methods on classes that implements inner-interfaces with +implements.");
  218. }
  219. public void test067() {
  220. runTest("Methods with the same name are generated when abstract aspects extend another abstract aspect.");
  221. }
  222. public void test068() {
  223. runTest("Making sure final variables stay final.");
  224. }
  225. public void test069() {
  226. runTest("Problem resolving meta-joinpoint names with around advice on methods called from around advice.");
  227. }
  228. public void test070() {
  229. runTest("Make sure that names of lifted local classes are right when referenced in call-site advice");
  230. }
  231. public void test071() {
  232. runTest("matching for throws clause");
  233. }
  234. public void test072() {
  235. runTest("basic test of declare soft");
  236. }
  237. public void test073() {
  238. runTest("advice on calls to constructors of anonymous inners and access to context");
  239. }
  240. public void test074() {
  241. runTest("inner aspects can't access outer pointcuts");
  242. }
  243. public void test075() {
  244. runTest("implements and extends are introduced before methods and fields");
  245. }
  246. public void test076() {
  247. runTest("a static/inner aspect of a inner class of an aspect is pulled to the top level as static");
  248. }
  249. public void test077() {
  250. runTest("Crashes with privileged aspect.");
  251. }
  252. public void test078() {
  253. runTest("join points exist in the execution of field initializers");
  254. }
  255. public void test079() {
  256. try {
  257. runTest("privileged aspects");
  258. } finally {
  259. System.out.println(ajc.getLastCompilationResult().getStandardError());
  260. System.out.println(ajc.getLastCompilationResult().getStandardOutput());
  261. }
  262. }
  263. public void test080() {
  264. runTest("advice on field gets in privileged aspects");
  265. }
  266. public void test081() {
  267. runTest("Two anonymous classes in the same scope");
  268. }
  269. public void test082() {
  270. runTest("basic tests for initializer and staticinitializer PCDs");
  271. }
  272. public void test083() {
  273. runTest("introduction of an initializer into a class");
  274. }
  275. public void test084() {
  276. runTest("some method accessibility tests, particularly package-protected and inheritance");
  277. }
  278. public void test085() {
  279. runTest("fairly monotonous (and non-covering) tests for expanded dot patterns");
  280. }
  281. public void test086() {
  282. runTest("field patterns and subtyping");
  283. }
  284. public void test087() {
  285. runTest("Checking formal matching as in Roeder's bug in 0.7b10");
  286. }
  287. public void test088() {
  288. runTest("Introducing synchronized methods on interfaces.");
  289. }
  290. public void test089() {
  291. runTest("The pointcut params (..,int..) is not recognizing (Object,int,Object).");
  292. }
  293. public void test090() {
  294. runTest("calls advice on array objects causes error in code generation");
  295. }
  296. public void test091() {
  297. runTest("join points in field initializers aren't showing up.");
  298. }
  299. public void test092() {
  300. runTest("Handlers problem");
  301. }
  302. public void test093() {
  303. runTest("work nicely with inner class method look-up rules and call-site advice");
  304. }
  305. public void test094() {
  306. runTest("strictfp modifier allowed on advice");
  307. }
  308. public void test095() {
  309. runTest("No argthis was being created for calls advice.");
  310. }
  311. public void test096() {
  312. runTest("Ensuring no advice with instanceof(..) is run on static methods.");
  313. }
  314. public void test097() {
  315. runTest("Null pointer on gets advice showing the case causing the error");
  316. }
  317. public void test098() {
  318. runTest("try to make sure that dynamic JoinPoint objects aren't generated when used inside of if (false) { ... }");
  319. }
  320. public void test099() {
  321. runTest("within and withincode (doesn't all work due to local class name issues)");
  322. }
  323. public void test100() {
  324. runTest("around advice on calls within inner classes (including protected method calls)");
  325. }
  326. public void test101() {
  327. runTest("around advice on calls within inner classes (including protected method calls)");
  328. }
  329. public void test102() {
  330. runTest("Arguments to runNext should be final when needed");
  331. }
  332. public void test103() {
  333. runTest("Method introductions");
  334. }
  335. public void test104() {
  336. runTest("Putting an introduced method on each interface");
  337. }
  338. public void test105() {
  339. runTest("Extending interfaces");
  340. }
  341. public void test106() {
  342. runTest("Introducing private methods on interfaces");
  343. }
  344. public void test107() {
  345. runTest("Issuing errors for assigning variables thisJoinPoint -- not assigning thisJoinPoint.");
  346. }
  347. public void test108() {
  348. runTest("Static references inside of introduced bodies get bound correctly.");
  349. }
  350. public void test109() {
  351. runTest("cflow and object creations [of eachcflow]");
  352. }
  353. public void test110() {
  354. runTest("Doesn't import MightHaveAspect when compiling with more than 1 file. [eachobject]");
  355. }
  356. public void test111() {
  357. runTest("test binding to formals in calls to constructors (binding to null) (eachobject !!! now misnamed)");
  358. }
  359. public void test112() {
  360. runTest("After advice isn't being woven into after throwing advice");
  361. }
  362. public void test113() {
  363. runTest("Throwing an EmptyStackException.");
  364. }
  365. public void test114() {
  366. runTest("check that MightHaveAspect interface is created correctly for an aspect in deep package");
  367. }
  368. public void test115() {
  369. runTest("Defines clfow$ajc0 more once. [eachcflow]");
  370. }
  371. public void test116() {
  372. runTest("Various calls, receptions, and callsto tests [callsto]");
  373. }
  374. public void test117() {
  375. runTest("Was throwing exception, now just an error. [eachobject]");
  376. }
  377. public void test118() {
  378. runTest("different version of aspect inheritance, particularly empty pointcuts and abstract cflows [eachcflow]");
  379. }
  380. public void test119() {
  381. runTest("set advice on member initing throwing exception [eachobject]");
  382. }
  383. public void test120() {
  384. runTest("Testing class names with same name's with difference case as package. [eachobject]");
  385. }
  386. public void test121() {
  387. runTest("Null pointer on gets advice with coverage [painful]");
  388. }
  389. public void test122() {
  390. runTest("Basic test for cflow pointcuts [eachcflow]");
  391. }
  392. public void test123() {
  393. runTest("Crashing when looking up the type of array members.");
  394. }
  395. public void test124() {
  396. runTest("PostfixExprs to various synthetic things are fixed correctly [eachobject]");
  397. }
  398. public void test125() {
  399. runTest("Dave Binkley's problem with eachcflowroot. [eachcflow]");
  400. }
  401. public void test126() {
  402. runTest("advice on an inherited method");
  403. }
  404. public void test127() {
  405. runTest(", PR#115 checks the ordering of catch clauses");
  406. }
  407. public void test128() {
  408. runTest("various declared exception permutations");
  409. }
  410. public void test129() {
  411. runTest("ordering of advice kinds as well as cflow and dominates");
  412. }
  413. public void test130() {
  414. runTest("advice on default constructor for a class only referenced via reflection");
  415. }
  416. public void test131() {
  417. runTest("calling and called this params in calls points");
  418. }
  419. public void test132() {
  420. runTest("primitive parameters coercable to Object just like return values are");
  421. }
  422. public void test133() {
  423. runTest("join points in static/dynamic initializers aren't showing up.");
  424. }
  425. public void test134() {
  426. runTest("Gets and sets on a number of variables (field access ???)");
  427. }
  428. public void test135() {
  429. runTest("Joinpoints are showing up on intermediate call sites");
  430. }
  431. public void test136() {
  432. runTest("Reception based on strictfp modifier");
  433. }
  434. public void test137() {
  435. runTest("Subclasses that do not redefine a method are not being handled correctly");
  436. }
  437. public void test138() {
  438. runTest("making sure that super calls are bound to the right methods");
  439. }
  440. public void test139() {
  441. runTest("inheritance, around advice and abstract pointcuts [eachobject] (still)");
  442. }
  443. public void test140() {
  444. runTest("Priviledged aspect methods are missing for privates. [eachobject]");
  445. }
  446. public void test141() {
  447. runTest("exceptions thrown and caught in advice, particularly try+proceed");
  448. }
  449. public void test142() {
  450. runTest("Not and And operators in pointcuts not working");
  451. }
  452. public void test143() {
  453. runTest("Member initializers should run before the current class constructor");
  454. }
  455. public void test144() {
  456. runTest("Coverage tests for Member initializers should run before the current class constructor and after super");
  457. }
  458. public void test145() {
  459. runTest("thisJoinPoint{Static} not visible in if() pcd of named pointcut");
  460. }
  461. public void test146() {
  462. runTest("pcd if() expression visibility at compile-time (minimal operation)");
  463. }
  464. public void test147() {
  465. runTest("pcd if() NPE in compiler when unwinding assignment in pcd if(expr)");
  466. }
  467. public void test148() {
  468. runTest("pcd if() dup methods produced when pointcut after advice etc (javac)");
  469. }
  470. public void test149() {
  471. runTest("pcd if() variants: [anonymous, named] x [execution, call, callTyped, get, set, initializations] x [before, after, around]");
  472. }
  473. // moved to ajcTestsFailing.xml
  474. // public void test150(){
  475. // runTest("advice on advice in usejavac mode");
  476. // }
  477. public void test151() {
  478. runTest("initialization order with this");
  479. }
  480. public void test152() {
  481. runTest("!within and !this handling for callee-side call points");
  482. }
  483. public void test153() {
  484. runTest("private inner interfaces and bytecode visibility");
  485. }
  486. public void test154() {
  487. runTest("elaborated into testing of around on all join points");
  488. }
  489. public void test155() {
  490. runTest("type name hygiene when code comes from aspects in different packages");
  491. }
  492. public void test156() {
  493. runTest("cflowbelow dependencies (from Chris Dutchyn)");
  494. }
  495. public void test157() {
  496. runTest("Compiler incorrectly flagging *1 (non-alphabetic start to signature pattern)");
  497. }
  498. public void test158() {
  499. runTest("Unable to bind privately-introduced field name from introduced method in the same aspect");
  500. }
  501. public void test159() {
  502. runTest("anonymous inner class with aspect");
  503. }
  504. public void test160() {
  505. runTest("Arguments are not being passed in to calls advice");
  506. }
  507. public void test161() {
  508. runTest("interfaces as mixins with introduction");
  509. }
  510. public void test161b() {
  511. runTest("interfaces as mixins with introduction b");
  512. }
  513. public void test162() {
  514. runTest("functional modifiers work correctly with introduced members");
  515. }
  516. public void test163() {
  517. runTest("ExceptionInInitializerError accessing cflow in aspect initialization - before variants");
  518. }
  519. public void test164() {
  520. runTest("NoClassDefFoundError accessing cflow in aspect initialization - after variants");
  521. }
  522. public void test165() {
  523. runTest("InternalCompilerError in JpPlan when args alone");
  524. }
  525. public void test166() {
  526. runTest("compile error using pcd if() with advice on introduced methods.");
  527. }
  528. public void test167() {
  529. runTest("compile errors boolean using cflow and unimplemented method using around advice on methods introduced by interface");
  530. }
  531. public void test168() {
  532. runTest("aspect as member of interface");
  533. }
  534. public void test169() {
  535. runTest("missing method name to synthetic invocation");
  536. }
  537. public void test170() {
  538. runTest("protected subclass impl of superclass method with default access and variants");
  539. }
  540. public void test171() {
  541. runTest("Exception planning advice");
  542. }
  543. public void test172() {
  544. runTest("unreproduced bug with advice - probably UTR");
  545. }
  546. public void test173() {
  547. runTest("introduced inner interfaces accessible inside aspect");
  548. }
  549. public void test174() {
  550. runTest("validate (enclosing) join point and source locations");
  551. }
  552. public void test175() {
  553. runTest("advice formals are just like method formals");
  554. }
  555. public void test176() {
  556. runTest("advice formals produce errors just like method formals");
  557. }
  558. public void test177() {
  559. runTest("advice throws clauses must be compatible with joinpoints they apply to");
  560. }
  561. public void test178() {
  562. runTest("potential method conflicts with introductions and interfaces and PR#561");
  563. }
  564. public void test179() {
  565. runTest("illegal method conflicts with introductions and interfaces and PR#561");
  566. }
  567. public void test180() {
  568. runTest("AspectOf available for different aspect types");
  569. }
  570. public void test181() {
  571. runTest("access to all members of class and inner class from privileged aspect");
  572. }
  573. public void test182() {
  574. runTest("cflow alone with around produces compiler bcg StackOverflowError");
  575. }
  576. public void test183() {
  577. runTest("get/set join points run for complex assignment operators (+=, etc.) (working)");
  578. }
  579. public void test184() {
  580. runTest("this available in introduced field initializers");
  581. }
  582. public void test185() {
  583. runTest("Introduced type unavailable to cast expressions in introduced methods");
  584. }
  585. public void test186() {
  586. runTest("Introduced type unavailable to qualified new expressions in introduced methods");
  587. }
  588. public void test187() {
  589. runTest("Introduced type unavailable to cast expressions in introduced field initializers");
  590. }
  591. public void test188() {
  592. runTest("Aspect type unavailable to qualified new expressions in body of introduced methods");
  593. }
  594. public void test189() {
  595. runTest("Introduced type unavailable to qualified new expressions in introduced field initializers");
  596. }
  597. public void test190() {
  598. runTest("variable slots and finally/catch causing verify errors");
  599. }
  600. public void test191() {
  601. runTest("after advice on static method with pcd if() using result");
  602. }
  603. public void test192() {
  604. runTest("after advice on static method with pcd if() using result through pointcut");
  605. }
  606. public void test193() {
  607. runTest("AbstractMethodError for introduced methods (order 1)");
  608. }
  609. public void test194() {
  610. runTest("AbstractMethodError for introduced methods (order 2)");
  611. }
  612. public void test195() {
  613. runTest("AbstractMethodError for introduced methods (order 3)");
  614. }
  615. public void test196() {
  616. runTest("AbstractMethodError for introduced methods (order 4)");
  617. }
  618. public void test197() {
  619. runTest("AbstractMethodError for introduced methods (order 5)");
  620. }
  621. public void test198() {
  622. runTest("declare error and abstract pointcuts");
  623. }
  624. public void test199() {
  625. runTest("Exercise runtime classes (optionally in 1.1 VM)");
  626. }
  627. public void test200() {
  628. runTest("VerifyError after around advice falls off end of tryCatch");
  629. }
  630. public void test201() {
  631. runTest("Named within pointcuts failing");
  632. }
  633. public void test202() {
  634. runTest("aspect with private abstract pointcut");
  635. }
  636. public void test203() {
  637. runTest("concrete aspect unable to access abstract package-private pointcut in parent for overriding");
  638. }
  639. public void test204() {
  640. runTest("inner, outer, and outside-package subaspects of an aspect with abstract protected-, public-, and default-access pointcuts");
  641. }
  642. public void test205() {
  643. runTest("inner subaspects of an aspect with private pointcut");
  644. }
  645. public void test206() {
  646. runTest("outer subaspects of an aspect with private pointcut");
  647. }
  648. public void test207() {
  649. runTest("abstract aspect used statically should not cause instantiation of advice or pointcut");
  650. }
  651. public void test208() {
  652. runTest("private inner interface accessible in scope when declared on outer class");
  653. }
  654. public void test209() {
  655. runTest("accessing protected superclass members in and outside CCC from body of method introduction");
  656. }
  657. public void test210() {
  658. runTest("accessing private superclass members from body of method introduction");
  659. }
  660. public void test211() {
  661. runTest("simple test for around and casting");
  662. }
  663. public void test212() {
  664. runTest("aroundInner 1 - around advice inner Thread subclass running proceed but not writing field");
  665. }
  666. public void test213() {
  667. runTest("aroundInner 2 - around advice inner Runnable running proceed and writing method-final proxy");
  668. }
  669. public void test214() {
  670. runTest("aroundInner 3 - around advice inner class running proceed and writing field");
  671. }
  672. public void test215() {
  673. runTest("aroundInner 4 - around advice inner Thread subclass running proceed and writing field");
  674. }
  675. public void test216() {
  676. runTest("aroundInner 5 - around advice inner Runnable (subinterface) running proceed and writing field introduced on subinterface");
  677. }
  678. public void test217() {
  679. runTest("Named local class closing over proceed invocation");
  680. }
  681. public void test218() {
  682. runTest("beautiful recursive computation of factorial with around is now supported");
  683. }
  684. public void test219() {
  685. runTest("multi-dispatch not used for named pcd references");
  686. }
  687. public void test220() {
  688. runTest("multi-dispatch implemented through around + args");
  689. }
  690. public void test221() {
  691. runTest("unrecognized aspect should not net Cloneable and Serializable warnings");
  692. }
  693. public void test222() {
  694. // FIXME AV - infinite loop on JRockit in m5 advice - don't know why
  695. runTest("unreachable code generated by around advice on the execution of void methods");
  696. }
  697. public void test223() {
  698. runTest("Overriding method implementations using introduction on interfaces");
  699. }
  700. public void test224() {
  701. runTest("more coverage for around and concrete methods on interfaces");
  702. }
  703. public void test225() {
  704. runTest("invalid number and type of proceed arguments");
  705. }
  706. public void test226() {
  707. runTest("after returning advice order");
  708. }
  709. public void test227() {
  710. runTest("after returning advice param");
  711. }
  712. public void test228() {
  713. runTest("! and declaring types with callee-side call join points");
  714. }
  715. public void test229() {
  716. runTest(". Binding the wrong arguments in withincode(..).");
  717. }
  718. public void test230() {
  719. runTest(". Matching arguments in cflow correctly.");
  720. }
  721. public void test231() {
  722. runTest(". Binding variables with numbers in their name with pertarget(..)'s.");
  723. }
  724. public void test232() {
  725. runTest("second arg in formal on shared joinpoint with pcd if() causes verify error ??");
  726. }
  727. public void test233() {
  728. runTest("access to private members from privileged aspect");
  729. }
  730. public void test234() {
  731. runTest("inner classes of privileged aspects cannot see target class private members");
  732. }
  733. public void test235() {
  734. runTest("aspects should get package access outside the file");
  735. }
  736. public void test236() {
  737. runTest("subclass advice not run for join points selected by superclass cflow-based pointcuts");
  738. }
  739. public void test237() {
  740. runTest("more issues with abstract aspects and cflow pointcuts");
  741. }
  742. public void test238() {
  743. runTest("compile fails for aspect derived from percflow base aspect unless pointcut excludes base aspect and subaspects");
  744. }
  745. public void test239() {
  746. runTest("pertarget stack overflow getting name of anonymous (Interface) class");
  747. }
  748. public void test240() {
  749. runTest("pertarget stack overflow getting name of anonymous (Object) class");
  750. }
  751. public void test241() {
  752. runTest("pertarget runtime stack overflow (getting name of anonymous (Object) class?)");
  753. }
  754. public void test242() {
  755. runTest("subaspect method declaration on superaspect inner interface (names)");
  756. }
  757. public void test243() {
  758. runTest("subaspect method declaration on superaspect inner interface (access)");
  759. }
  760. public void test244() {
  761. runTest("subaspect method declaration on superaspect inner interface (types)");
  762. }
  763. public void test245() {
  764. runTest("around AST type XXX");
  765. }
  766. public void test246() {
  767. runTest("around all execution with double assignment in initializer (simple)");
  768. }
  769. public void test247() {
  770. runTest("around all execution with double assignment in initializer (coverage)");
  771. }
  772. public void test248() {
  773. runTest("changing this in around's proceed reported by Rich Price");
  774. }
  775. public void test249() {
  776. runTest("default package for aspect introductions is not the current package");
  777. }
  778. public void test250() {
  779. runTest("anon class written to wrong directory");
  780. }
  781. public void test251() {
  782. runTest("unqualified transitive pointcut references not resolved");
  783. }
  784. public void test252() {
  785. runTest("unqualified transitive pointcut references not resolved - 2");
  786. }
  787. public void test253() {
  788. runTest("direct use outside aspect of defined abstract pointcut");
  789. }
  790. public void test254() {
  791. runTest("direct use outside aspect of undefined abstract pointcut");
  792. }
  793. public void test255() {
  794. runTest("indirect use outside aspect of undefined abstract pointcut");
  795. }
  796. public void test256() {
  797. runTest("simple call join point tests for JoinPoint SourceLocation context");
  798. }
  799. public void test257() {
  800. runTest("!target with second advice on casted call");
  801. }
  802. public void test258() {
  803. runTest("name binding in around cflow");
  804. }
  805. public void test259() {
  806. runTest("name binding in around cflow - 2");
  807. }
  808. public void test260() {
  809. runTest("around name-binding in cflows using factorial");
  810. }
  811. public void test261() {
  812. runTest("replacing this or target in around advice");
  813. }
  814. public void test262() {
  815. runTest("after returning from initialization and after executing constructor");
  816. }
  817. public void test263() {
  818. runTest("after returning from initialization causes ExceptionInInitializer in aspect");
  819. }
  820. public void test264() {
  821. runTest("name binding in before cflow containing cflowbelow");
  822. }
  823. public void test265() {
  824. runTest("file order in type searching");
  825. }
  826. public void test266() {
  827. runTest("simple declare warning (NPE)");
  828. }
  829. public void test267() {
  830. runTest("ajc dies on cflow into field init anon class see knownbugs.txt");
  831. }
  832. public void test268() {
  833. runTest("Incrementing interface-introduced field");
  834. }
  835. public void test269() {
  836. runTest("The dynamic type, not the static one, should be used in if pcds");
  837. }
  838. public void test270() {
  839. runTest("bad interaction with after returning, around and void methods (from Rich Price)");
  840. }
  841. public void test271() {
  842. runTest("type pattern matching for inner classes (from Ken Horn)");
  843. }
  844. public void test272() {
  845. runTest("static initializer member name");
  846. }
  847. public void test273() {
  848. runTest("cflow pcd syntax error");
  849. }
  850. public void test274() {
  851. runTest("binding args with indeterminate prefix and suffix");
  852. }
  853. public void test275() {
  854. runTest("check arg types with indeterminate prefix and suffix");
  855. }
  856. public void test276() {
  857. runTest("testing and binding args with single indeterminate prefix and suffix");
  858. }
  859. public void test277() {
  860. runTest("binding handler args with indeterminate prefix and suffix");
  861. }
  862. public void test278() {
  863. runTest("Compiling java.lang.Object with ajc yields non-verifying bytecode");
  864. }
  865. public void test279() {
  866. runTest("method-local class defined in around return statement");
  867. }
  868. public void test280() {
  869. runTest("CE expected for assignment to arg in if pcd");
  870. }
  871. public void test281() {
  872. runTest("advising field get/sets when accessing via super");
  873. }
  874. public void test282() {
  875. runTest("accessing private members in outer types");
  876. }
  877. public void test283() {
  878. runTest("can't apply around advice to the execution of around advice");
  879. }
  880. public void test284() {
  881. runTest("incompatible advice throws clause are a compile-time error");
  882. }
  883. }