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 30KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166
  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 java.io.File;
  12. import junit.framework.Test;
  13. import org.aspectj.testing.XMLBasedAjcTestCase;
  14. public class Ajc10xTests extends org.aspectj.testing.XMLBasedAjcTestCase {
  15. public static Test suite() {
  16. return XMLBasedAjcTestCase.loadSuite(Ajc10xTests.class);
  17. }
  18. protected File getSpecFile() {
  19. return new File("../tests/src/org/aspectj/systemtest/ajc10x/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. runTest("privileged aspects");
  257. }
  258. public void test080(){
  259. runTest("advice on field gets in privileged aspects");
  260. }
  261. public void test081(){
  262. runTest("Two anonymous classes in the same scope");
  263. }
  264. public void test082(){
  265. runTest("basic tests for initializer and staticinitializer PCDs");
  266. }
  267. public void test083(){
  268. runTest("introduction of an initializer into a class");
  269. }
  270. public void test084(){
  271. runTest("some method accessibility tests, particularly package-protected and inheritance");
  272. }
  273. public void test085(){
  274. runTest("fairly monotonous (and non-covering) tests for expanded dot patterns");
  275. }
  276. public void test086(){
  277. runTest("field patterns and subtyping");
  278. }
  279. public void test087(){
  280. runTest("Checking formal matching as in Roeder's bug in 0.7b10");
  281. }
  282. public void test088(){
  283. runTest("Introducing synchronized methods on interfaces.");
  284. }
  285. public void test089(){
  286. runTest("The pointcut params (..,int..) is not recognizing (Object,int,Object).");
  287. }
  288. public void test090(){
  289. runTest("calls advice on array objects causes error in code generation");
  290. }
  291. public void test091(){
  292. runTest("join points in field initializers aren't showing up.");
  293. }
  294. public void test092(){
  295. runTest("Handlers problem");
  296. }
  297. public void test093(){
  298. runTest("work nicely with inner class method look-up rules and call-site advice");
  299. }
  300. public void test094(){
  301. runTest("strictfp modifier allowed on advice");
  302. }
  303. public void test095(){
  304. runTest("No argthis was being created for calls advice.");
  305. }
  306. public void test096(){
  307. runTest("Ensuring no advice with instanceof(..) is run on static methods.");
  308. }
  309. public void test097(){
  310. runTest("Null pointer on gets advice showing the case causing the error");
  311. }
  312. public void test098(){
  313. runTest("try to make sure that dynamic JoinPoint objects aren't generated when used inside of if (false) { ... }");
  314. }
  315. public void test099(){
  316. runTest("within and withincode (doesn't all work due to local class name issues)");
  317. }
  318. public void test100(){
  319. runTest("around advice on calls within inner classes (including protected method calls)");
  320. }
  321. public void test101(){
  322. runTest("around advice on calls within inner classes (including protected method calls)");
  323. }
  324. public void test102(){
  325. runTest("Arguments to runNext should be final when needed");
  326. }
  327. public void test103(){
  328. runTest("Method introductions");
  329. }
  330. public void test104(){
  331. runTest("Putting an introduced method on each interface");
  332. }
  333. public void test105(){
  334. runTest("Extending interfaces");
  335. }
  336. public void test106(){
  337. runTest("Introducing private methods on interfaces");
  338. }
  339. public void test107(){
  340. runTest("Issuing errors for assigning variables thisJoinPoint -- not assigning thisJoinPoint.");
  341. }
  342. public void test108(){
  343. runTest("Static references inside of introduced bodies get bound correctly.");
  344. }
  345. public void test109(){
  346. runTest("cflow and object creations [of eachcflow]");
  347. }
  348. public void test110(){
  349. runTest("Doesn't import MightHaveAspect when compiling with more than 1 file. [eachobject]");
  350. }
  351. public void test111(){
  352. runTest("test binding to formals in calls to constructors (binding to null) (eachobject !!! now misnamed)");
  353. }
  354. public void test112(){
  355. runTest("After advice isn't being woven into after throwing advice");
  356. }
  357. public void test113(){
  358. runTest("Throwing an EmptyStackException.");
  359. }
  360. public void test114(){
  361. runTest("check that MightHaveAspect interface is created correctly for an aspect in deep package");
  362. }
  363. public void test115(){
  364. runTest("Defines clfow$ajc0 more once. [eachcflow]");
  365. }
  366. public void test116(){
  367. runTest("Various calls, receptions, and callsto tests [callsto]");
  368. }
  369. public void test117(){
  370. runTest("Was throwing exception, now just an error. [eachobject]");
  371. }
  372. public void test118(){
  373. runTest("different version of aspect inheritance, particularly empty pointcuts and abstract cflows [eachcflow]");
  374. }
  375. public void test119(){
  376. runTest("set advice on member initing throwing exception [eachobject]");
  377. }
  378. public void test120(){
  379. runTest("Testing class names with same name's with difference case as package. [eachobject]");
  380. }
  381. public void test121(){
  382. runTest("Null pointer on gets advice with coverage [painful]");
  383. }
  384. public void test122(){
  385. runTest("Basic test for cflow pointcuts [eachcflow]");
  386. }
  387. public void test123(){
  388. runTest("Crashing when looking up the type of array members.");
  389. }
  390. public void test124(){
  391. runTest("PostfixExprs to various synthetic things are fixed correctly [eachobject]");
  392. }
  393. public void test125(){
  394. runTest("Dave Binkley's problem with eachcflowroot. [eachcflow]");
  395. }
  396. public void test126(){
  397. runTest("advice on an inherited method");
  398. }
  399. public void test127(){
  400. runTest(", PR#115 checks the ordering of catch clauses");
  401. }
  402. public void test128(){
  403. runTest("various declared exception permutations");
  404. }
  405. public void test129(){
  406. runTest("ordering of advice kinds as well as cflow and dominates");
  407. }
  408. public void test130(){
  409. runTest("advice on default constructor for a class only referenced via reflection");
  410. }
  411. public void test131(){
  412. runTest("calling and called this params in calls points");
  413. }
  414. public void test132(){
  415. runTest("primitive parameters coercable to Object just like return values are");
  416. }
  417. public void test133(){
  418. runTest("join points in static/dynamic initializers aren't showing up.");
  419. }
  420. public void test134(){
  421. runTest("Gets and sets on a number of variables (field access ???)");
  422. }
  423. public void test135(){
  424. runTest("Joinpoints are showing up on intermediate call sites");
  425. }
  426. public void test136(){
  427. runTest("Reception based on strictfp modifier");
  428. }
  429. public void test137(){
  430. runTest("Subclasses that do not redefine a method are not being handled correctly");
  431. }
  432. public void test138(){
  433. runTest("making sure that super calls are bound to the right methods");
  434. }
  435. public void test139(){
  436. runTest("inheritance, around advice and abstract pointcuts [eachobject] (still)");
  437. }
  438. public void test140(){
  439. runTest("Priviledged aspect methods are missing for privates. [eachobject]");
  440. }
  441. public void test141(){
  442. runTest("exceptions thrown and caught in advice, particularly try+proceed");
  443. }
  444. public void test142(){
  445. runTest("Not and And operators in pointcuts not working");
  446. }
  447. public void test143(){
  448. runTest("Member initializers should run before the current class constructor");
  449. }
  450. public void test144(){
  451. runTest("Coverage tests for Member initializers should run before the current class constructor and after super");
  452. }
  453. public void test145(){
  454. runTest("thisJoinPoint{Static} not visible in if() pcd of named pointcut");
  455. }
  456. public void test146(){
  457. runTest("pcd if() expression visibility at compile-time (minimal operation)");
  458. }
  459. public void test147(){
  460. runTest("pcd if() NPE in compiler when unwinding assignment in pcd if(expr)");
  461. }
  462. public void test148(){
  463. runTest("pcd if() dup methods produced when pointcut after advice etc (javac)");
  464. }
  465. public void test149(){
  466. runTest("pcd if() variants: [anonymous, named] x [execution, call, callTyped, get, set, initializations] x [before, after, around]");
  467. }
  468. // moved to ajcTestsFailing.xml
  469. // public void test150(){
  470. // runTest("advice on advice in usejavac mode");
  471. // }
  472. public void test151(){
  473. runTest("initialization order with this");
  474. }
  475. public void test152(){
  476. runTest("!within and !this handling for callee-side call points");
  477. }
  478. public void test153(){
  479. runTest("private inner interfaces and bytecode visibility");
  480. }
  481. public void test154(){
  482. runTest("elaborated into testing of around on all join points");
  483. }
  484. public void test155(){
  485. runTest("type name hygiene when code comes from aspects in different packages");
  486. }
  487. public void test156(){
  488. runTest("cflowbelow dependencies (from Chris Dutchyn)");
  489. }
  490. public void test157(){
  491. runTest("Compiler incorrectly flagging *1 (non-alphabetic start to signature pattern)");
  492. }
  493. public void test158(){
  494. runTest("Unable to bind privately-introduced field name from introduced method in the same aspect");
  495. }
  496. public void test159(){
  497. runTest("anonymous inner class with aspect");
  498. }
  499. public void test160(){
  500. runTest("Arguments are not being passed in to calls advice");
  501. }
  502. public void test161(){
  503. runTest("interfaces as mixins with introduction");
  504. }
  505. public void test162(){
  506. runTest("functional modifiers work correctly with introduced members");
  507. }
  508. public void test163(){
  509. runTest("ExceptionInInitializerError accessing cflow in aspect initialization - before variants");
  510. }
  511. public void test164(){
  512. runTest("NoClassDefFoundError accessing cflow in aspect initialization - after variants");
  513. }
  514. public void test165(){
  515. runTest("InternalCompilerError in JpPlan when args alone");
  516. }
  517. public void test166(){
  518. runTest("compile error using pcd if() with advice on introduced methods.");
  519. }
  520. public void test167(){
  521. runTest("compile errors boolean using cflow and unimplemented method using around advice on methods introduced by interface");
  522. }
  523. public void test168(){
  524. runTest("aspect as member of interface");
  525. }
  526. public void test169(){
  527. runTest("missing method name to synthetic invocation");
  528. }
  529. public void test170(){
  530. runTest("protected subclass impl of superclass method with default access and variants");
  531. }
  532. public void test171(){
  533. runTest("Exception planning advice");
  534. }
  535. public void test172(){
  536. runTest("unreproduced bug with advice - probably UTR");
  537. }
  538. public void test173(){
  539. runTest("introduced inner interfaces accessible inside aspect");
  540. }
  541. public void test174(){
  542. runTest("validate (enclosing) join point and source locations");
  543. }
  544. public void test175(){
  545. runTest("advice formals are just like method formals");
  546. }
  547. public void test176(){
  548. runTest("advice formals produce errors just like method formals");
  549. }
  550. public void test177(){
  551. runTest("advice throws clauses must be compatible with joinpoints they apply to");
  552. }
  553. public void test178(){
  554. runTest("potential method conflicts with introductions and interfaces and PR#561");
  555. }
  556. public void test179(){
  557. runTest("illegal method conflicts with introductions and interfaces and PR#561");
  558. }
  559. public void test180(){
  560. runTest("AspectOf available for different aspect types");
  561. }
  562. public void test181(){
  563. runTest("access to all members of class and inner class from privileged aspect");
  564. }
  565. public void test182(){
  566. runTest("cflow alone with around produces compiler bcg StackOverflowError");
  567. }
  568. public void test183(){
  569. runTest("get/set join points run for complex assignment operators (+=, etc.) (working)");
  570. }
  571. public void test184(){
  572. runTest("this available in introduced field initializers");
  573. }
  574. public void test185(){
  575. runTest("Introduced type unavailable to cast expressions in introduced methods");
  576. }
  577. public void test186(){
  578. runTest("Introduced type unavailable to qualified new expressions in introduced methods");
  579. }
  580. public void test187(){
  581. runTest("Introduced type unavailable to cast expressions in introduced field initializers");
  582. }
  583. public void test188(){
  584. runTest("Aspect type unavailable to qualified new expressions in body of introduced methods");
  585. }
  586. public void test189(){
  587. runTest("Introduced type unavailable to qualified new expressions in introduced field initializers");
  588. }
  589. public void test190(){
  590. runTest("variable slots and finally/catch causing verify errors");
  591. }
  592. public void test191(){
  593. runTest("after advice on static method with pcd if() using result");
  594. }
  595. public void test192(){
  596. runTest("after advice on static method with pcd if() using result through pointcut");
  597. }
  598. public void test193(){
  599. runTest("AbstractMethodError for introduced methods (order 1)");
  600. }
  601. public void test194(){
  602. runTest("AbstractMethodError for introduced methods (order 2)");
  603. }
  604. public void test195(){
  605. runTest("AbstractMethodError for introduced methods (order 3)");
  606. }
  607. public void test196(){
  608. runTest("AbstractMethodError for introduced methods (order 4)");
  609. }
  610. public void test197(){
  611. runTest("AbstractMethodError for introduced methods (order 5)");
  612. }
  613. public void test198(){
  614. runTest("declare error and abstract pointcuts");
  615. }
  616. public void test199(){
  617. runTest("Exercise runtime classes (optionally in 1.1 VM)");
  618. }
  619. public void test200(){
  620. runTest("VerifyError after around advice falls off end of tryCatch");
  621. }
  622. public void test201(){
  623. runTest("Named within pointcuts failing");
  624. }
  625. public void test202(){
  626. runTest("aspect with private abstract pointcut");
  627. }
  628. public void test203(){
  629. runTest("concrete aspect unable to access abstract package-private pointcut in parent for overriding");
  630. }
  631. public void test204(){
  632. runTest("inner, outer, and outside-package subaspects of an aspect with abstract protected-, public-, and default-access pointcuts");
  633. }
  634. public void test205(){
  635. runTest("inner subaspects of an aspect with private pointcut");
  636. }
  637. public void test206(){
  638. runTest("outer subaspects of an aspect with private pointcut");
  639. }
  640. public void test207(){
  641. runTest("abstract aspect used statically should not cause instantiation of advice or pointcut");
  642. }
  643. public void test208(){
  644. runTest("private inner interface accessible in scope when declared on outer class");
  645. }
  646. public void test209(){
  647. runTest("accessing protected superclass members in and outside CCC from body of method introduction");
  648. }
  649. public void test210(){
  650. runTest("accessing private superclass members from body of method introduction");
  651. }
  652. public void test211(){
  653. runTest("simple test for around and casting");
  654. }
  655. public void test212(){
  656. runTest("aroundInner 1 - around advice inner Thread subclass running proceed but not writing field");
  657. }
  658. public void test213(){
  659. runTest("aroundInner 2 - around advice inner Runnable running proceed and writing method-final proxy");
  660. }
  661. public void test214(){
  662. runTest("aroundInner 3 - around advice inner class running proceed and writing field");
  663. }
  664. public void test215(){
  665. runTest("aroundInner 4 - around advice inner Thread subclass running proceed and writing field");
  666. }
  667. public void test216(){
  668. runTest("aroundInner 5 - around advice inner Runnable (subinterface) running proceed and writing field introduced on subinterface");
  669. }
  670. public void test217(){
  671. runTest("Named local class closing over proceed invocation");
  672. }
  673. public void test218(){
  674. runTest("beautiful recursive computation of factorial with around is now supported");
  675. }
  676. public void test219(){
  677. runTest("multi-dispatch not used for named pcd references");
  678. }
  679. public void test220(){
  680. runTest("multi-dispatch implemented through around + args");
  681. }
  682. public void test221(){
  683. runTest("unrecognized aspect should not net Cloneable and Serializable warnings");
  684. }
  685. public void test222(){
  686. //FIXME AV - infinite loop on JRockit in m5 advice - don't know why
  687. runTest("unreachable code generated by around advice on the execution of void methods");
  688. }
  689. public void test223(){
  690. runTest("Overriding method implementations using introduction on interfaces");
  691. }
  692. public void test224(){
  693. runTest("more coverage for around and concrete methods on interfaces");
  694. }
  695. public void test225(){
  696. runTest("invalid number and type of proceed arguments");
  697. }
  698. public void test226(){
  699. runTest("after returning advice order");
  700. }
  701. public void test227(){
  702. runTest("after returning advice param");
  703. }
  704. public void test228(){
  705. runTest("! and declaring types with callee-side call join points");
  706. }
  707. public void test229(){
  708. runTest(". Binding the wrong arguments in withincode(..).");
  709. }
  710. public void test230(){
  711. runTest(". Matching arguments in cflow correctly.");
  712. }
  713. public void test231(){
  714. runTest(". Binding variables with numbers in their name with pertarget(..)'s.");
  715. }
  716. public void test232(){
  717. runTest("second arg in formal on shared joinpoint with pcd if() causes verify error ??");
  718. }
  719. public void test233(){
  720. runTest("access to private members from privileged aspect");
  721. }
  722. public void test234(){
  723. runTest("inner classes of privileged aspects cannot see target class private members");
  724. }
  725. public void test235(){
  726. runTest("aspects should get package access outside the file");
  727. }
  728. public void test236(){
  729. runTest("subclass advice not run for join points selected by superclass cflow-based pointcuts");
  730. }
  731. public void test237(){
  732. runTest("more issues with abstract aspects and cflow pointcuts");
  733. }
  734. public void test238(){
  735. runTest("compile fails for aspect derived from percflow base aspect unless pointcut excludes base aspect and subaspects");
  736. }
  737. public void test239(){
  738. runTest("pertarget stack overflow getting name of anonymous (Interface) class");
  739. }
  740. public void test240(){
  741. runTest("pertarget stack overflow getting name of anonymous (Object) class");
  742. }
  743. public void test241(){
  744. runTest("pertarget runtime stack overflow (getting name of anonymous (Object) class?)");
  745. }
  746. public void test242(){
  747. runTest("subaspect method declaration on superaspect inner interface (names)");
  748. }
  749. public void test243(){
  750. runTest("subaspect method declaration on superaspect inner interface (access)");
  751. }
  752. public void test244(){
  753. runTest("subaspect method declaration on superaspect inner interface (types)");
  754. }
  755. public void test245(){
  756. runTest("around AST type XXX");
  757. }
  758. public void test246(){
  759. runTest("around all execution with double assignment in initializer (simple)");
  760. }
  761. public void test247(){
  762. runTest("around all execution with double assignment in initializer (coverage)");
  763. }
  764. public void test248(){
  765. runTest("changing this in around's proceed reported by Rich Price");
  766. }
  767. public void test249(){
  768. runTest("default package for aspect introductions is not the current package");
  769. }
  770. public void test250(){
  771. runTest("anon class written to wrong directory");
  772. }
  773. public void test251(){
  774. runTest("unqualified transitive pointcut references not resolved");
  775. }
  776. public void test252(){
  777. runTest("unqualified transitive pointcut references not resolved - 2");
  778. }
  779. public void test253(){
  780. runTest("direct use outside aspect of defined abstract pointcut");
  781. }
  782. public void test254(){
  783. runTest("direct use outside aspect of undefined abstract pointcut");
  784. }
  785. public void test255(){
  786. runTest("indirect use outside aspect of undefined abstract pointcut");
  787. }
  788. public void test256(){
  789. runTest("simple call join point tests for JoinPoint SourceLocation context");
  790. }
  791. public void test257(){
  792. runTest("!target with second advice on casted call");
  793. }
  794. public void test258(){
  795. runTest("name binding in around cflow");
  796. }
  797. public void test259(){
  798. runTest("name binding in around cflow - 2");
  799. }
  800. public void test260(){
  801. runTest("around name-binding in cflows using factorial");
  802. }
  803. public void test261(){
  804. runTest("replacing this or target in around advice");
  805. }
  806. public void test262(){
  807. runTest("after returning from initialization and after executing constructor");
  808. }
  809. public void test263(){
  810. runTest("after returning from initialization causes ExceptionInInitializer in aspect");
  811. }
  812. public void test264(){
  813. runTest("name binding in before cflow containing cflowbelow");
  814. }
  815. public void test265(){
  816. runTest("file order in type searching");
  817. }
  818. public void test266(){
  819. runTest("simple declare warning (NPE)");
  820. }
  821. public void test267(){
  822. runTest("ajc dies on cflow into field init anon class see knownbugs.txt");
  823. }
  824. public void test268(){
  825. runTest("Incrementing interface-introduced field");
  826. }
  827. public void test269(){
  828. runTest("The dynamic type, not the static one, should be used in if pcds");
  829. }
  830. public void test270(){
  831. runTest("bad interaction with after returning, around and void methods (from Rich Price)");
  832. }
  833. public void test271(){
  834. runTest("type pattern matching for inner classes (from Ken Horn)");
  835. }
  836. public void test272(){
  837. runTest("static initializer member name");
  838. }
  839. public void test273(){
  840. runTest("cflow pcd syntax error");
  841. }
  842. public void test274(){
  843. runTest("binding args with indeterminate prefix and suffix");
  844. }
  845. public void test275(){
  846. runTest("check arg types with indeterminate prefix and suffix");
  847. }
  848. public void test276(){
  849. runTest("testing and binding args with single indeterminate prefix and suffix");
  850. }
  851. public void test277(){
  852. runTest("binding handler args with indeterminate prefix and suffix");
  853. }
  854. public void test278(){
  855. runTest("Compiling java.lang.Object with ajc yields non-verifying bytecode");
  856. }
  857. public void test279(){
  858. runTest("method-local class defined in around return statement");
  859. }
  860. public void test280(){
  861. runTest("CE expected for assignment to arg in if pcd");
  862. }
  863. public void test281(){
  864. runTest("advising field get/sets when accessing via super");
  865. }
  866. public void test282(){
  867. runTest("accessing private members in outer types");
  868. }
  869. public void test283(){
  870. runTest("can't apply around advice to the execution of around advice");
  871. }
  872. public void test284(){
  873. runTest("incompatible advice throws clause are a compile-time error");
  874. }
  875. }