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.

ajcTests.xml 183KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250
  1. <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
  2. <!--
  3. known keywords:
  4. purejava
  5. broken-test ??
  6. messages-vary one of many (usually two) test specs that differ only in
  7. messages expected by the different compilers
  8. new-messages-vary ?? to split like messages-vary
  9. fail-{...} test fails in some configuration
  10. fail-unimplmented eajc throwing "unimplemented" exception
  11. fail-commandLine fails in ajc on command line (move to ajcTestsBroken.xml)
  12. fail-in-eclipse fail when harness in run from inside eclipse
  13. fail-publicType now fixed - no longer presenting error for public type in wrong file
  14. from-{file} from original {file}.txt for file in
  15. java, bigjava, resolved_1*, 14tests, ng, errors, design, base...
  16. -->
  17. <suite>
  18. <ajc-test dir="base/test100"
  19. title="static and non-static before methods -- one file"
  20. keywords="from-base">
  21. <compile files="Driver.java"/>
  22. <run class="Driver"/>
  23. </ajc-test>
  24. <ajc-test dir="base/test101"
  25. title="static and non-static before methods -- many files"
  26. keywords="from-base">
  27. <compile files="Driver.java,Foo.java,Bar.java,Pos.java"/>
  28. <run class="Driver"/>
  29. </ajc-test>
  30. <ajc-test dir="base/test102"
  31. title="this redirection in non-static before methods" keywords="from-base">
  32. <compile files="Driver.java"/>
  33. <run class="Driver"/>
  34. </ajc-test>
  35. <ajc-test dir="base/test103" title="DEPRECATED: introductions"
  36. keywords="from-base">
  37. <compile files="Driver.java"/>
  38. <run class="Driver"/>
  39. </ajc-test>
  40. <ajc-test dir="base/test104" title="before constructors -- one file"
  41. keywords="from-base">
  42. <compile files="Driver.java"/>
  43. <run class="Driver"/>
  44. </ajc-test>
  45. <ajc-test dir="base/test105"
  46. title="advise weaves find methods typed to builtins or non-woven classes"
  47. keywords="from-base">
  48. <compile files="Driver.java"/>
  49. <run class="Driver"/>
  50. </ajc-test>
  51. <ajc-test dir="base/test106"
  52. title="make sure new weaves work inside of packages" keywords="from-base">
  53. <compile files="Driver.java,pkg/Obj.java"/>
  54. <run class="Driver"/>
  55. </ajc-test>
  56. <ajc-test dir="base/test107"
  57. title="make sure new weaves work inside of packages (again)"
  58. keywords="from-base">
  59. <compile
  60. files="Driver.java,C1.java,C2.java,pack1/Foo.java,pack2/Foo.java,pack3/Foo.java"/>
  61. <run class="Driver"/>
  62. </ajc-test>
  63. <ajc-test dir="base/test108"
  64. title="Inheritance of class and aspect vars in weaves"
  65. keywords="from-base">
  66. <compile files="Driver.java"/>
  67. <run class="Driver"/>
  68. </ajc-test>
  69. <ajc-test dir="base/test109"
  70. title="Accessibility of class and aspect members from inside weaves"
  71. keywords="from-base">
  72. <compile files="Driver.java,Aspect.java,Foo.java"/>
  73. <run class="Driver"/>
  74. </ajc-test>
  75. <ajc-test dir="base/test110"
  76. title="Packaged aspects referring to packaged classes"
  77. keywords="from-base">
  78. <compile files="Driver.java,pAspect/Aspect.java,pClass/Class.java"/>
  79. <run class="Driver"/>
  80. </ajc-test>
  81. <ajc-test dir="base/test111"
  82. title="Inheritance of methods advised by aspects" keywords="from-base">
  83. <compile
  84. files="Driver.java,SubClass.java,SuperClass.java,SuperAspect.java"/>
  85. <run class="Driver"/>
  86. </ajc-test>
  87. <ajc-test dir="base/test112" title="Inherited weaves on constructor"
  88. keywords="from-base">
  89. <compile files="Driver.java"/>
  90. <run class="Driver"/>
  91. </ajc-test>
  92. <ajc-test dir="base/test113" title="Initializers in Aspect and Class Bodies"
  93. keywords="from-base">
  94. <compile files="Driver.java"/>
  95. <run class="Driver"/>
  96. </ajc-test>
  97. <ajc-test dir="base/test114"
  98. title="Weaver Resolution of method names in method calls passed as args"
  99. keywords="from-base">
  100. <compile files="Driver.java"/>
  101. <run class="Driver"/>
  102. </ajc-test>
  103. <ajc-test dir="base/test115"
  104. title="DEPRECATED: Introduce constructor with class inheritance"
  105. keywords="from-base">
  106. <compile files="Driver.java"/>
  107. <run class="Driver"/>
  108. </ajc-test>
  109. <ajc-test dir="base/test116"
  110. title="empty and singular patterns on modifiers and throws"
  111. keywords="from-base">
  112. <compile files="Driver.java"/>
  113. <run class="Driver"/>
  114. </ajc-test>
  115. <!-- we're not implementing static inter-type fields on interfaces in 1.1 -->
  116. <ajc-test dir="base/test117" title="DEPRECATED: introduce of variables"
  117. keywords="from-base,knownLimitation">
  118. <compile files="Driver.java"/>
  119. <run class="Driver"/>
  120. </ajc-test>
  121. <ajc-test dir="base/test118" title="DEPRECATED: Introduce of constructors"
  122. keywords="from-base">
  123. <compile files="Driver.java"/>
  124. <run class="Driver"/>
  125. </ajc-test>
  126. <ajc-test dir="base/test119" title="Local declarations in advise bodies"
  127. keywords="from-base">
  128. <compile files="Driver.java"/>
  129. <run class="Driver"/>
  130. </ajc-test>
  131. <ajc-test dir="base/test120" title="unicodes and literals"
  132. keywords="from-base,purejava">
  133. <compile files="Driver.java"/>
  134. <run class="Driver"/>
  135. </ajc-test>
  136. <ajc-test dir="base/test121"
  137. title="advises on introduced methods and constructors"
  138. keywords="from-base">
  139. <compile files="Driver.java"/>
  140. <run class="Driver"/>
  141. </ajc-test>
  142. <ajc-test dir="base/test122"
  143. title="DEPRECATED: Method introduction into interface implemented by abstract class"
  144. keywords="from-base">
  145. <compile files="Driver.java"/>
  146. <run class="Driver"/>
  147. </ajc-test>
  148. <ajc-test dir="base/test123" title="Crossing super calls in constructors"
  149. keywords="from-base">
  150. <compile files="Driver.java"/>
  151. <run class="Driver"/>
  152. </ajc-test>
  153. <ajc-test dir="base/test124" title="empty modifier pattern"
  154. keywords="from-base">
  155. <compile files="Driver.java"/>
  156. <run class="Driver"/>
  157. </ajc-test>
  158. <ajc-test dir="base/test125"
  159. title="Alpha conversion of argument names in designators"
  160. keywords="from-base">
  161. <compile files="Driver.java"/>
  162. <run class="Driver"/>
  163. </ajc-test>
  164. <ajc-test dir="base/test126" title="For Statement"
  165. keywords="from-base,purejava">
  166. <compile files="Driver.java"/>
  167. <run class="Driver"/>
  168. </ajc-test>
  169. <ajc-test dir="base/test127"
  170. title="advice uses its own formals to get actuals" keywords="from-base">
  171. <compile files="Driver.java"/>
  172. <run class="Driver"/>
  173. </ajc-test>
  174. <ajc-test dir="base/test128"
  175. title="DEPRECATED: introduce weaves can use this" keywords="from-base">
  176. <compile files="Driver.java"/>
  177. <run class="Driver"/>
  178. </ajc-test>
  179. <ajc-test dir="base/test129"
  180. title="DEPRECATED: introduce of abstract methods works"
  181. keywords="from-base">
  182. <compile files="Driver.java"/>
  183. <run class="Driver"/>
  184. </ajc-test>
  185. <ajc-test dir="base/test130"
  186. title="multiple arounds successfully intercept and return own values"
  187. keywords="from-base">
  188. <compile files="Driver.java"/>
  189. <run class="Driver"/>
  190. </ajc-test>
  191. <ajc-test dir="base/test132"
  192. title="proper matching of overloaded constructors" keywords="from-base">
  193. <compile files="Driver.java"/>
  194. <run class="Driver"/>
  195. </ajc-test>
  196. <ajc-test dir="base/test133"
  197. title="correct super call lookup for method().name()"
  198. keywords="from-base,purejava">
  199. <compile files="Driver.java"/>
  200. <run class="Driver"/>
  201. </ajc-test>
  202. <ajc-test dir="base/test134"
  203. title="proper handling of formals in catch advice" keywords="from-base">
  204. <compile files="Driver.java"/>
  205. <run class="Driver"/>
  206. </ajc-test>
  207. <ajc-test dir="base/test135"
  208. title="proper values for thisJoinPoint attributes" keywords="from-base">
  209. <compile
  210. files="Driver.java,JoinPointFields.java,TopFoo.java,pack/PackFoo.java,pack/JoinPointFields.java,pack/PackJoinPointFields.java"/>
  211. <run class="test135.Driver"/>
  212. </ajc-test>
  213. <ajc-test dir="base/test136" title="supers, supers, supers"
  214. keywords="from-base">
  215. <compile files="Driver.java"/>
  216. <run class="Driver"/>
  217. </ajc-test>
  218. <ajc-test dir="base/test137"
  219. title="operations on private and protected aspect members (++, -- in partciular)"
  220. keywords="from-base">
  221. <compile files="Driver.java"/>
  222. <run class="Driver"/>
  223. </ajc-test>
  224. <ajc-test dir="base/test138" title="only register things once"
  225. keywords="from-base">
  226. <compile files="Driver.java"/>
  227. <run class="Driver"/>
  228. </ajc-test>
  229. <ajc-test dir="base/test139" title="inner aspects and around"
  230. keywords="from-base">
  231. <compile files="Driver.java"/>
  232. <run class="Driver"/>
  233. </ajc-test>
  234. <ajc-test dir="base/test140"
  235. title="aspect inheritance and advice, introduction" keywords="from-base">
  236. <compile files="Driver.java"/>
  237. <run class="Driver"/>
  238. </ajc-test>
  239. <ajc-test dir="base/test141" title="thisResultObject for primitives"
  240. keywords="from-base">
  241. <compile files="Driver.java"/>
  242. <run class="Driver"/>
  243. </ajc-test>
  244. <ajc-test dir="base/test142" title="introductions calling super."
  245. keywords="from-base">
  246. <compile files="Driver.java"/>
  247. <run class="Driver"/>
  248. </ajc-test>
  249. <ajc-test dir="base" pr="384"
  250. title="allow one argument calls even when there's a comma in the arglist"
  251. keywords="from-base">
  252. <compile files="OneArgCallsIsOkay.java"/>
  253. <run class="OneArgCallsIsOkay"/>
  254. </ajc-test>
  255. <ajc-test dir="new"
  256. title="advice on calls to static methods even works when called on super"
  257. keywords="from-base">
  258. <compile files="SuperStaticCallJoinPoint.java"/>
  259. <run class="SuperStaticCallJoinPoint"/>
  260. </ajc-test>
  261. <ajc-test dir="new" pr="99"
  262. title="combined logic expression (handling coericions vs. parens)"
  263. keywords="from-java,purejava">
  264. <compile files="CombinedLogic.java"/>
  265. <run class="CombinedLogic"/>
  266. </ajc-test>
  267. <ajc-test dir="new" pr="99"
  268. title="comment after class closes (with no new line at end)"
  269. keywords="from-java,purejava">
  270. <compile files="CommentAfterClass.java"/>
  271. <run class="CommentAfterClass"/>
  272. </ajc-test>
  273. <ajc-test dir="new" title="handle multiple nested inner classes"
  274. keywords="from-java">
  275. <compile files="InnerHell.java"/>
  276. <run class="InnerHell"/>
  277. </ajc-test>
  278. <ajc-test dir="new" pr="108" title="multi-dimensional array initializers"
  279. keywords="from-java,purejava">
  280. <compile files="MultiArrays.java"/>
  281. <run class="MultiArrays"/>
  282. </ajc-test>
  283. <ajc-test dir="new" pr="125"
  284. title="probelm with the generated names of exceptions"
  285. keywords="from-java,purejava">
  286. <compile files="ExceptionNames.java"/>
  287. <run class="ExceptionNames"/>
  288. </ajc-test>
  289. <ajc-test dir="new" pr="109"
  290. title="checks if the class field can be used on all of the primitive types"
  291. keywords="from-java,purejava">
  292. <compile files="ClassFieldOnPrimitiveType.java"/>
  293. <run class="ClassFieldOnPrimitiveType"/>
  294. </ajc-test>
  295. <ajc-test dir="new/volatileKeyword" pr="151"
  296. title="advice on a static method" keywords="from-java">
  297. <compile files="Driver.java"/>
  298. <run class="Driver"/>
  299. </ajc-test>
  300. <ajc-test dir="new/innerConsSyntax" pr="192"
  301. title="inner constructor syntax causes compile error" keywords="from-java">
  302. <compile files="Driver.java"/>
  303. <run class="Driver"/>
  304. </ajc-test>
  305. <ajc-test dir="new/paramWidening" pr="195"
  306. title="widening of method parameters to match javac" keywords="from-java">
  307. <compile files="Driver.java"/>
  308. <run class="Driver"/>
  309. </ajc-test>
  310. <ajc-test dir="pureJava/equalsMethOnStr" pr="214"
  311. title="equals method on quoted strings" keywords="from-java">
  312. <compile files="Driver.java"/>
  313. <run class="Driver"/>
  314. </ajc-test>
  315. <ajc-test dir="new" pr="313"
  316. title="parenthesized string literals matching primitive type names"
  317. keywords="from-java">
  318. <compile files="ParenPrimitive.java"/>
  319. <run class="ParenPrimitive"/>
  320. </ajc-test>
  321. <ajc-test dir="pureJava/anonInnerClass" pr="294"
  322. title="anonymous inner class" keywords="from-java">
  323. <compile files="Driver.java"/>
  324. <run class="Driver"/>
  325. </ajc-test>
  326. <ajc-test dir="new" title="simple type coercions tests" keywords="from-java">
  327. <compile files="TypeCoercions.java"/>
  328. <run class="TypeCoercions"/>
  329. </ajc-test>
  330. <ajc-test dir="new" title="order of type declarations shouldn't matter"
  331. keywords="from-java">
  332. <compile files="OrderOfTypes.java"/>
  333. <run class="OrderOfTypes"/>
  334. </ajc-test>
  335. <ajc-test dir="pureJava"
  336. title="parsing of parenthesized 'this' (in returns)" keywords="from-java">
  337. <compile files="ReturnThis.java"/>
  338. <run class="ReturnThis"/>
  339. </ajc-test>
  340. <ajc-test dir="new" title="Scanner non recognizing strictfp."
  341. keywords="from-java">
  342. <compile files="StrictFp.java"/>
  343. <run class="StrictFp"/>
  344. </ajc-test>
  345. <ajc-test dir="pureJava" title="Strings are folded and interned correctly"
  346. keywords="from-java">
  347. <compile files="StringFold.java"/>
  348. <run class="StringFold"/>
  349. </ajc-test>
  350. <ajc-test dir="pureJava" title="Cast binds tighter than equality tests"
  351. keywords="from-java">
  352. <compile files="CastAndBinary.java"/>
  353. <run class="CastAndBinary"/>
  354. </ajc-test>
  355. <ajc-test dir="pureJava" title="Boundary base values can be parsed"
  356. keywords="from-java">
  357. <compile files="BoundaryNums.java"/>
  358. <run class="BoundaryNums"/>
  359. </ajc-test>
  360. <ajc-test dir="pureJava"
  361. title="State is passed correctly across nested annonymous inners"
  362. keywords="from-java">
  363. <compile files="NestedInners.java"/>
  364. <run class="NestedInners"/>
  365. </ajc-test>
  366. <ajc-test dir="pureJava"
  367. title="?: expressions should typecheck in interesting ways"
  368. keywords="from-java">
  369. <compile files="TriTestTypecheck.java"/>
  370. <run class="TriTestTypecheck"/>
  371. </ajc-test>
  372. <ajc-test dir="pureJava"
  373. title="cast expressions should allow casts to/from interfaces at compile-time."
  374. keywords="from-java">
  375. <compile files="InterfaceCast.java"/>
  376. <run class="InterfaceCast"/>
  377. </ajc-test>
  378. <ajc-test dir="pureJava"
  379. title="various anonymous inner classes plus super types tests"
  380. keywords="from-java">
  381. <compile files="InnerSuper.java"/>
  382. <run class="InnerSuper"/>
  383. </ajc-test>
  384. <ajc-test dir="new"
  385. title="Doesn't parse an array-returning method that throws an exception"
  386. keywords="from-java,purejava">
  387. <compile files="ArrayMethod.java"/>
  388. <run class="ArrayMethod"/>
  389. </ajc-test>
  390. <ajc-test dir="new"
  391. title="Crashes when a lot of zeros are in front of a double variable [!!! purejava]"
  392. keywords="from-java">
  393. <compile files="Zeros.java"/>
  394. <run class="Zeros"/>
  395. </ajc-test>
  396. <ajc-test dir="pureJava" title="Various comment syntaxes should be handled."
  397. keywords="from-java">
  398. <compile files="CommentSyntax.java"/>
  399. <run class="CommentSyntax"/>
  400. </ajc-test>
  401. <ajc-test dir="pureJava/abstractInner"
  402. title="Abstract inner classes across package boundaries"
  403. keywords="from-java">
  404. <compile files="C.java,pkg/A.java"/>
  405. <run class="C"/>
  406. </ajc-test>
  407. <ajc-test dir="pureJava"
  408. title="inner classes accessing outers and some more inner class names"
  409. keywords="from-java">
  410. <compile files="InnerAccess.java"/>
  411. <run class="InnerAccess"/>
  412. </ajc-test>
  413. <ajc-test dir="pureJava"
  414. title="remember to cast folded values down to the proper types."
  415. keywords="from-java">
  416. <compile files="CastingFoldedValues.java"/>
  417. <run class="CastingFoldedValues"/>
  418. </ajc-test>
  419. <ajc-test dir="pureJava"
  420. title="inner classes can be built using protected constructors in super"
  421. keywords="from-java">
  422. <compile files="VariousConstructors.java"/>
  423. <run class="VariousConstructors"/>
  424. </ajc-test>
  425. <ajc-test dir="pureJava"
  426. title="check that nested constructions of local classes work"
  427. keywords="from-java,purejava">
  428. <compile files="NestedConstructionsOfLocalClasses.java"/>
  429. <run class="NestedConstructionsOfLocalClasses"/>
  430. </ajc-test>
  431. <ajc-test dir="pureJava"
  432. title="Make sure anonymous classes can have non-nullary constructors"
  433. keywords="from-java,purejava">
  434. <compile files="NonNullaryAnonymous.java"/>
  435. <run class="NonNullaryAnonymous"/>
  436. </ajc-test>
  437. <ajc-test dir="new" pr="417"
  438. title="Full names are dropped from inner interfaces"
  439. keywords="from-java,purejava">
  440. <compile files="PR417a.java"/>
  441. <run class="PR417a"/>
  442. </ajc-test>
  443. <ajc-test dir="new" pr="417"
  444. title="Making sure full names stay on static inner classes"
  445. keywords="from-java,purejava">
  446. <compile files="PR417b.java"/>
  447. <run class="PR417b"/>
  448. </ajc-test>
  449. <ajc-test dir="pureJava" pr="401"
  450. title="The current AspectJ compiler cannot parse qualified superclass constructor invocations"
  451. keywords="from-java">
  452. <compile files="QualifiedSuperClassConstructorInvocations_PR401.java"/>
  453. <run class="QualifiedSuperClassConstructorInvocations_PR401"/>
  454. </ajc-test>
  455. <ajc-test dir="pureJava" pr="421"
  456. title="More thourough test of static members using full names"
  457. keywords="from-java">
  458. <compile
  459. files="Statics.java,StaticMembers_PR421.java,p1/C1.java,p1/P1Statics.java,p1/subp1/SubC1.java,p1/p2/P1P2Statics.java"/>
  460. <run class="StaticMembers_PR421"/>
  461. </ajc-test>
  462. <ajc-test dir="pureJava" pr="421"
  463. title="More thourough test of static members using imports"
  464. keywords="from-java">
  465. <compile
  466. files="Statics.java,StaticMembersImports_PR421.java,p1/C1.java,p1/P1Statics.java,p1/subp1/SubC1.java,p1/p2/P1P2Statics.java"/>
  467. <run class="StaticMembersImports_PR421"/>
  468. </ajc-test>
  469. <ajc-test dir="pureJava/conflictingPackageNames" pr="437"
  470. title="Looking in class Java for java.lang.String WITH separate compilation"
  471. keywords="from-java">
  472. <compile files="Java.java"/>
  473. <compile files="Main.java"/>
  474. <run class="Main"/>
  475. </ajc-test>
  476. <ajc-test dir="pureJava/conflictingPackageNames" pr="437"
  477. title="Looking in class Java for java.lang.String WITHOUT separate compilation"
  478. keywords="from-java">
  479. <compile files="Main.java,Java.java"/>
  480. <run class="Main"/>
  481. </ajc-test>
  482. <ajc-test dir="pureJava/conflictingPackageNamesWithPackages" pr="437"
  483. title="Looking in class Java for java.lang.String WITH separate compilation with packages"
  484. keywords="from-java">
  485. <compile files="Java.java"/>
  486. <compile files="Main.java"/>
  487. <run class="conflictingPackageNamesWithPackages.Main"/>
  488. </ajc-test>
  489. <ajc-test dir="pureJava/conflictingPackageNamesWithPackages" pr="437"
  490. title="Looking in class Java for java.lang.String WITHOUT separate compilation with packages"
  491. keywords="from-java">
  492. <compile files="Main.java,Java.java"/>
  493. <run class="conflictingPackageNamesWithPackages.Main"/>
  494. </ajc-test>
  495. <ajc-test dir="pureJava" title="Testing ternary operations."
  496. keywords="from-java">
  497. <compile files="MultiTernaryOps.java"/>
  498. <run class="MultiTernaryOps"/>
  499. </ajc-test>
  500. <ajc-test dir="pureJava" title="Lifting locals in switch statements."
  501. keywords="from-java">
  502. <compile files="SwitchStmtLocals.java"/>
  503. <run class="SwitchStmtLocals"/>
  504. </ajc-test>
  505. <ajc-test dir="pureJava"
  506. title="Getting confused when looking up method signatures"
  507. keywords="from-java">
  508. <compile files="MethodSigs.java"/>
  509. <run class="MethodSigs"/>
  510. </ajc-test>
  511. <ajc-test dir="pureJava"
  512. title="Not recognizing the chars '\0', '\1', '\2', '\3', '\4', '\5', '\6', '\7'"
  513. keywords="from-java">
  514. <compile files="Chars.java"/>
  515. <run class="Chars"/>
  516. </ajc-test>
  517. <ajc-test dir="pureJava"
  518. title="Test chars '\0', '\1', '\2', '\3', '\4', '\5', '\6', '\7' with a case statement"
  519. keywords="from-java">
  520. <compile files="CaseClauses.java"/>
  521. <run class="CaseClauses"/>
  522. </ajc-test>
  523. <ajc-test dir="pureJava"
  524. title="Checking character values with all the unicode chars."
  525. keywords="from-java">
  526. <compile files="CharsUnicode.java"/>
  527. <run class="CharsUnicode"/>
  528. </ajc-test>
  529. <ajc-test dir="pureJava"
  530. title="Trouble finding methods with the same name and different parameter types"
  531. keywords="from-java">
  532. <compile files="MethodsWithTheSameName.java"/>
  533. <run class="MethodsWithTheSameName"/>
  534. </ajc-test>
  535. <ajc-test dir="pureJava"
  536. title="Binding non-public static inner classes of interfaces in other packages"
  537. keywords="from-java">
  538. <compile
  539. files="StaticClassesInInterfaces.java,anotherPackage/AnotherPackageInterface.java"/>
  540. <run class="StaticClassesInInterfaces"/>
  541. </ajc-test>
  542. <ajc-test dir="pureJava"
  543. title="Not recognizing the octal chars '\0', '\1', '\2', '\3', '\4', '\5', '\6', '\7'"
  544. keywords="from-java">
  545. <compile files="OctalChars.java"/>
  546. <run class="OctalChars"/>
  547. </ajc-test>
  548. <ajc-test dir="pureJava"
  549. title="Members with the same name as their package cause confusion with fully-qualified names."
  550. keywords="from-java">
  551. <compile files="samenames/Main.java,samenames/Other.java"/>
  552. <run class="samenames.Main"/>
  553. </ajc-test>
  554. <ajc-test dir="pureJava"
  555. title="Fully-qual'ed names with same start as variable names"
  556. keywords="from-java">
  557. <compile files="FullNames.java"/>
  558. <run class="FullNames"/>
  559. </ajc-test>
  560. <ajc-test dir="pureJava"
  561. title="Fully qualifying inner classes within annonymous classes causes problems."
  562. keywords="from-java">
  563. <compile files="InnerClassesInAnnonymousClasses.java"/>
  564. <run class="InnerClassesInAnnonymousClasses"/>
  565. </ajc-test>
  566. <ajc-test dir="pureJava"
  567. title="Calls to methods in outer annonymous classes are being qual's incorrectly with 'this'"
  568. keywords="from-java">
  569. <compile files="MisplacedThisInAnnonymousInnerClasses.java"/>
  570. <run class="MisplacedThisInAnnonymousInnerClasses"/>
  571. </ajc-test>
  572. <ajc-test dir="pureJava/innersFromSourceAndBytecode"
  573. title="Reading inner classes from source and bytecode (1) -- was failing"
  574. keywords="from-java">
  575. <compile files="C.java,D.java"/>
  576. <compile files="Main.java,C.java"/>
  577. <run class="Main"/>
  578. </ajc-test>
  579. <ajc-test dir="pureJava/innersFromSourceAndBytecode"
  580. title="Reading inner classes from source and bytecode (2)"
  581. keywords="from-java">
  582. <compile files="Main.java,C.java,D.java"/>
  583. <run class="Main"/>
  584. </ajc-test>
  585. <ajc-test dir="pureJava/innersFromSourceAndBytecode"
  586. title="Reading inner classes from source and bytecode (3)"
  587. keywords="from-java">
  588. <compile files="C.java,D.java"/>
  589. <compile files="Main.java,C.java,D.java"/>
  590. <run class="Main"/>
  591. </ajc-test>
  592. <ajc-test dir="pureJava"
  593. title="Not lifting types correctly with bytes and shorts with ternary ops"
  594. keywords="from-java">
  595. <compile files="TernaryPrimitiveOps.java"/>
  596. <run class="TernaryPrimitiveOps"/>
  597. </ajc-test>
  598. <ajc-test dir="pureJava"
  599. title="Not looking up methods inside of anonymous declarations correctly."
  600. keywords="from-java">
  601. <compile files="AnonymousMethodLookup.java"/>
  602. <run class="AnonymousMethodLookup"/>
  603. </ajc-test>
  604. <ajc-test dir="pureJava"
  605. title="Resolving extended classes with array parameters"
  606. keywords="from-java">
  607. <compile files="ResolvingArrayParameters.java"/>
  608. <run class="ResolvingArrayParameters"/>
  609. </ajc-test>
  610. <ajc-test dir="pureJava"
  611. title="Assignments as second arguments in ternary operators."
  612. keywords="from-java">
  613. <compile files="TernaryAssignments.java"/>
  614. <run class="TernaryAssignments"/>
  615. </ajc-test>
  616. <ajc-test dir="pureJava" title="Using 'aspect' as identifier is legal TODO"
  617. keywords="from-java,purejava">
  618. <compile files="KeywordAspect.java"/>
  619. <run class="KeywordAspect"/>
  620. </ajc-test>
  621. <ajc-test dir="pureJava"
  622. title="Using 'pointcut' as identifier is legal TODO"
  623. keywords="from-java,purejava">
  624. <compile files="KeywordPointcut.java"/>
  625. <run class="KeywordPointcut"/>
  626. </ajc-test>
  627. <ajc-test dir="pureJava" title="Conflicting inner classes with interfaces."
  628. keywords="from-java">
  629. <compile files="PR413.java"/>
  630. <run class="PR413"/>
  631. </ajc-test>
  632. <ajc-test dir="new" pr="408"
  633. title="Not binding constructor when using more than one compilation"
  634. keywords="from-java,purejava">
  635. <compile files="OuterAbstract_PR408.java"/>
  636. <compile files="ExtendsOuterAbstract_PR408.java"/>
  637. <compile files="ConstructorNotFound_PR408.java"/>
  638. <run class="ConstructorNotFound_PR408"/>
  639. </ajc-test>
  640. <ajc-test dir="pureJava" title="confusions of casts and parens"
  641. keywords="from-java">
  642. <compile files="CastVsParen.java"/>
  643. <run class="CastVsParen"/>
  644. </ajc-test>
  645. <ajc-test dir="pureJava"
  646. title="default constructors seen by inner classes subtyping outers"
  647. keywords="from-java">
  648. <compile files="DefaultConsAndInner.java"/>
  649. <run class="DefaultConsAndInner"/>
  650. </ajc-test>
  651. <ajc-test dir="pureJava"
  652. title="folding fields set to anonymous instances containing self-references"
  653. keywords="from-java">
  654. <compile files="AnonFolding.java"/>
  655. <run class="AnonFolding"/>
  656. </ajc-test>
  657. <ajc-test dir="pureJava"
  658. title="finally at the end of a method that needs to return"
  659. keywords="from-java">
  660. <compile files="FinallyAndReturns.java"/>
  661. <run class="FinallyAndReturns"/>
  662. </ajc-test>
  663. <ajc-test dir="pureJava" title="return;;; is not really legal"
  664. keywords="from-java,purejava">
  665. <compile files="ReachableEmpty.java">
  666. <message kind="error" line="5"/>
  667. <message kind="error" line="9"/>
  668. <message kind="error" line="13"/>
  669. <message kind="error" line="17"/>
  670. </compile>
  671. </ajc-test>
  672. <ajc-test dir="new"
  673. title="ajc treating Throwable as checked, issuing error if not found"
  674. keywords="from-java,purejava">
  675. <compile files="FalseThrowsCE.java"/>
  676. <run class="FalseThrowsCE"/>
  677. </ajc-test>
  678. <ajc-test dir="pureJava"
  679. title="overriding methods from object in interfaces and multiple-inheritance"
  680. keywords="from-java">
  681. <compile files="InterfaceAndObject.java"/>
  682. <run class="InterfaceAndObject"/>
  683. </ajc-test>
  684. <ajc-test dir="pureJava"
  685. title="private fields in an outer class accessed by an inner which also extends the outer"
  686. keywords="from-java">
  687. <compile files="PrivateFields.java"/>
  688. <run class="PrivateFields"/>
  689. </ajc-test>
  690. <ajc-test dir="pureJava"
  691. title="breaking out of a labeled block inside of an if"
  692. keywords="from-java">
  693. <compile files="Breaks.java"/>
  694. <run class="Breaks"/>
  695. </ajc-test>
  696. <ajc-test dir="pureJava"
  697. title="abstractifying a method and getting it back through super"
  698. keywords="from-java">
  699. <compile files="Abstracts.java"/>
  700. <run class="Abstracts"/>
  701. </ajc-test>
  702. <ajc-test dir="new" pr="328"
  703. title="package protected classes becoming public"
  704. keywords="from-java,purejava">
  705. <compile files="PR328.java"/>
  706. <run class="PR328"/>
  707. </ajc-test>
  708. <ajc-test dir="pureJava"
  709. title="Packages and static classes with the same name produce compile errors."
  710. keywords="from-java">
  711. <compile files="PackagesAndStaticClassesWithTheSameName.java"/>
  712. <run class="PackagesAndStaticClassesWithTheSameName"/>
  713. </ajc-test>
  714. <ajc-test dir="pureJava/innerTypeModifiers"
  715. title="Inner types must generate classfiles with only Public/Default access flags."
  716. keywords="from-java">
  717. <compile files="pkg1/Main.java,pkg2/Foo.java"/>
  718. <run class="pkg1.Main"/>
  719. </ajc-test>
  720. <ajc-test dir="pureJava/innerDefaultConstructors"
  721. title="Default constructors have same access as their enclosing type"
  722. keywords="from-java">
  723. <compile files="pkg1/Main.java,pkg2/Foo.java">
  724. <message kind="error" line="6"/>
  725. </compile>
  726. </ajc-test>
  727. <ajc-test dir="pureJava"
  728. title="Returning primitive values matching method return type (minimal)"
  729. keywords="from-java">
  730. <compile files="ReturnTypes.java"/>
  731. <run class="ReturnTypes"/>
  732. </ajc-test>
  733. <ajc-test dir="pureJava" title="Flow analysis and if(true)"
  734. keywords="from-java">
  735. <compile files="Flow.java"/>
  736. <run class="Flow"/>
  737. </ajc-test>
  738. <ajc-test dir="pureJava"
  739. title="packages and generated inner types (for I.class)"
  740. keywords="from-java">
  741. <compile files="InterfaceAndClass.java"/>
  742. <run class="p.InterfaceAndClass"/>
  743. </ajc-test>
  744. <ajc-test dir="pureJava" title="A.this exprs match by exact type matching"
  745. keywords="from-java">
  746. <compile files="QualifiedThisMatchesExactly.java">
  747. <message kind="error" line="14"/>
  748. </compile>
  749. </ajc-test>
  750. <ajc-test dir="pureJava"
  751. title="Implicit this for new inner instance must be avaliable"
  752. keywords="from-java">
  753. <compile files="ImplicitThisMissing.java">
  754. <message kind="error" line="4"/>
  755. </compile>
  756. </ajc-test>
  757. <ajc-test dir="pureJava"
  758. title="Inners can reference protected fields of their outer's super."
  759. keywords="from-java">
  760. <compile
  761. files="protectedFieldRefInInner/Main.java,protectedFieldRefInInner/p1/C.java"/>
  762. <run class="protectedFieldRefInInner.Main"/>
  763. </ajc-test>
  764. <ajc-test dir="new" title="IOException on windows if nul used as identifier"
  765. keywords="from-java,purejava">
  766. <compile files="NulIOException.java">
  767. <message kind="error" line="12"/>
  768. <message kind="error" line="14"/>
  769. <message kind="error" line="17"/>
  770. </compile>
  771. </ajc-test>
  772. <ajc-test dir="new"
  773. title="NullPointerException (not compiler error) when extending non-static inner class"
  774. keywords="from-java,purejava">
  775. <compile files="ExtendInnerCE.java">
  776. <message kind="error" line="3"/>
  777. </compile>
  778. </ajc-test>
  779. <ajc-test dir="new"
  780. title="compiler flags final static variable as indefinite in member assignment."
  781. keywords="from-java,purejava">
  782. <compile files="DefiniteStatic.java"/>
  783. <run class="DefiniteStatic"/>
  784. </ajc-test>
  785. <ajc-test dir="new"
  786. title="confirm no IOException on windows if nul used as identifier"
  787. keywords="from-java,purejava">
  788. <compile files="NulIOException2.java"/>
  789. <run class="NulIOException2"/>
  790. </ajc-test>
  791. <ajc-test dir="pureJava"
  792. title="Primitives that special case for a constant arm should work"
  793. keywords="from-java">
  794. <compile files="OneArmedPrimitiveTests.java"/>
  795. <run class="OneArmedPrimitiveTests"/>
  796. </ajc-test>
  797. <ajc-test dir="pureJava" title="Parenthesized true and false don't parse"
  798. keywords="from-java">
  799. <compile files="ParenKeywords.java"/>
  800. <run class="ParenKeywords"/>
  801. </ajc-test>
  802. <ajc-test dir="pureJava"
  803. title="Field sets to public fields of private fields of enclosing types"
  804. keywords="from-java">
  805. <compile files="InnerFieldRef.java"/>
  806. <run class="InnerFieldRef"/>
  807. </ajc-test>
  808. <ajc-test dir="pureJava"
  809. title="Constant values should be stored with the correct type of their fields"
  810. keywords="from-java">
  811. <compile files="ConstantValueConversion.java"/>
  812. <run class="ConstantValueConversion"/>
  813. </ajc-test>
  814. <ajc-test dir="pureJava"
  815. title="Local variables in initializers should not be treated as blank final fields"
  816. keywords="from-java">
  817. <compile files="LocalInitializerVariableNotBlank.java"/>
  818. <run class="LocalInitializerVariableNotBlank"/>
  819. </ajc-test>
  820. <ajc-test dir="pureJava"
  821. title="Binops aren't allowed as update stmts in for loops"
  822. keywords="from-java">
  823. <compile files="NonStmtInFor.java">
  824. <message kind="error" line="3"/>
  825. </compile>
  826. </ajc-test>
  827. <ajc-test dir="pureJava"
  828. title="Can't avoid doing division in case of div by zero"
  829. keywords="from-java">
  830. <compile files="DivOpMustHappen.java"/>
  831. <run class="DivOpMustHappen"/>
  832. </ajc-test>
  833. <ajc-test dir="pureJava"
  834. title="Testing frames w/greater than FF locals and 7F incs (i.e., WIDE instruction)"
  835. keywords="from-java">
  836. <compile files="BigFrameTest.java"/>
  837. <run class="BigFrameTest"/>
  838. </ajc-test>
  839. <ajc-test dir="pureJava" title="correct numeric literals"
  840. keywords="from-java">
  841. <compile files="LiteralsCp.java"/>
  842. <run class="LiteralsCp"/>
  843. </ajc-test>
  844. <ajc-test dir="pureJava" title="invalid numeric literals"
  845. keywords="from-java">
  846. <compile files="LiteralsCf.java">
  847. <message kind="error" line="8"/>
  848. <message kind="error" line="9"/>
  849. <message kind="error" line="10"/>
  850. <message kind="error" line="11"/>
  851. <message kind="error" line="12"/>
  852. <message kind="error" line="17"/>
  853. <message kind="error" line="18"/>
  854. <message kind="error" line="19"/>
  855. <message kind="error" line="20"/>
  856. <message kind="error" line="21"/>
  857. <message kind="error" line="22"/>
  858. <message kind="error" line="23"/>
  859. <message kind="error" line="25"/>
  860. <message kind="error" line="27"/>
  861. <message kind="error" line="28"/>
  862. <message kind="error" line="29"/>
  863. <message kind="error" line="30"/>
  864. <message kind="error" line="32"/>
  865. </compile>
  866. </ajc-test>
  867. <ajc-test dir="pureJava" pr="538"
  868. title="inner types can't have the same simple name as an enclosing type"
  869. keywords="from-java">
  870. <compile files="InnerNameConflictsCf.java">
  871. <message kind="error" line="9"/>
  872. <message kind="error" line="14"/>
  873. <message kind="error" line="20"/>
  874. <message kind="error" line="21"/>
  875. </compile>
  876. </ajc-test>
  877. <ajc-test dir="pureJava"
  878. title="test the unops and binops with various values" keywords="from-java">
  879. <compile files="BigOps.java"/>
  880. <run class="BigOps"/>
  881. </ajc-test>
  882. <ajc-test dir="pureJava"
  883. title="test + and += for strings and variously typed values"
  884. keywords="from-java">
  885. <compile files="BigString.java"/>
  886. <run class="BigString"/>
  887. </ajc-test>
  888. <ajc-test dir="pureJava" title="test try/catch/finally statements"
  889. keywords="from-java">
  890. <compile files="TryCatchFinally.java"/>
  891. <run class="TryCatchFinally"/>
  892. </ajc-test>
  893. <ajc-test dir="pureJava" pr="547"
  894. title="local types can be bound in the signatures of other local types"
  895. keywords="from-resolved_10rc3,from-java">
  896. <compile files="LocalInners.java"/>
  897. <run class="LocalInners"/>
  898. </ajc-test>
  899. <ajc-test dir="new"
  900. title="final constructor parameter causes incorrect compiler error"
  901. keywords="from-java,purejava">
  902. <compile files="FinalConstructorParm.java"/>
  903. <run class="FinalConstructorParm"/>
  904. </ajc-test>
  905. <ajc-test dir="new" title="Error expected for field of type void"
  906. keywords="from-java,purejava">
  907. <compile files="VoidField.java">
  908. <message kind="error" line="2"/>
  909. <message kind="error" line="4"/>
  910. <message kind="error" line="6"/>
  911. </compile>
  912. </ajc-test>
  913. <ajc-test dir="new" title="Error expected for constructor in interfaces"
  914. keywords="from-java">
  915. <compile files="InterfaceConstructor.java">
  916. <message kind="error" line="2"/>
  917. <message kind="error" line="6"/>
  918. <message kind="error" line="8"/>
  919. </compile>
  920. </ajc-test>
  921. <ajc-test dir="new" pr="558"
  922. title="class name for identifier as String should provoke error"
  923. keywords="from-java,purejava">
  924. <compile files="PR558.java">
  925. <message kind="error" line="4"/>
  926. </compile>
  927. </ajc-test>
  928. <ajc-test dir="new" pr="567"
  929. title="cyclic interface inheritance not detected if no classes implement the interfaces"
  930. keywords="from-java,purejava,messages-vary">
  931. <compile files="CyclicInterfaceInheritance.java"
  932. options="!eclipse">
  933. <message kind="error" line="14"/>
  934. <message kind="error" line="15"/>
  935. </compile>
  936. </ajc-test>
  937. <ajc-test dir="new" pr="567" title="cyclic class inheritance"
  938. keywords="from-java,purejava">
  939. <compile files="CyclicClassInheritance.java">
  940. <message kind="error" line="11"/>
  941. <message kind="error" line="12"/>
  942. </compile>
  943. </ajc-test>
  944. <ajc-test dir="pureJava" title="Type names are not expressions on their own"
  945. keywords="from-java,purejava">
  946. <compile files="TypeExprErrors.java">
  947. <message kind="error" line="10"/>
  948. <message kind="error" line="17"/>
  949. <message kind="error" line="18"/>
  950. <message kind="error" line="19"/>
  951. <message kind="error" line="20"/>
  952. <message kind="error" line="21"/>
  953. <message kind="error" line="22"/>
  954. <message kind="error" line="23"/>
  955. <message kind="error" line="24"/>
  956. <message kind="error" line="25"/>
  957. <message kind="error" line="26"/>
  958. <message kind="error" line="27"/>
  959. <message kind="error" line="28"/>
  960. <message kind="error" line="29"/>
  961. <message kind="error" line="30"/>
  962. <message kind="error" line="31"/>
  963. <message kind="error" line="32"/>
  964. <message kind="error" line="33"/>
  965. <message kind="error" line="34"/>
  966. <message kind="error" line="36"/>
  967. <message kind="error" line="37"/>
  968. </compile>
  969. </ajc-test>
  970. <ajc-test dir="pureJava/nameConflicts"
  971. title="type and package name conflicts are resolved happily (1a)"
  972. keywords="from-java,purejava">
  973. <compile files="p1/Main1.java,p1/Foo.java,p1/p2.java"/>
  974. <run class="p1.Main1"/>
  975. </ajc-test>
  976. <ajc-test dir="pureJava/nameConflicts"
  977. title="(fails in USEJAVAC) type and package name conflicts are resolved happily (1b)"
  978. keywords="from-java,purejava">
  979. <compile files="p1.java,p1/p2/Foo.java"/>
  980. <compile files="p1/Main1.java,p1/Foo.java,p1/p2.java"/>
  981. <run class="p1.Main1"/>
  982. </ajc-test>
  983. <ajc-test dir="pureJava/nameConflicts"
  984. title="type and package name conflicts are resolved happily (2)"
  985. keywords="from-java">
  986. <compile files="p1/Main2.java,p1/p2/Foo.java"/>
  987. <run class="p1.Main2"/>
  988. </ajc-test>
  989. <ajc-test dir="pureJava/nameConflicts"
  990. title="type and package name conflicts caught as errors (1)"
  991. keywords="from-java,purejava">
  992. <compile files="p1/p2.java,p1/Main1.java,p1/Foo.java,p1/p2/Foo.java">
  993. <message kind="error" line="3"/>
  994. </compile>
  995. </ajc-test>
  996. <ajc-test dir="pureJava"
  997. title="flow analysis where final variable set in another constructor"
  998. keywords="from-java,purejava">
  999. <compile files="ConstructorFlow.java"/>
  1000. <run class="ConstructorFlow"/>
  1001. </ajc-test>
  1002. <ajc-test dir="new" pr="584"
  1003. title="Can construct inner classes using qualified expressions"
  1004. keywords="from-java,purejava">
  1005. <compile files="PR584.java"/>
  1006. <run class="PR584"/>
  1007. </ajc-test>
  1008. <ajc-test dir="new/protectedStatic" pr="585"
  1009. title="subclass unable to access protected static methods using type-qualified references"
  1010. keywords="from-java,purejava">
  1011. <compile files="SubClass.java,pack/SuperClass.java"/>
  1012. <run class="SubClass"/>
  1013. </ajc-test>
  1014. <ajc-test dir="new" pr="588" title="Undefined inner class constructor"
  1015. keywords="from-java,purejava">
  1016. <compile files="UndefinedInner.java">
  1017. <message kind="error" line="6"/>
  1018. </compile>
  1019. </ajc-test>
  1020. <ajc-test dir="pureJava"
  1021. title="try statements work sorta like scoped items for exception flow control"
  1022. keywords="from-java">
  1023. <compile files="TryWorksLikeEnvironment.java"/>
  1024. <run class="TryWorksLikeEnvironment"/>
  1025. </ajc-test>
  1026. <ajc-test dir="pureJava"
  1027. title="qualified this must work exactly, not based on subtypes"
  1028. keywords="from-java">
  1029. <compile files="QualifiedThisExactness.java">
  1030. <message kind="error" line="6"/>
  1031. </compile>
  1032. </ajc-test>
  1033. <ajc-test dir="new/packagePrefix" pr="574"
  1034. title="classes that are package prefixes are illegal"
  1035. keywords="from-java,purejava,messages-vary">
  1036. <compile files="p/prefix.java,p/prefix/SomeClass.java"
  1037. options="!eclipse">
  1038. <message kind="error" line="2"/>
  1039. </compile>
  1040. </ajc-test>
  1041. <ajc-test dir="new/introTypeMissing"
  1042. title="valid type expressions for introduced type testing"
  1043. keywords="from-java,purejava">
  1044. <compile files="TargetClass.java,Util.java"/>
  1045. <run class="TargetClass"/>
  1046. </ajc-test>
  1047. <ajc-test dir="new/introTypeMissing"
  1048. title="CF expected when enclosing class superclass used as this qualifier in inner class"
  1049. keywords="from-java">
  1050. <compile files="TargetClassCF.java,Util.java">
  1051. <message kind="error" line="22"/>
  1052. <message kind="error" line="23"/>
  1053. <message kind="error" line="27"/>
  1054. <message kind="error" line="28"/>
  1055. </compile>
  1056. </ajc-test>
  1057. <ajc-test dir="new/introTypeMissing"
  1058. title="enclosing class may be used as this qualifier in inner class"
  1059. keywords="from-java">
  1060. <compile files="TargetClassCP.java,Util.java"/>
  1061. <run class="TargetClassCP"/>
  1062. </ajc-test>
  1063. <ajc-test dir="new"
  1064. title="PR591 compiler error expected when directly calling unimplemented abstract method using super"
  1065. keywords="from-java,purejava">
  1066. <compile files="AbstractMethodCall.java">
  1067. <message kind="error" line="10"/>
  1068. </compile>
  1069. </ajc-test>
  1070. <ajc-test dir="pureJava"
  1071. title="suggested by Jacks 15.28-qualified-namestr tests"
  1072. keywords="from-java,purejava,messages-vary">
  1073. <compile files="NonConstants.java"
  1074. options="!eclipse">
  1075. <message kind="error" line="13"/>
  1076. <message kind="error" line="14"/>
  1077. <message kind="error" line="15"/>
  1078. <message kind="error" line="16"/>
  1079. <message kind="error" line="17"/>
  1080. </compile>
  1081. </ajc-test>
  1082. <ajc-test dir="pureJava"
  1083. title="nested finally blocks have interesting frame location problems"
  1084. keywords="from-java">
  1085. <compile files="NestedFinally.java"/>
  1086. <run class="NestedFinally"/>
  1087. </ajc-test>
  1088. <ajc-test dir="pureJava"
  1089. title="suggested by jacks 3.7-15 all comments must be closed"
  1090. keywords="from-java,purejava">
  1091. <compile files="OpenComment.java">
  1092. <message kind="error" line="7"/>
  1093. </compile>
  1094. </ajc-test>
  1095. <ajc-test dir="pureJava" pr="601"
  1096. title="nested synchronized blocks have interesting frame location problems"
  1097. keywords="from-java">
  1098. <compile files="NestedSynchronized.java"/>
  1099. <run class="NestedSynchronized"/>
  1100. </ajc-test>
  1101. <ajc-test dir="new/classaccess"
  1102. title="package class access not enforced outside of package"
  1103. keywords="from-java,purejava">
  1104. <compile files="main/Main.java,pack1/Target.java">
  1105. <message kind="error" line="7"/>
  1106. </compile>
  1107. </ajc-test>
  1108. <ajc-test dir="new" pr="631" title="expecting CE for ambiguous reference"
  1109. keywords="from-java,purejava">
  1110. <compile files="AmbiguousClassReference.java">
  1111. <message kind="error" line="11"/>
  1112. </compile>
  1113. </ajc-test>
  1114. <ajc-test dir="new" pr="643" title="try without catch or finally"
  1115. keywords="from-java,purejava,message-vary">
  1116. <compile files="TryNoCatchCE.java"
  1117. options="!eclipse">
  1118. <message kind="error" line="6"/>
  1119. </compile>
  1120. </ajc-test>
  1121. <ajc-test dir="new" pr="642" title="invalid floating-point constant"
  1122. keywords="from-java,purejava,messages-vary">
  1123. <compile files="ParsingFloatCE.java"
  1124. options="!eclipse">
  1125. <message kind="error" line="5"/>
  1126. </compile>
  1127. </ajc-test>
  1128. <ajc-test dir="pureJava" title="anonymous inner classes with inner types"
  1129. keywords="from-java">
  1130. <compile files="AnonymousWithInner.java"/>
  1131. <run class="AnonymousWithInner"/>
  1132. </ajc-test>
  1133. <ajc-test dir="pureJava" pr="651" title="qualified super call expr"
  1134. keywords="from-java">
  1135. <compile files="QualifiedSuperCall.java"/>
  1136. <run class="QualifiedSuperCall"/>
  1137. </ajc-test>
  1138. <ajc-test dir="new/subaspects" pr="647"
  1139. title="concrete aspect unable to access abstract package-private method in parent for overriding"
  1140. keywords="from-java,purejava,messages-vary"
  1141. comment="XXX fix source - package-private">
  1142. <compile files="parent/ParentMethodCE.java,child/ChildMethodCE.java"
  1143. options="!eclipse">
  1144. <message kind="warning" line="28"/>
  1145. <message kind="error" line="27"/>
  1146. </compile>
  1147. </ajc-test>
  1148. <ajc-test dir="new"
  1149. title="super reference used to disambiguate names of different but compatible types"
  1150. keywords="from-java,purejava">
  1151. <compile files="SuperDisambiguatingType.java"/>
  1152. <run class="SuperDisambiguatingType"/>
  1153. </ajc-test>
  1154. <ajc-test dir="pureJava" title="anonymous explicit inner constructors"
  1155. keywords="from-java,purejava">
  1156. <compile files="QualifiedNewCP.java"/>
  1157. <run class="QualifiedNewCP"/>
  1158. </ajc-test>
  1159. <ajc-test dir="pureJava" pr="680"
  1160. title="interfaces with non-explicitly static inner classes"
  1161. keywords="from-java">
  1162. <compile files="InterfaceAndInnerHelper.java"/>
  1163. <compile files="InterfaceAndInner.java"/>
  1164. <run class="InterfaceAndInner"/>
  1165. </ajc-test>
  1166. <ajc-test dir="pureJava"
  1167. title="Overruning the lineStarts buffer, DO NOT EDIT THIS FILE!!!!"
  1168. keywords="from-java,purejava">
  1169. <compile files="AJError.java"/>
  1170. <run class="AJError"/>
  1171. </ajc-test>
  1172. <ajc-test dir="new" pr="701" title="no CE for unambiguous type reference"
  1173. keywords="from-java,purejava">
  1174. <compile files="UnambiguousClassReference3CP.java"/>
  1175. <run class="UnambiguousClassReference3CP"/>
  1176. </ajc-test>
  1177. <ajc-test dir="new" pr="701"
  1178. title="CE for ambiguous type reference (imports)"
  1179. keywords="from-java,purejava">
  1180. <compile files="AmbiguousClassReference2CE.java">
  1181. <message kind="error" line="2"/>
  1182. <message kind="error" line="10"/>
  1183. </compile>
  1184. </ajc-test>
  1185. <ajc-test dir="new" pr="701"
  1186. title="CE for ambiguous type reference (two type declarations)"
  1187. keywords="from-java,purejava,messages-vary">
  1188. <compile files="AmbiguousClassReference3CE.java"
  1189. options="!eclipse">
  1190. <message kind="error" line="10"/>
  1191. </compile>
  1192. </ajc-test>
  1193. <ajc-test dir="new" pr="701"
  1194. title="CE for ambiguous type reference (two inner types)"
  1195. keywords="from-java,purejava,messages-vary">
  1196. <compile files="AmbiguousClassReference4CE.java"
  1197. options="!eclipse">
  1198. <message kind="error" line="10"/>
  1199. </compile>
  1200. </ajc-test>
  1201. <ajc-test dir="new" pr="709" title="final assignment in loop"
  1202. keywords="from-java,purejava">
  1203. <compile files="FinalInLoop.java"/>
  1204. <run class="FinalInLoop"/>
  1205. </ajc-test>
  1206. <ajc-test dir="pureJava" title="private super access in inners"
  1207. keywords="from-java,purejava">
  1208. <compile files="PrivateSuperInnerAccess.java"/>
  1209. <run class="PrivateSuperInnerAccess"/>
  1210. </ajc-test>
  1211. <ajc-test dir="pureJava"
  1212. title="nested interface does not require new qualifier (8)"
  1213. keywords="from-java,purejava">
  1214. <compile files="InvalidNewQualifier8CE.java">
  1215. <message kind="error" line="8"/>
  1216. </compile>
  1217. </ajc-test>
  1218. <ajc-test dir="pureJava"
  1219. title="nested interface does not require new qualifier (9)"
  1220. keywords="from-java,purejava">
  1221. <compile files="InvalidNewQualifier9CE.java">
  1222. <message kind="error" line="9"/>
  1223. </compile>
  1224. </ajc-test>
  1225. <ajc-test dir="pureJava"
  1226. title="nested interface does not require new qualifier (10)"
  1227. keywords="from-java,purejava">
  1228. <compile files="InvalidNewQualifier10CE.java">
  1229. <message kind="error" line="10"/>
  1230. </compile>
  1231. </ajc-test>
  1232. <ajc-test dir="pureJava"
  1233. title="nested interface does not require new qualifier (14)"
  1234. keywords="from-java,purejava">
  1235. <compile files="InvalidNewQualifier14CE.java">
  1236. <message kind="error" line="14"/>
  1237. </compile>
  1238. </ajc-test>
  1239. <ajc-test dir="pureJava"
  1240. title="nested interface does not require new qualifier (15)"
  1241. keywords="from-java,purejava">
  1242. <compile files="InvalidNewQualifier15CE.java">
  1243. <message kind="error" line="15"/>
  1244. </compile>
  1245. </ajc-test>
  1246. <ajc-test dir="pureJava"
  1247. title="nested interface does not require new qualifier (16)"
  1248. keywords="from-java,purejava">
  1249. <compile files="InvalidNewQualifier16CE.java">
  1250. <message kind="error" line="16"/>
  1251. </compile>
  1252. </ajc-test>
  1253. <ajc-test dir="pureJava" title="Operands work correctly"
  1254. keywords="from-bigjava">
  1255. <compile files="Ops.java"/>
  1256. <run class="Ops"/>
  1257. </ajc-test>
  1258. <ajc-test dir="errors"
  1259. title="reasonable error for crosscut reference with no formals specified"
  1260. keywords="from-errors">
  1261. <compile files="NoFormalsCrosscut.java">
  1262. <message kind="error" line="6"/>
  1263. <message kind="error" line="7"/>
  1264. <message kind="error" line="8"/>
  1265. </compile>
  1266. </ajc-test>
  1267. <ajc-test dir="errors"
  1268. title="reasonable error for introduction on type whose source isn't found"
  1269. keywords="from-errors">
  1270. <compile files="NoSource.java">
  1271. <message kind="error" line="4"/>
  1272. </compile>
  1273. </ajc-test>
  1274. <ajc-test dir="errors"
  1275. title="check that constructor name's match the enclosing type"
  1276. keywords="from-errors,purejava">
  1277. <compile files="BadConstructorName.java">
  1278. <message kind="error" line="4"/>
  1279. </compile>
  1280. </ajc-test>
  1281. <ajc-test dir="errors"
  1282. title="handle errors in crosscut designators, insist that they end with a semicolon"
  1283. keywords="from-errors">
  1284. <compile files="BadDesignator.java">
  1285. <message kind="error" line="4"/>
  1286. </compile>
  1287. </ajc-test>
  1288. <ajc-test dir="errors"
  1289. title="errors for not applicable or accessible methods"
  1290. keywords="from-errors,purejava">
  1291. <compile files="MethodsNotFound.java">
  1292. <message kind="error" line="4"/>
  1293. <message kind="error" line="8"/>
  1294. <message kind="error" line="12"/>
  1295. </compile>
  1296. </ajc-test>
  1297. <ajc-test dir="errors"
  1298. title="try to return from a before, after, after throwing and after returning"
  1299. keywords="from-errors">
  1300. <compile files="InvalidReturn.java">
  1301. <message kind="error" line="12"/>
  1302. <message kind="error" line="16"/>
  1303. <message kind="error" line="19"/>
  1304. <message kind="error" line="22"/>
  1305. </compile>
  1306. </ajc-test>
  1307. <ajc-test dir="errors" pr="130"
  1308. title="the designator has a wildcard for method name but no return type specified"
  1309. keywords="from-errors">
  1310. <compile files="NoReturnTypeInDesignator.java">
  1311. <message kind="error" line="6"/>
  1312. </compile>
  1313. </ajc-test>
  1314. <ajc-test dir="errors"
  1315. title="the designator for the introduction has no type after the | charcter"
  1316. keywords="from-errors">
  1317. <compile files="BadIntroductionDesignator.java">
  1318. <message kind="error" line="6"/>
  1319. </compile>
  1320. </ajc-test>
  1321. <ajc-test dir="errors" pr="140" title="crosscut signature does not match"
  1322. keywords="from-errors">
  1323. <compile files="BadCCutSig.java">
  1324. <message kind="error" line="8"/>
  1325. </compile>
  1326. </ajc-test>
  1327. <ajc-test dir="errors"
  1328. title="proper exit conditions when errors fall through to javac"
  1329. keywords="from-errors">
  1330. <compile files="FromJavac.java">
  1331. <message kind="error" line="11"/>
  1332. </compile>
  1333. </ajc-test>
  1334. <ajc-test dir="errors" pr="213"
  1335. title="mismatched parens on advice (wasn't binding Tester)"
  1336. keywords="from-errors">
  1337. <compile files="MismatchedParens.java">
  1338. <message kind="error" line="16"/>
  1339. <message kind="error" line="17"/>
  1340. </compile>
  1341. </ajc-test>
  1342. <ajc-test dir="errors" pr="209" title="Non-static advice silently ignored"
  1343. keywords="from-errors">
  1344. <compile files="BadPointcutName.java">
  1345. <message kind="error" line="15"/>
  1346. </compile>
  1347. </ajc-test>
  1348. <ajc-test dir="errors" pr="218"
  1349. title="import statement within class body crashes compiler"
  1350. keywords="from-errors">
  1351. <compile files="ImportWithinClassBody.java">
  1352. <message kind="error" line="8"/>
  1353. </compile>
  1354. </ajc-test>
  1355. <ajc-test dir="errors" pr="219" title="extra closing brace"
  1356. keywords="from-errors">
  1357. <compile files="ExtraClosingBrace.java">
  1358. <message kind="error" line="9"/>
  1359. <message kind="error" line="10"/>
  1360. </compile>
  1361. </ajc-test>
  1362. <ajc-test dir="errors" pr="244"
  1363. title="decent errors for around return type not matching target point"
  1364. keywords="from-errors">
  1365. <compile files="AroundReturnType.java">
  1366. <message kind="error" line="16"/>
  1367. <message kind="error" line="21"/>
  1368. </compile>
  1369. </ajc-test>
  1370. <ajc-test dir="errors" title="eachobject: can't call new on an aspect of"
  1371. keywords="from-errors">
  1372. <compile files="CantCallConstructorOnAspects.java">
  1373. <message kind="error" line="4"/>
  1374. </compile>
  1375. </ajc-test>
  1376. <ajc-test dir="errors"
  1377. title="eachobject: only zero-argument constructors allowed in an aspect"
  1378. keywords="from-errors,fail-unimplemented">
  1379. <compile files="AspectsCantHaveYesArgumentConstructors.java">
  1380. <message kind="error" line="8"/>
  1381. </compile>
  1382. </ajc-test>
  1383. <ajc-test dir="errors" title="eachobject: can't extend a concrete aspect"
  1384. keywords="from-errors,fail-unimplemented">
  1385. <compile files="SubAspectsCantExtendNonAbstractAspects.java">
  1386. <message kind="error" line="14"/>
  1387. </compile>
  1388. </ajc-test>
  1389. <ajc-test dir="errors" pr="271" title="instanceof used without a class"
  1390. keywords="from-errors">
  1391. <compile files="InstanceofWithoutClass.java">
  1392. <message kind="error" line="14"/>
  1393. </compile>
  1394. </ajc-test>
  1395. <ajc-test dir="errors" pr="280" title="wildcard used for returns clause"
  1396. keywords="from-errors">
  1397. <compile files="WildcardForReturns.java">
  1398. <message kind="error" line="17"/>
  1399. </compile>
  1400. </ajc-test>
  1401. <ajc-test dir="errors" pr="280" title="no return statement in around advice"
  1402. keywords="from-errors,new-messages-vary">
  1403. <compile files="NoReturnStatement.java">
  1404. <message kind="error" line="15"/>
  1405. </compile>
  1406. </ajc-test>
  1407. <ajc-test dir="errors" pr="286"
  1408. title="inner aspects must be static (no longer matches PR#286)"
  1409. keywords="from-errors,fail-unimplemented">
  1410. <compile files="AbstractAspectOf.java">
  1411. <message kind="error" line="12"/>
  1412. </compile>
  1413. </ajc-test>
  1414. <ajc-test dir="errors"
  1415. title="Casting class declarations as interfaces"
  1416. keywords="from-errors">
  1417. <compile files="InterfaceCast.java">
  1418. <message kind="error" line="14"/>
  1419. </compile>
  1420. </ajc-test>
  1421. <ajc-test dir="errors"
  1422. title="omits a variable name and crashes with a null pointer"
  1423. keywords="from-errors">
  1424. <compile files="BindingNullPointer.java">
  1425. <message kind="error" line="7"/>
  1426. </compile>
  1427. </ajc-test>
  1428. <ajc-test dir="errors"
  1429. title="Not generating an error for using new as a method name"
  1430. keywords="from-errors">
  1431. <compile files="New.java">
  1432. <message kind="error" line="12"/>
  1433. </compile>
  1434. </ajc-test>
  1435. <ajc-test dir="errors" title="ClassCastException on the int literal"
  1436. keywords="from-errors">
  1437. <compile files="IntLiteral.java">
  1438. <message kind="error" line="17"/>
  1439. </compile>
  1440. </ajc-test>
  1441. <ajc-test dir="new"
  1442. title="Wrong strictfp keyword usage in interface function prototype [TODO: move to errors]"
  1443. keywords="from-errors">
  1444. <compile files="StrictFpCErr1.java">
  1445. <message kind="error" line="3"/>
  1446. </compile>
  1447. </ajc-test>
  1448. <ajc-test dir="new"
  1449. title="Wrong strictfp keyword usage in field declaration [TODO: move to errors]"
  1450. keywords="from-errors">
  1451. <compile files="StrictFpCErr2.java">
  1452. <message kind="error" line="3"/>
  1453. </compile>
  1454. </ajc-test>
  1455. <ajc-test dir="new"
  1456. title="Wrong strictfp keyword usage in constructor declaration [TODO: move to errors]"
  1457. keywords="from-errors">
  1458. <compile files="StrictFpCErr3.java">
  1459. <message kind="error" line="3"/>
  1460. </compile>
  1461. </ajc-test>
  1462. <ajc-test dir="errors"
  1463. title="Incorrect static casts to primitively foldable arguments should not crash the compiler."
  1464. keywords="from-errors">
  1465. <compile files="BadStaticCast.java">
  1466. <message kind="error" line="5"/>
  1467. </compile>
  1468. </ajc-test>
  1469. <ajc-test dir="errors" title="Dominates with commas should signal an error."
  1470. keywords="from-errors">
  1471. <compile files="DominatesWithCommas.java">
  1472. <message kind="error" line="9"/>
  1473. </compile>
  1474. </ajc-test>
  1475. <ajc-test dir="errors"
  1476. title="Accessing instance fields and instance methods statically."
  1477. keywords="from-errors,purejava">
  1478. <compile files="AccessingInstanceFieldsStatically.java">
  1479. <message kind="error" line="15"/>
  1480. <message kind="error" line="16"/>
  1481. <message kind="error" line="17"/>
  1482. <message kind="error" line="18"/>
  1483. <message kind="error" line="26"/>
  1484. <message kind="error" line="27"/>
  1485. <message kind="error" line="30"/>
  1486. <message kind="error" line="38"/>
  1487. <message kind="error" line="39"/>
  1488. </compile>
  1489. </ajc-test>
  1490. <ajc-test dir="errors" pr="95"
  1491. title="stack overflow with recursive crosscut specifier"
  1492. keywords="from-errors">
  1493. <compile files="RecursiveCCutSpecifier.java">
  1494. <message kind="error" line="10"/>
  1495. </compile>
  1496. </ajc-test>
  1497. <ajc-test dir="errors"
  1498. title="Throwing a NullPointerException when formals can't be bound in named pointcut"
  1499. keywords="from-errors">
  1500. <compile files="BadFormalsToCalls.java">
  1501. <message kind="error" line="22"/>
  1502. </compile>
  1503. </ajc-test>
  1504. <ajc-test dir="errors" pr="385"
  1505. title="disallow defining more than one pointcut with the same name"
  1506. keywords="from-errors,fail-unimplemented">
  1507. <compile files="OverloadedPointcuts.java">
  1508. <message kind="error" line="5"/>
  1509. </compile>
  1510. </ajc-test>
  1511. <ajc-test dir="errors"
  1512. title="pre 0.7 introduction form outside aspect body causes an EmptyStackException"
  1513. keywords="from-errors">
  1514. <compile files="BadIntroduction.java">
  1515. <message kind="error" line="10"/>
  1516. </compile>
  1517. </ajc-test>
  1518. <ajc-test dir="errors" title="a class can't extend an aspect"
  1519. keywords="from-errors,fail-unimplemented">
  1520. <compile files="ClassExtendingAspect.java">
  1521. <message kind="error" line="19"/>
  1522. </compile>
  1523. </ajc-test>
  1524. <ajc-test dir="errors"
  1525. title="a before() clause at the class-level causes an EmptyStackException"
  1526. keywords="from-errors">
  1527. <compile files="TopLevelBefore.java">
  1528. <message kind="error" line="9"/>
  1529. </compile>
  1530. </ajc-test>
  1531. <ajc-test dir="errors"
  1532. title="an after() clause at the class-level causes an EmptyStackException"
  1533. keywords="from-errors">
  1534. <compile files="TopLevelAfter.java">
  1535. <message kind="error" line="9"/>
  1536. </compile>
  1537. </ajc-test>
  1538. <ajc-test dir="errors"
  1539. title="an around() clause at the class-level causes an EmptyStackException"
  1540. keywords="from-errors">
  1541. <compile files="TopLevelAround.java">
  1542. <message kind="error" line="9"/>
  1543. </compile>
  1544. </ajc-test>
  1545. <ajc-test dir="errors" title="Crashes when a cast is within another cast"
  1546. keywords="from-errors,purejava">
  1547. <compile files="CastInCast.java">
  1548. <message kind="error" line="9"/>
  1549. </compile>
  1550. </ajc-test>
  1551. <ajc-test dir="errors" title="Crashes when a cast of the form )int) appears"
  1552. keywords="from-errors,purejava,messages-vary">
  1553. <compile files="BadCast.java"
  1554. options="!eclipse">
  1555. <message kind="error" line="9"/>
  1556. <message kind="error" line="10"/>
  1557. </compile>
  1558. </ajc-test>
  1559. <ajc-test dir="errors" title="Crashes when the closing brace is reversed"
  1560. keywords="from-errors,purejava,messages-vary">
  1561. <compile files="ClosingBrace.java"
  1562. options="!eclipse">
  1563. <message kind="error" line="11"/>
  1564. </compile>
  1565. </ajc-test>
  1566. <ajc-test dir="errors"
  1567. title="Crashes when a method name is missing in a call -- e.g. 'System.out.();'"
  1568. keywords="from-errors,purejava">
  1569. <compile files="NoMethodName.java">
  1570. <message kind="error" line="9"/>
  1571. </compile>
  1572. </ajc-test>
  1573. <ajc-test dir="errors" title="Crashes when a bad r-value appears."
  1574. keywords="from-errors,purejava">
  1575. <compile files="BadValue.java">
  1576. <message kind="error" line="9"/>
  1577. </compile>
  1578. </ajc-test>
  1579. <ajc-test dir="errors" title="Two underscores as a variables causes a crash"
  1580. keywords="from-errors,purejava">
  1581. <compile files="BadVar.java">
  1582. <message kind="error" line="9"/>
  1583. </compile>
  1584. </ajc-test>
  1585. <ajc-test dir="errors"
  1586. title="Crashes when assigning to a final static in an intializer and declaration"
  1587. keywords="from-errors,purejava">
  1588. <compile files="FinalStatic.java">
  1589. <message kind="error" line="13"/>
  1590. </compile>
  1591. </ajc-test>
  1592. <ajc-test dir="errors" title="Crashes when two dots appear instead of one"
  1593. keywords="from-errors,purejava">
  1594. <compile files="TwoDots.java">
  1595. <message kind="error" line="9"/>
  1596. </compile>
  1597. </ajc-test>
  1598. <ajc-test dir="errors" title="Crashes when there're stray dots"
  1599. keywords="from-errors,purejava">
  1600. <compile files="StrayDot.java">
  1601. <message kind="error" line="9"/>
  1602. </compile>
  1603. </ajc-test>
  1604. <ajc-test dir="errors" title="Stray characters cause a crash"
  1605. comment="XXX public class in wrong file"
  1606. keywords="from-errors,purejava">
  1607. <compile files="StraySlash.java">
  1608. <message kind="error" line="9"/>
  1609. </compile>
  1610. </ajc-test>
  1611. <ajc-test dir="errors" title="Colon instead of a semi-colon causes a crash"
  1612. comment="XXX public class in wrong file"
  1613. keywords="from-errors,purejava">
  1614. <compile files="Colon.java">
  1615. <message kind="error" line="9"/>
  1616. </compile>
  1617. </ajc-test>
  1618. <ajc-test dir="errors"
  1619. title="type error in initializer caught by ajc, not javac"
  1620. keywords="from-errors,purejava">
  1621. <compile files="ArrayInitializerType.java">
  1622. <message kind="error" line="2"/>
  1623. </compile>
  1624. </ajc-test>
  1625. <ajc-test dir="errors"
  1626. title="Circular inheritance with classes causes a stack overflow."
  1627. keywords="from-errors,purejava">
  1628. <compile files="CircularExtends.java">
  1629. <message kind="error" line="7"/>
  1630. </compile>
  1631. </ajc-test>
  1632. <ajc-test dir="errors" title="Doesn't detect cyclic inheritance of aspects."
  1633. keywords="from-errors">
  1634. <compile files="CircularExtendsAspect.java">
  1635. <message kind="error" line="18"/>
  1636. </compile>
  1637. </ajc-test>
  1638. <ajc-test dir="errors"
  1639. title="Binds the pointcut formals to member variables instead of pointcut formals."
  1640. keywords="from-errors">
  1641. <compile files="PointcutFormals.java" options="-Xlint:warning">
  1642. <message kind="error" line="14"/>
  1643. <message kind="error" line="15"/>
  1644. <message kind="warning" line="16"/>
  1645. <message kind="warning" line="17"/>
  1646. </compile>
  1647. </ajc-test>
  1648. <ajc-test dir="errors" title="ambiguous formal in formals pattern"
  1649. keywords="from-errors">
  1650. <compile files="AmbiguousFormal.java">
  1651. <message kind="error" line="6"/>
  1652. </compile>
  1653. </ajc-test>
  1654. <ajc-test dir="errors" title="Missing ;" keywords="from-errors,purejava">
  1655. <compile files="PR405.java">
  1656. <message kind="error" line="15"/>
  1657. </compile>
  1658. </ajc-test>
  1659. <ajc-test dir="errors"
  1660. title="cast expressions should not allow casts between ifaces and array types"
  1661. keywords="from-errors,purejava">
  1662. <compile files="InterfaceArrayCast.java">
  1663. <message kind="error" line="9"/>
  1664. <message kind="error" line="10"/>
  1665. </compile>
  1666. </ajc-test>
  1667. <ajc-test dir="errors"
  1668. title="parsing errors for various bad forms of NewArrayExprs."
  1669. keywords="from-errors,purejava">
  1670. <compile files="BadNewArrayExprs.java">
  1671. <message kind="error" line="4"/>
  1672. <message kind="error" line="5"/>
  1673. <message kind="error" line="6"/>
  1674. <message kind="error" line="7"/>
  1675. </compile>
  1676. </ajc-test>
  1677. <ajc-test dir="errors"
  1678. title="good error for field name instead of type name"
  1679. keywords="from-errors">
  1680. <compile files="BadTypeName.java">
  1681. <message kind="error" line="2"/>
  1682. <message kind="error" line="4"/>
  1683. <message kind="error" line="6"/>
  1684. <message kind="error" line="8"/>
  1685. <message kind="error" line="10"/>
  1686. <message kind="error" line="12"/>
  1687. </compile>
  1688. </ajc-test>
  1689. <ajc-test dir="errors"
  1690. title="good error for bad field and inner class references"
  1691. keywords="from-errors,purejava">
  1692. <compile files="BadReferences.java">
  1693. <message kind="error" line="3"/>
  1694. <message kind="error" line="5"/>
  1695. </compile>
  1696. </ajc-test>
  1697. <ajc-test dir="errors" title="errors in aspect inheritance - 1"
  1698. keywords="from-errors">
  1699. <compile files="AspectInheritance1.java">
  1700. <message kind="error" line="17"/>
  1701. </compile>
  1702. </ajc-test>
  1703. <ajc-test dir="errors" title="errors in aspect inheritance - 2"
  1704. keywords="from-errors"
  1705. comment="XXX error now is confusing methods with pointcuts">
  1706. <compile files="AspectInheritance2.java">
  1707. <message kind="error" line="15"/>
  1708. <message kind="error" line="20"/>
  1709. <message kind="error" line="26"/>
  1710. <message kind="error" line="30"/>
  1711. </compile>
  1712. </ajc-test>
  1713. <ajc-test dir="errors" title="errors in aspect inheritance - 3"
  1714. keywords="from-errors">
  1715. <compile files="AspectInheritance3.java">
  1716. <message kind="error" line="19"/>
  1717. <message kind="error" line="24"/>
  1718. </compile>
  1719. </ajc-test>
  1720. <ajc-test dir="errors" title="errors in aspect inheritance - 4"
  1721. keywords="from-errors">
  1722. <compile files="AspectInheritance4.java">
  1723. <message kind="error" line="17"/>
  1724. </compile>
  1725. </ajc-test>
  1726. <ajc-test dir="errors"
  1727. title="Implementing a non-interface used to crash the compiler."
  1728. keywords="from-errors,purejava">
  1729. <compile files="PR333.java">
  1730. <message kind="error" line="6"/>
  1731. </compile>
  1732. </ajc-test>
  1733. <ajc-test dir="errors"
  1734. title="circular dominates leading to irresolvable advice precedence"
  1735. keywords="from-errors">
  1736. <compile files="CircularDominates.java">
  1737. <message kind="error" line="12"/>
  1738. <message kind="error" line="16"/>
  1739. <message kind="error" line="20"/>
  1740. </compile>
  1741. </ajc-test>
  1742. <ajc-test dir="errors"
  1743. title="Should issue an error for using 'class' instead of 'aspect'"
  1744. keywords="from-errors">
  1745. <compile files="NoAspect.java">
  1746. <message kind="error" line="12"/>
  1747. </compile>
  1748. </ajc-test>
  1749. <ajc-test dir="errors"
  1750. title="Should signal an error when we need an exposed value but don't provide it"
  1751. keywords="from-errors">
  1752. <compile files="MissingExposure.java">
  1753. <message kind="error" line="13"/>
  1754. </compile>
  1755. </ajc-test>
  1756. <ajc-test dir="errors"
  1757. title="StackOverFlowException with circular +implements's."
  1758. keywords="from-errors">
  1759. <compile files="CircularPlusImplementsIntros.java">
  1760. <message kind="error" line="19"/>
  1761. </compile>
  1762. </ajc-test>
  1763. <ajc-test dir="errors"
  1764. title="Introducing protected methods is causing a crash"
  1765. keywords="from-errors">
  1766. <compile files="ProtectedIntro.java">
  1767. <message kind="error" line="14"/>
  1768. </compile>
  1769. </ajc-test>
  1770. <ajc-test dir="errors"
  1771. title="Introducing protected fields is causing a crash"
  1772. keywords="from-errors">
  1773. <compile files="ProtectedFieldIntro.java">
  1774. <message kind="error" line="14"/>
  1775. </compile>
  1776. </ajc-test>
  1777. <ajc-test dir="errors" pr="388"
  1778. title="two classes with the same fully-qualified names [eachjvm]"
  1779. keywords="from-errors"
  1780. comment="XXX error not flagging initial type">
  1781. <compile files="DuplicatedNames.java">
  1782. <message kind="error" line="3"/>
  1783. <message kind="error" line="5"/>
  1784. <message kind="error" line="7"/>
  1785. <message kind="error" line="9"/>
  1786. </compile>
  1787. </ajc-test>
  1788. <ajc-test dir="errors" pr="396"
  1789. title="Undefined pointcuts were throwing exceptions in 07b11 [callsto]"
  1790. keywords="from-errors">
  1791. <compile files="UndefinedPointCut_PR396.java">
  1792. <message kind="error" line="8"/>
  1793. </compile>
  1794. </ajc-test>
  1795. <ajc-test dir="errors" pr="240" title="advice on abstract pointcuts"
  1796. keywords="from-errors">
  1797. <compile files="StaticAdviceOnAbstract.java">
  1798. <message kind="error" line="17"/>
  1799. </compile>
  1800. </ajc-test>
  1801. <ajc-test dir="errors"
  1802. title="Whoops, I forgot to put a class in the field access PCD."
  1803. keywords="from-errors">
  1804. <compile files="BadGetPCD.java">
  1805. <message kind="error" line="5"/>
  1806. </compile>
  1807. </ajc-test>
  1808. <ajc-test dir="errors" pr="138"
  1809. title=", PR#139 the arounds return something but there is no returns statement"
  1810. keywords="from-errors">
  1811. <compile files="MissingReturns.java">
  1812. <message kind="error" line="14"/>
  1813. <message kind="error" line="20"/>
  1814. </compile>
  1815. </ajc-test>
  1816. <ajc-test dir="pureJava" title="simple tests of throws and for stmt typing"
  1817. keywords="from-errors">
  1818. <compile files="SimpleSpec.java">
  1819. <message kind="error" line="4"/>
  1820. <message kind="error" line="7"/>
  1821. </compile>
  1822. </ajc-test>
  1823. <!-- we're not implementing this error check in 1.1 -->
  1824. <ajc-test dir="errors"
  1825. title="checking the contra-variant errors for typing of proceed"
  1826. keywords="from-errors,knownLimitations">
  1827. <compile files="BadAround.java">
  1828. <message kind="error" line="12"/>
  1829. <message kind="error" line="15"/>
  1830. <message kind="error" line="18"/>
  1831. <message kind="error" line="19"/>
  1832. <message kind="error" line="22"/>
  1833. </compile>
  1834. </ajc-test>
  1835. <ajc-test dir="errors"
  1836. title="error of no return statement detected not by ajc but by javac (line 4)"
  1837. keywords="from-errors,purejava">
  1838. <compile files="NoReturnStatementSimple.java">
  1839. <message kind="error" line="4"/>
  1840. </compile>
  1841. </ajc-test>
  1842. <ajc-test dir="errors" title="class and interface extension"
  1843. keywords="from-errors,purejava,messages-vary">
  1844. <compile files="BadExtension.java"
  1845. options="!eclipse">
  1846. <message kind="error" line="7"/>
  1847. <message kind="error" line="9"/>
  1848. <message kind="error" line="16"/>
  1849. <message kind="error" line="17"/>
  1850. <message kind="error" line="18"/>
  1851. <message kind="error" line="19"/>
  1852. <message kind="error" line="21"/>
  1853. <message kind="error" line="35"/>
  1854. <message kind="error" line="38"/>
  1855. </compile>
  1856. </ajc-test>
  1857. <ajc-test dir="errors" title="multiple conflicting introductions"
  1858. keywords="from-errors">
  1859. <compile files="MultipleIntros.java">
  1860. <message kind="error" line="16"/>
  1861. <message kind="error" line="18"/>
  1862. <message kind="error" line="19"/>
  1863. <message kind="error" line="22"/>
  1864. <message kind="error" line="27"/>
  1865. <message kind="error" line="30"/>
  1866. </compile>
  1867. </ajc-test>
  1868. <ajc-test dir="errors" title="types in throws clauses"
  1869. keywords="from-errors,purejava">
  1870. <compile files="ThrowsClause.java">
  1871. <message kind="error" line="2"/>
  1872. <message kind="error" line="4"/>
  1873. <message kind="error" line="13"/>
  1874. </compile>
  1875. </ajc-test>
  1876. <ajc-test dir="errors"
  1877. title="referencing non-static pointcuts in outer aspects"
  1878. keywords="from-errors">
  1879. <compile files="StaticPointcutRefs.java">
  1880. <message kind="error" line="8"/>
  1881. </compile>
  1882. </ajc-test>
  1883. <ajc-test dir="errors" title="bad switch syntax"
  1884. keywords="from-errors,purejava">
  1885. <compile files="Switch.java">
  1886. <message kind="error" line="4"/>
  1887. </compile>
  1888. </ajc-test>
  1889. <ajc-test dir="new"
  1890. title="javac correct compiler error if there is no return in around returning result"
  1891. keywords="from-errors">
  1892. <compile files="NoReturnInProceed.java">
  1893. <message kind="error" line="17"/>
  1894. </compile>
  1895. </ajc-test>
  1896. <ajc-test dir="errors"
  1897. title="should give an error for introducing two members with the same name"
  1898. keywords="from-errors">
  1899. <compile files="TwoIntros.java">
  1900. <message kind="error" line="14"/>
  1901. <message kind="error" line="16"/>
  1902. </compile>
  1903. </ajc-test>
  1904. <ajc-test dir="errors"
  1905. title="wimpy test for undeclared and uncaught exceptions"
  1906. keywords="from-errors">
  1907. <compile files="UndeclaredThrows.java">
  1908. <message kind="error" line="12"/>
  1909. <message kind="error" line="18"/>
  1910. </compile>
  1911. </ajc-test>
  1912. <ajc-test dir="pureJava" title="test for not folding circular constants"
  1913. keywords="from-errors">
  1914. <compile files="CircularFolding.java">
  1915. <message kind="error" line="6"/>
  1916. <message kind="error" line="7"/>
  1917. <message kind="error" line="8"/>
  1918. </compile>
  1919. </ajc-test>
  1920. <ajc-test dir="pureJava" title="continue targets must be continuable"
  1921. keywords="from-errors">
  1922. <compile files="BadContinueTarget.java">
  1923. <message kind="error" line="6"/>
  1924. </compile>
  1925. </ajc-test>
  1926. <ajc-test dir="pureJava"
  1927. title="qualified this to non-inner should be caught"
  1928. keywords="from-errors">
  1929. <compile files="BadQualifiedNew.java">
  1930. <message kind="error" line="4"/>
  1931. </compile>
  1932. </ajc-test>
  1933. <ajc-test dir="pureJava"
  1934. title="Referencing various things from static contexts"
  1935. keywords="from-errors,purejava">
  1936. <compile files="StaticContexts.java">
  1937. <message kind="error" line="11"/>
  1938. <message kind="error" line="18"/>
  1939. <message kind="error" line="19"/>
  1940. <message kind="error" line="20"/>
  1941. <message kind="error" line="21"/>
  1942. <message kind="error" line="27"/>
  1943. <message kind="error" line="28"/>
  1944. <message kind="error" line="31"/>
  1945. <message kind="error" line="35"/>
  1946. <message kind="error" line="36"/>
  1947. </compile>
  1948. </ajc-test>
  1949. <ajc-test dir="new"
  1950. title="Given non-matching TypePattern, CE flags use of non-introduced method rather than failure to introduce"
  1951. keywords="from-errors">
  1952. <compile
  1953. files="typepatternmatch/pack1/IntroErrorLocation.java,typepatternmatch/pack2/TargetClass.java">
  1954. <message kind="error" line="28"
  1955. text="typepatternmatch/pack1/IntroErrorLocation.java:28"/>
  1956. <message kind="warning" line="33"
  1957. text="typepatternmatch/pack1/IntroErrorLocation.java:33"/>
  1958. <message kind="error" line="39"
  1959. text="typepatternmatch/pack1/IntroErrorLocation.java:39"/>
  1960. </compile>
  1961. </ajc-test>
  1962. <ajc-test dir="new" pr="457"
  1963. title="Compiler should suggest using aspect when advice, pointcuts, or introduction is in a class"
  1964. keywords="from-errors">
  1965. <compile files="RecognizeAspectCE.java">
  1966. <message kind="error" line="6" text="RecognizeAspectCE.java:6"/>
  1967. </compile>
  1968. </ajc-test>
  1969. <ajc-test dir="errors"
  1970. title="Some expressions are illegal expression statements"
  1971. keywords="from-errors,purejava">
  1972. <compile files="BadExpressionStatement.java">
  1973. <message kind="error" line="3"/>
  1974. </compile>
  1975. </ajc-test>
  1976. <ajc-test dir="pureJava" title="illegal forward reference"
  1977. keywords="from-errors,purejava">
  1978. <compile files="IllegalForwardReference.java">
  1979. <message kind="error" line="9"/>
  1980. </compile>
  1981. </ajc-test>
  1982. <ajc-test dir="errors"
  1983. title="declare error working with pointcut and-not (amp,amp,bang)"
  1984. keywords="from-errors">
  1985. <compile files="DeclareError.java">
  1986. <message kind="error" line="5"/>
  1987. <message kind="error" line="19"/>
  1988. </compile>
  1989. </ajc-test>
  1990. <ajc-test dir="errors" title="protected accessibility"
  1991. keywords="from-errors,purejava">
  1992. <compile files="protectedAccess/Main.java,protectedAccess/p1/C1.java">
  1993. <message kind="error" line="26"/>
  1994. <message kind="error" line="28"/>
  1995. <message kind="error" line="29"/>
  1996. <message kind="error" line="31"/>
  1997. <message kind="error" line="37"/>
  1998. <message kind="error" line="45"/>
  1999. <message kind="error" line="46"/>
  2000. <message kind="error" line="54"/>
  2001. <message kind="error" line="55"/>
  2002. </compile>
  2003. </ajc-test>
  2004. <ajc-test dir="errors" title="parse-time illegal modifiers"
  2005. keywords="from-errors,purejava">
  2006. <compile files="Modifiers1.java">
  2007. <message kind="error" line="2"/>
  2008. <message kind="error" line="3"/>
  2009. <message kind="error" line="6"/>
  2010. </compile>
  2011. </ajc-test>
  2012. <ajc-test dir="errors" title="check-time illegal modifiers"
  2013. keywords="from-errors,purejava">
  2014. <compile files="Modifiers.java">
  2015. <message kind="error" line="2"/>
  2016. <message kind="error" line="3"/>
  2017. <message kind="error" line="4"/>
  2018. <message kind="error" line="6"/>
  2019. <message kind="error" line="7"/>
  2020. <message kind="error" line="8"/>
  2021. <message kind="error" line="9"/>
  2022. <message kind="error" line="11"/>
  2023. </compile>
  2024. </ajc-test>
  2025. <ajc-test dir="errors" title="illegal synchronized stmts"
  2026. keywords="from-errors,purejava,messages-vary">
  2027. <compile files="BadSynchronized.java"
  2028. options="!eclipse">
  2029. <message kind="error" line="6"/>
  2030. </compile>
  2031. </ajc-test>
  2032. <ajc-test dir="pureJava" title="modifiers on interface members"
  2033. keywords="from-errors,purejava">
  2034. <compile files="InterfaceMembers.java">
  2035. <message kind="error" line="2"/>
  2036. <message kind="error" line="3"/>
  2037. <message kind="error" line="4"/>
  2038. <message kind="error" line="5"/>
  2039. <message kind="error" line="7"/>
  2040. <message kind="error" line="8"/>
  2041. <message kind="error" line="9"/>
  2042. <message kind="error" line="10"/>
  2043. </compile>
  2044. </ajc-test>
  2045. <ajc-test dir="new" pr="534"
  2046. title="aspect as member of interface (private and protected)"
  2047. keywords="from-errors">
  2048. <compile files="AspectInInterfaceCF.java">
  2049. <message kind="error" line="11"/>
  2050. <message kind="error" line="14"/>
  2051. </compile>
  2052. </ajc-test>
  2053. <ajc-test dir="errors"
  2054. title="good errors (and not too many) for missing members"
  2055. comment="XXX import of class in default package"
  2056. keywords="from-errors,purejava">
  2057. <compile files="NotFound.java">
  2058. <message kind="error" line="1"/>
  2059. <message kind="error" line="2"/>
  2060. <message kind="error" line="6"/>
  2061. <message kind="error" line="9"/>
  2062. <message kind="error" line="10"/>
  2063. <message kind="error" line="14"/>
  2064. <message kind="error" line="16"/>
  2065. </compile>
  2066. </ajc-test>
  2067. <ajc-test dir="new" pr="536"
  2068. title="expecting compile failures with subclass narrowing scope of superclass methods or accessing private superclass variables"
  2069. keywords="from-errors,purejava">
  2070. <compile files="RestrictingVisibilityCF.java">
  2071. <message kind="error" line="27"/>
  2072. <message kind="error" line="29"/>
  2073. <message kind="error" line="31"/>
  2074. <message kind="error" line="39"/>
  2075. <message kind="error" line="41"/>
  2076. <message kind="error" line="46"/>
  2077. <message kind="error" line="48"/>
  2078. <message kind="error" line="53"/>
  2079. </compile>
  2080. </ajc-test>
  2081. <ajc-test dir="new" pr="494"
  2082. title="introduced inner interfaces - compile should fail to bind interface name outside of Aspect or if implementing method is not public"
  2083. keywords="from-errors">
  2084. <compile files="IntroduceInnerInterfaceCF.java" options="-Xlint:ignore">
  2085. <message kind="error" line="18"/>
  2086. <message kind="error" line="19"/>
  2087. <message kind="error" line="20"/>
  2088. <message kind="error" line="24"/>
  2089. <message kind="error" line="42"/>
  2090. <message kind="error" line="45"/>
  2091. <message kind="error" line="48"/>
  2092. <message kind="error" line="50"/>
  2093. <message kind="error" line="58"/>
  2094. </compile>
  2095. </ajc-test>
  2096. <ajc-test dir="errors"
  2097. title="aspects may not implement Serializable or Cloneable"
  2098. keywords="from-errors">
  2099. <compile files="AspectInterfaces.java">
  2100. <message kind="error" line="4"/>
  2101. <message kind="error" line="5"/>
  2102. <message kind="error" line="9"/>
  2103. </compile>
  2104. </ajc-test>
  2105. <ajc-test dir="errors"
  2106. title="inner classes may not have static non-constant members"
  2107. keywords="from-errors,purejava">
  2108. <compile files="InnerMembers.java">
  2109. <message kind="error" line="8"/>
  2110. <message kind="error" line="9"/>
  2111. <message kind="error" line="10"/>
  2112. <message kind="error" line="11"/>
  2113. <message kind="error" line="16"/>
  2114. <message kind="error" line="17"/>
  2115. </compile>
  2116. </ajc-test>
  2117. <ajc-test dir="errors"
  2118. title="explicit constructor calls can throw exceptions"
  2119. keywords="from-errors">
  2120. <compile files="ExplicitConstructorThrows.java">
  2121. <message kind="error" line="3"/>
  2122. <message kind="error" line="12"/>
  2123. <message kind="error" line="18"/>
  2124. </compile>
  2125. </ajc-test>
  2126. <ajc-test dir="pureJava" title="flow analysis with local types"
  2127. keywords="from-errors,purejava">
  2128. <compile files="InnerFlow.java">
  2129. <message kind="error" line="5"/>
  2130. </compile>
  2131. </ajc-test>
  2132. <ajc-test dir="errors" pr="664" title="bad proceed args good error messages"
  2133. keywords="from-errors">
  2134. <compile files="ProceedArgsCE.java">
  2135. <message kind="error" line="13"/>
  2136. <message kind="error" line="16"/>
  2137. <message kind="error" line="19"/>
  2138. </compile>
  2139. </ajc-test>
  2140. <ajc-test dir="design/intro"
  2141. title="initial tests for new introduction style" keywords="from-design">
  2142. <compile files="Simple.java"/>
  2143. <run class="Simple"/>
  2144. </ajc-test>
  2145. <ajc-test dir="design/intro"
  2146. title="overriding of introduced methods and accessibility"
  2147. keywords="from-design">
  2148. <compile files="Overriding.java"/>
  2149. <run class="Overriding"/>
  2150. </ajc-test>
  2151. <ajc-test dir="design/intro"
  2152. title="within and introductions behaves correctly" keywords="from-design">
  2153. <compile files="Within.java"/>
  2154. <run class="Within"/>
  2155. </ajc-test>
  2156. <!-- we're not implementing static inter-type fields on interfaces in 1.1 -->
  2157. <ajc-test dir="design/intro"
  2158. title="introduction of static methods and fields on classes and interfaces"
  2159. keywords="from-design,knownLimitation">
  2160. <compile files="Statics.java"/>
  2161. <run class="Statics"/>
  2162. </ajc-test>
  2163. <ajc-test dir="design/intro" pr="570"
  2164. title="correct inheritance of multiple concrete methods"
  2165. keywords="from-design">
  2166. <compile files="MultiInheritCP.java"/>
  2167. <run class="MultiInheritCP"/>
  2168. </ajc-test>
  2169. <ajc-test dir="design/intro" pr="570"
  2170. title="errors in inheritance of multiple concrete methods"
  2171. keywords="from-design">
  2172. <compile files="MultiInheritCF.java">
  2173. <message kind="error" line="21"/>
  2174. <message kind="error" line="41"/>
  2175. <message kind="error" line="42"/>
  2176. <message kind="error" line="43"/>
  2177. <message kind="error" line="45"/>
  2178. <message kind="error" line="46"/>
  2179. </compile>
  2180. </ajc-test>
  2181. <ajc-test dir="design/reflect"
  2182. title="Joinpoint is not created for foo(String) when before() advice is present."
  2183. keywords="from-design">
  2184. <compile files="SimpleAround1.java"/>
  2185. <run class="SimpleAround1"/>
  2186. </ajc-test>
  2187. <ajc-test dir="design/eachobject"
  2188. title="more tests of eachobject with some difficult typing issues"
  2189. keywords="from-design">
  2190. <compile files="Tricky3.java"/>
  2191. <run class="Tricky3"/>
  2192. </ajc-test>
  2193. <ajc-test dir="design/eachobject"
  2194. title="eachobject: eachobject(receptions(...)) [eachobject]"
  2195. keywords="from-design">
  2196. <compile files="Tricky1.java"/>
  2197. <run class="Tricky1"/>
  2198. </ajc-test>
  2199. <ajc-test dir="design/reflect" title="Checking new joinpoints"
  2200. keywords="from-design">
  2201. <compile files="Coverage.java"/>
  2202. <run class="Coverage"/>
  2203. </ajc-test>
  2204. <ajc-test dir="design/eachobject"
  2205. title="eachobject: simple test [eachobject] (still)"
  2206. keywords="from-design">
  2207. <compile files="Simple.java"/>
  2208. <run class="Simple"/>
  2209. </ajc-test>
  2210. <ajc-test dir="design/intro"
  2211. title="scope issues with introduction (needs more work)"
  2212. keywords="from-design">
  2213. <compile files="p1/ScopeIssues.java,p1/C1.java"/>
  2214. <run class="p1.ScopeIssues"/>
  2215. </ajc-test>
  2216. <ajc-test dir="new"
  2217. title="properly make choice between cast and parenthesis in parser"
  2218. keywords="from-resolved_10x">
  2219. <compile files="JoinPointFields.java"/>
  2220. <run class="JoinPointFields"/>
  2221. </ajc-test>
  2222. <ajc-test dir="new" pr="96"
  2223. title="field from implemented interface not found in advice"
  2224. keywords="from-resolved_10x">
  2225. <compile files="FieldFromImplementsNotFound.java"/>
  2226. <run class="FieldFromImplementsNotFound"/>
  2227. </ajc-test>
  2228. <ajc-test dir="new"
  2229. title="make sure advice affects introduced methods and constructors"
  2230. keywords="from-resolved_10x">
  2231. <compile files="AdviceOnIntroduced.java"/>
  2232. <run class="AdviceOnIntroduced"/>
  2233. </ajc-test>
  2234. <ajc-test dir="new" title="new around construct"
  2235. keywords="from-resolved_10x">
  2236. <compile files="AroundAdvice.java"/>
  2237. <run class="AroundAdvice"/>
  2238. </ajc-test>
  2239. <ajc-test dir="new" pr="65" title="aspect redefines a parameter"
  2240. keywords="from-resolved_10x">
  2241. <compile files="AspectRedefinesParam.java"/>
  2242. <run class="AspectRedefinesParam"/>
  2243. </ajc-test>
  2244. <ajc-test dir="new" title="introducing extends and implements"
  2245. keywords="from-resolved_10x">
  2246. <compile files="HierarchyIntroductions.java"/>
  2247. <run class="HierarchyIntroductions"/>
  2248. </ajc-test>
  2249. <ajc-test dir="new" pr="104" title="(related) aspect on interface"
  2250. keywords="from-resolved_10x">
  2251. <compile files="AspectOnInterface.java"/>
  2252. <run class="AspectOnInterface"/>
  2253. </ajc-test>
  2254. <ajc-test dir="new" pr="106" title="advice and package visibility"
  2255. keywords="from-resolved_10x">
  2256. <compile
  2257. files="packagevisibility/PackagesAndAdvice.java,packagevisibility/testPackage/Class1.java,packagevisibility/testPackage/Class2.java"/>
  2258. <run class="packagevisibility.PackagesAndAdvice"/>
  2259. </ajc-test>
  2260. <ajc-test dir="new" title="advice on implied empty constructor"
  2261. keywords="from-resolved_10x">
  2262. <compile files="AdviceOnEmptyConstructor.java"/>
  2263. <run class="AdviceOnEmptyConstructor"/>
  2264. </ajc-test>
  2265. <ajc-test dir="new" title="advice on * *(..) not mapping to initializers"
  2266. keywords="from-resolved_10x">
  2267. <compile files="InitializerAdvice.java"/>
  2268. <run class="InitializerAdvice"/>
  2269. </ajc-test>
  2270. <ajc-test dir="new"
  2271. title="three type declarations in the scope of an advice"
  2272. keywords="from-resolved_10x">
  2273. <compile files="TypeDeclInAdvice.java"/>
  2274. <run class="TypeDeclInAdvice"/>
  2275. </ajc-test>
  2276. <ajc-test dir="new" pr="129"
  2277. title="introduction fails on class with an inner class that extends or implements something"
  2278. keywords="from-resolved_10x">
  2279. <compile files="IntroductionFailsWithInnerClass.java"/>
  2280. <run class="IntroductionFailsWithInnerClass"/>
  2281. </ajc-test>
  2282. <ajc-test dir="new" pr="126"
  2283. title="checks that methods are introduced on the topmost class implemented"
  2284. keywords="from-resolved_10x">
  2285. <compile files="TopmostImplements.java"/>
  2286. <run class="TopmostImplements"/>
  2287. </ajc-test>
  2288. <ajc-test dir="new/arndAdvRet" pr="140"
  2289. title="a couple different returns from around advice"
  2290. keywords="from-resolved_10x">
  2291. <compile files="Driver.java"/>
  2292. <run class="Driver"/>
  2293. </ajc-test>
  2294. <ajc-test dir="new"
  2295. title="member finally advice paired with signature advice"
  2296. keywords="from-resolved_10x">
  2297. <compile files="TryErrors.java"/>
  2298. <run class="TryErrors"/>
  2299. </ajc-test>
  2300. <ajc-test dir="new" title="aspect of eachobject(instanceof(Interface))"
  2301. keywords="from-resolved_10x">
  2302. <compile files="AspectOfInterface.java"/>
  2303. <run class="AspectOfInterface"/>
  2304. </ajc-test>
  2305. <ajc-test dir="new/finalMemInit" pr="162"
  2306. title="final member initialization broken with JDK before 1.1.8"
  2307. keywords="from-resolved_10x">
  2308. <compile files="Driver.java"/>
  2309. <run class="Driver"/>
  2310. </ajc-test>
  2311. <ajc-test dir="new/packageNameClash" pr="205"
  2312. title="same package and var name clash in preprocessed code when aspectOf is used"
  2313. keywords="from-resolved_10x">
  2314. <compile files="otherpkg/Driver.java,pkg/Aspect1.java,pkg/Class1.java"/>
  2315. <run class="otherpkg.Driver"/>
  2316. </ajc-test>
  2317. <ajc-test dir="new/adviceOnStaticMeth" pr="221"
  2318. title="and PR#201 advice on static methods fails javac compile with this"
  2319. keywords="from-resolved_10x">
  2320. <compile files="Driver.java"/>
  2321. <run class="Driver"/>
  2322. </ajc-test>
  2323. <ajc-test dir="new"
  2324. title="non-static advice on inner class defined inside of method body"
  2325. keywords="from-resolved_10x">
  2326. <compile files="MethodInner.java"/>
  2327. <run class="MethodInner"/>
  2328. </ajc-test>
  2329. <ajc-test dir="new"
  2330. title="simple single-threaded eachcflow test (includes aspectOf)"
  2331. keywords="from-resolved_10x">
  2332. <compile files="Client.java"/>
  2333. <run class="Client"/>
  2334. </ajc-test>
  2335. <ajc-test dir="new/scopeTypingBug" pr="191"
  2336. title="bad type resolution when var reassigned in same scope"
  2337. keywords="from-resolved_10x">
  2338. <compile files="Driver.java"/>
  2339. <run class="Driver"/>
  2340. </ajc-test>
  2341. <ajc-test dir="new" pr="242"
  2342. title="generating the right throws clause for call-site advice (and around)"
  2343. keywords="from-resolved_10x">
  2344. <compile files="ComputedThrows.java"/>
  2345. <run class="ComputedThrows"/>
  2346. </ajc-test>
  2347. <ajc-test dir="new" pr="246"
  2348. title="advice on calls to static methods using several syntax"
  2349. keywords="from-resolved_10x">
  2350. <compile files="StaticCalls.java"/>
  2351. <run class="StaticCalls"/>
  2352. </ajc-test>
  2353. <ajc-test dir="new" pr="248"
  2354. title=", PR#249, PR#250 advice on constructor sites"
  2355. keywords="from-resolved_10x">
  2356. <compile files="NewSiteAdvice.java"/>
  2357. <run class="NewSiteAdvice"/>
  2358. </ajc-test>
  2359. <ajc-test dir="new" title="test after throwing advice in several ways"
  2360. keywords="from-resolved_10x">
  2361. <compile files="AfterThrowing.java"/>
  2362. <run class="AfterThrowing"/>
  2363. </ajc-test>
  2364. <ajc-test dir="new" title="fancy name patterns for method names"
  2365. keywords="from-resolved_10x">
  2366. <compile files="WildNames.java"/>
  2367. <run class="WildNames"/>
  2368. </ajc-test>
  2369. <ajc-test dir="design/calls" title="calls: calls(...)"
  2370. keywords="from-resolved_10x">
  2371. <compile files="Simple.java"/>
  2372. <run class="Simple"/>
  2373. </ajc-test>
  2374. <ajc-test dir="new/extraThrows" pr="259"
  2375. title="throws Exception clause is unnecessarily added to Driver.main method"
  2376. keywords="from-resolved_10x">
  2377. <compile files="Driver.java"/>
  2378. <run class="Driver"/>
  2379. </ajc-test>
  2380. <ajc-test dir="new/thisUsedInMain" pr="262"
  2381. title="javac fails when this is referenced in the static main method"
  2382. keywords="from-resolved_10x">
  2383. <compile files="Driver.java"/>
  2384. <run class="Driver"/>
  2385. </ajc-test>
  2386. <ajc-test dir="new/badCast" pr="275"
  2387. title="and 276 cast error generated by ajc when type not in signature"
  2388. keywords="from-resolved_10x">
  2389. <compile files="Driver.java"/>
  2390. <run class="Driver"/>
  2391. </ajc-test>
  2392. <ajc-test dir="new" pr="285"
  2393. title="calls to methods to which we don't have source"
  2394. keywords="from-resolved_10x">
  2395. <compile files="ExternalCalls.java"/>
  2396. <run class="ExternalCalls"/>
  2397. </ajc-test>
  2398. <ajc-test dir="new/beforeNotRun" pr="265" title="more aspect inheritance"
  2399. keywords="from-resolved_10x">
  2400. <compile files="Driver.java"/>
  2401. <run class="Driver"/>
  2402. </ajc-test>
  2403. <ajc-test dir="new" pr="310"
  2404. title="around and calls with both calling and called this params"
  2405. keywords="from-resolved_10x">
  2406. <compile files="AroundAndCalls.java"/>
  2407. <run class="AroundAndCalls"/>
  2408. </ajc-test>
  2409. <ajc-test dir="new/pointcutParameter" pr="290"
  2410. title="compiler crashes with eachobject and named pointcuts with parameters"
  2411. keywords="from-resolved_10x">
  2412. <compile files="Driver.java"/>
  2413. <run class="Driver"/>
  2414. </ajc-test>
  2415. <ajc-test dir="new/unqualifiedPointcutName" pr="304"
  2416. title="lookup rules for unqualified pointcut names"
  2417. keywords="from-resolved_10x">
  2418. <compile files="Driver.java"/>
  2419. <run class="Driver"/>
  2420. </ajc-test>
  2421. <ajc-test dir="new" pr="321"
  2422. title="eachcflow only instantiated if the aspect has some advice in it"
  2423. keywords="from-resolved_10x">
  2424. <compile files="CFlowNoAdvice.java"/>
  2425. <run class="CFlowNoAdvice"/>
  2426. </ajc-test>
  2427. <ajc-test dir="new" pr="309"
  2428. title="(DESIGN QUESTION) aspect of eachJVM advising its own initializer"
  2429. keywords="from-resolved_10x">
  2430. <compile files="EachJVMOnSelf.java"/>
  2431. <run class="EachJVMOnSelf"/>
  2432. </ajc-test>
  2433. <ajc-test dir="new" pr="302"
  2434. title="after returning advice on calls to constructors"
  2435. keywords="from-resolved_10x">
  2436. <compile files="AfterConstructorCalls.java"/>
  2437. <run class="AfterConstructorCalls"/>
  2438. </ajc-test>
  2439. <ajc-test dir="new"
  2440. title="Does annotating 'new' with a type work as desired?"
  2441. keywords="from-resolved_10x">
  2442. <compile files="ConstructorSignatures.java"/>
  2443. <run class="ConstructorSignatures"/>
  2444. </ajc-test>
  2445. <ajc-test dir="new"
  2446. title="Referring to inner classes as {super}.{inner} confused ajc."
  2447. keywords="from-resolved_10x">
  2448. <compile files="InnerClassNaming.java"/>
  2449. <run class="InnerClassNaming"/>
  2450. </ajc-test>
  2451. <ajc-test dir="new" title="Advice on advice" keywords="from-resolved_10x">
  2452. <compile files="AdviceOnAdvice.java"/>
  2453. <run class="AdviceOnAdvice"/>
  2454. </ajc-test>
  2455. <ajc-test dir="new" title="Introductions on other introductions"
  2456. keywords="from-resolved_10x">
  2457. <compile files="IntroOnIntro.java"/>
  2458. <run class="IntroOnIntro"/>
  2459. </ajc-test>
  2460. <ajc-test dir="new" title="Putting advice on array constructors."
  2461. keywords="from-resolved_10x">
  2462. <compile files="Orleans.java"/>
  2463. <run class="Orleans"/>
  2464. </ajc-test>
  2465. <ajc-test dir="new"
  2466. title="call points within block inner classes are doubled"
  2467. keywords="from-resolved_10x">
  2468. <compile files="DoubledCalls.java"/>
  2469. <run class="DoubledCalls"/>
  2470. </ajc-test>
  2471. <ajc-test dir="new" title="Gets and sets with other advice"
  2472. keywords="from-resolved_10x">
  2473. <compile files="Counting3.java"/>
  2474. <run class="Counting3"/>
  2475. </ajc-test>
  2476. <ajc-test dir="new" title="Compiler can compile correct strictfp modifiers"
  2477. keywords="from-resolved_10x">
  2478. <compile files="StrictFpCompile.java"/>
  2479. <run class="StrictFpCompile"/>
  2480. </ajc-test>
  2481. <ajc-test dir="new" title="basic test of callsto pointcuts"
  2482. keywords="from-resolved_10x">
  2483. <compile files="CallsTo.java"/>
  2484. <run class="CallsTo"/>
  2485. </ajc-test>
  2486. <ajc-test dir="new" title="package wildcards in packages"
  2487. keywords="from-resolved_10x">
  2488. <compile files="pack/PackageWildcards.java"/>
  2489. <run class="pack.PackageWildcards"/>
  2490. </ajc-test>
  2491. <ajc-test dir="new" title="advice on catch clauses"
  2492. keywords="from-resolved_10x">
  2493. <compile files="CatchAdvice.java"/>
  2494. <run class="CatchAdvice"/>
  2495. </ajc-test>
  2496. <ajc-test dir="new"
  2497. title="around advice on calls and receptions with lots of context"
  2498. keywords="from-resolved_10x">
  2499. <compile files="AroundCalls.java"/>
  2500. <run class="AroundCalls"/>
  2501. </ajc-test>
  2502. <ajc-test dir="new" pr="208"
  2503. title="! modifier and char in pointcut (no longer an error)"
  2504. keywords="from-resolved_10x">
  2505. <compile files="NotCharInPointcut.java"/>
  2506. <run class="NotCharInPointcut"/>
  2507. </ajc-test>
  2508. <ajc-test dir="new" pr="308"
  2509. title="right number of aspect instances per cflow"
  2510. keywords="from-resolved_10x">
  2511. <compile files="CFlowObjects.java"/>
  2512. <run class="CFlowObjects"/>
  2513. </ajc-test>
  2514. <ajc-test dir="new" pr="310" title="many this's into around advice on calls"
  2515. keywords="from-resolved_10x">
  2516. <compile files="AroundCallsArgs.java"/>
  2517. <run class="AroundCallsArgs"/>
  2518. </ajc-test>
  2519. <ajc-test dir="new"
  2520. title="Ensures introduction methods can have advice placed on them"
  2521. keywords="from-resolved_10x">
  2522. <compile files="Dominates.java"/>
  2523. <run class="Dominates"/>
  2524. </ajc-test>
  2525. <ajc-test dir="new" pr="355"
  2526. title="No boolean appearing in the 'if' clause for around advice with eachJVM()"
  2527. keywords="from-resolved_10x">
  2528. <compile files="PR355.java"/>
  2529. <run class="PR355"/>
  2530. </ajc-test>
  2531. <ajc-test dir="new" title="Order of super introductions."
  2532. keywords="from-resolved_10x">
  2533. <compile files="OrderOfExtendsPlusAndImplementsPlus.java"/>
  2534. <run class="OrderOfExtendsPlusAndImplementsPlus"/>
  2535. </ajc-test>
  2536. <ajc-test dir="new" title="Ensuring backdoor methods are produced."
  2537. keywords="from-resolved_10x">
  2538. <compile files="BackdoorMethods.java"/>
  2539. <run class="BackdoorMethods"/>
  2540. </ajc-test>
  2541. <ajc-test dir="new"
  2542. title="no duplicate advice methods in abstract aspects"
  2543. keywords="from-resolved_10x">
  2544. <compile
  2545. files="GeneratingDuplicateNamedAdviceMethodsInAbstractAspects.java"/>
  2546. <run class="GeneratingDuplicateNamedAdviceMethodsInAbstractAspects"/>
  2547. </ajc-test>
  2548. <ajc-test dir="new"
  2549. title="no duplicate advice methods in abstract aspects extended"
  2550. keywords="from-resolved_10x">
  2551. <compile
  2552. files="GeneratingDuplicateNamedAdviceMethodsInAbstractAspectsWithExtendedAspect.java"/>
  2553. <run class="GeneratingDuplicateNamedAdviceMethodsInAbstractAspectsWithExtendedAspect"
  2554. />
  2555. </ajc-test>
  2556. <ajc-test dir="new"
  2557. title="Putting after-constructor advice on the wrong types implementing the same interface."
  2558. keywords="from-resolved_10x">
  2559. <compile files="AfterAdviceOnConstructorsOnTheWrongType.java"/>
  2560. <run class="AfterAdviceOnConstructorsOnTheWrongType"/>
  2561. </ajc-test>
  2562. <ajc-test dir="new"
  2563. title="Instantiating non-static inner classes in advice."
  2564. keywords="from-resolved_10x">
  2565. <compile files="NonstaticInnerClassesInAspects.java"/>
  2566. <run class="NonstaticInnerClassesInAspects"/>
  2567. </ajc-test>
  2568. <ajc-test dir="new" pr="316" title="Referring to pointcut in of clauses"
  2569. keywords="from-resolved_10x">
  2570. <compile files="ReferringToPointcutsInAspect_PR316.java"/>
  2571. <run class="ReferringToPointcutsInAspect_PR316"/>
  2572. </ajc-test>
  2573. <ajc-test dir="new" pr="191"
  2574. title="Confused referring to instance variables and locals"
  2575. keywords="from-resolved_10x">
  2576. <compile files="ScopesAndFields_PR191.java"/>
  2577. <run class="ScopesAndFields_PR191"/>
  2578. </ajc-test>
  2579. <ajc-test dir="new"
  2580. title="Parsing C+ expressions without parens in super introductions."
  2581. keywords="from-resolved_10x">
  2582. <compile files="ParsingSubtypesIntroductions.java"/>
  2583. <run class="ParsingSubtypesIntroductions"/>
  2584. </ajc-test>
  2585. <ajc-test dir="new"
  2586. title="Introducing methods on classes that implements inner-interfaces with +implements."
  2587. keywords="from-resolved_10x">
  2588. <compile files="IntroducingMethodsOnPlusImplementedInterfaces.java"/>
  2589. <run class="IntroducingMethodsOnPlusImplementedInterfaces"/>
  2590. </ajc-test>
  2591. <ajc-test dir="new" pr="464"
  2592. title="Methods with the same name are generated when abstract aspects extend another abstract aspect."
  2593. keywords="from-resolved_10x">
  2594. <compile
  2595. files="AbstractAspectsExtendingAbstractAspectsGeneratesMethodsWithTheSameName_PR464.java"/>
  2596. <run class="AbstractAspectsExtendingAbstractAspectsGeneratesMethodsWithTheSameName_PR464"
  2597. />
  2598. </ajc-test>
  2599. <ajc-test dir="new" title="Making sure final variables stay final."
  2600. keywords="from-resolved_10x">
  2601. <compile files="RemovingFinals.java"/>
  2602. <run class="RemovingFinals"/>
  2603. </ajc-test>
  2604. <ajc-test dir="new"
  2605. title="Problem resolving meta-joinpoint names with around advice on methods called from around advice."
  2606. keywords="from-resolved_10x">
  2607. <compile files="AroundAdviceOnMethodsCalledInAroundAdvice.java"/>
  2608. <run class="AroundAdviceOnMethodsCalledInAroundAdvice"/>
  2609. </ajc-test>
  2610. <ajc-test dir="new"
  2611. title="Make sure that names of lifted local classes are right when referenced in call-site advice"
  2612. keywords="from-resolved_10x">
  2613. <compile files="CallsAndLocalClasses.java"/>
  2614. <run class="CallsAndLocalClasses"/>
  2615. </ajc-test>
  2616. <ajc-test dir="new" title="matching for throws clause"
  2617. keywords="from-resolved_10x">
  2618. <compile files="ThrowsMatching.java"/>
  2619. <run class="ThrowsMatching"/>
  2620. </ajc-test>
  2621. <ajc-test dir="new" title="holding onto proceed calls in a closure-like way"
  2622. keywords="from-resolved_10x">
  2623. <compile files="HoldProceed.java"/>
  2624. <run class="HoldProceed"/>
  2625. </ajc-test>
  2626. <ajc-test dir="new" title="basic test of declare soft"
  2627. keywords="from-resolved_10x">
  2628. <compile files="DeclareSoft.java"/>
  2629. <run class="DeclareSoft"/>
  2630. </ajc-test>
  2631. <ajc-test dir="new"
  2632. title="advice on calls to constructors of anonymous inners and access to context"
  2633. keywords="from-resolved_10x">
  2634. <compile files="NewAnonymous.java"/>
  2635. <run class="NewAnonymous"/>
  2636. </ajc-test>
  2637. <ajc-test dir="new" title="Cannot bind a name." keywords="from-resolved_10x">
  2638. <compile files="CannotReferenceSuper.java"/>
  2639. <run class="CannotReferenceSuper"/>
  2640. </ajc-test>
  2641. <ajc-test dir="new/innerAspectAccess" pr="211"
  2642. title="inner aspects can't access outer pointcuts"
  2643. keywords="from-resolved_10x">
  2644. <compile files="Driver.java"/>
  2645. <run class="Driver"/>
  2646. </ajc-test>
  2647. <ajc-test dir="new"
  2648. title="implements and extends are introduced before methods and fields"
  2649. keywords="from-resolved_10x">
  2650. <compile files="IntroOrder.java"/>
  2651. <run class="IntroOrder"/>
  2652. </ajc-test>
  2653. <ajc-test dir="new"
  2654. title="a static/inner aspect of a inner class of an aspect is pulled to the top level as static"
  2655. keywords="from-resolved_10x">
  2656. <compile files="StaticInnerAspect.java"/>
  2657. <run class="StaticInnerAspect"/>
  2658. </ajc-test>
  2659. <ajc-test dir="new" title="Crashes with privileged aspect."
  2660. keywords="from-resolved_10x">
  2661. <compile files="Privileged.java"/>
  2662. <run class="Privileged"/>
  2663. </ajc-test>
  2664. <ajc-test dir="new"
  2665. title="join points exist in the execution of field initializers"
  2666. keywords="from-resolved_10x">
  2667. <compile files="FieldInitializerJoinPoints.java"/>
  2668. <run class="FieldInitializerJoinPoints"/>
  2669. </ajc-test>
  2670. <ajc-test dir="new/privilegedAspects" title="privileged aspects"
  2671. keywords="from-resolved_10x">
  2672. <compile
  2673. files="main/Main.java,fish/PrivateClass.java,fish/B.java,fowl/C.java,fowl/D.java"/>
  2674. <run class="main.Main"/>
  2675. </ajc-test>
  2676. <ajc-test dir="new" title="advice on field gets in privileged aspects"
  2677. keywords="from-resolved_10x">
  2678. <compile files="AdviceOnPrivileged.java"/>
  2679. <run class="AdviceOnPrivileged"/>
  2680. </ajc-test>
  2681. <ajc-test dir="new" title="Two anonymous classes in the same scope"
  2682. keywords="from-resolved_10x">
  2683. <compile files="TwoAnonymous.java"/>
  2684. <run class="TwoAnonymous"/>
  2685. </ajc-test>
  2686. <ajc-test dir="new"
  2687. title="basic tests for initializer and staticinitializer PCDs"
  2688. keywords="from-resolved_10x">
  2689. <compile files="InitializerTest.java"/>
  2690. <run class="InitializerTest"/>
  2691. </ajc-test>
  2692. <ajc-test dir="new" pr="98"
  2693. title="introduction of an initializer into a class"
  2694. keywords="from-resolved_10x">
  2695. <compile files="IntroductionOfInitializer.java"/>
  2696. <run class="IntroductionOfInitializer"/>
  2697. </ajc-test>
  2698. <ajc-test dir="new/access"
  2699. title="some method accessibility tests, particularly package-protected and inheritance"
  2700. keywords="from-resolved_10x">
  2701. <compile files="Test1.java,pc/C.java,psub/SubC.java,psub/A.java"/>
  2702. <run class="Test1"/>
  2703. </ajc-test>
  2704. <ajc-test dir="new"
  2705. title="fairly monotonous (and non-covering) tests for expanded dot patterns"
  2706. keywords="from-resolved_10x">
  2707. <compile files="ExpandedDotDotPattern.java"/>
  2708. <run class="ExpandedDotDotPattern"/>
  2709. </ajc-test>
  2710. <ajc-test dir="new" title="field patterns and subtyping"
  2711. keywords="from-resolved_10x">
  2712. <compile files="FieldPatterns.java"/>
  2713. <run class="FieldPatterns"/>
  2714. </ajc-test>
  2715. <ajc-test dir="new"
  2716. title="Checking formal matching as in Roeder's bug in 0.7b10"
  2717. keywords="from-resolved_10x">
  2718. <compile files="FormalMatching.java"/>
  2719. <run class="FormalMatching"/>
  2720. </ajc-test>
  2721. <ajc-test dir="new" title="Introducing synchronized methods on interfaces."
  2722. keywords="from-resolved_10x">
  2723. <compile files="SynchronizedMethodsOnInterfaces.java"/>
  2724. <run class="SynchronizedMethodsOnInterfaces"/>
  2725. </ajc-test>
  2726. <ajc-test dir="new"
  2727. title="The pointcut params (..,int..) is not recognizing (Object,int,Object)."
  2728. keywords="from-resolved_10x">
  2729. <compile files="Params.java"/>
  2730. <run class="Params"/>
  2731. </ajc-test>
  2732. <ajc-test dir="new"
  2733. title="calls advice on array objects causes error in code generation"
  2734. keywords="from-resolved_10x">
  2735. <compile files="CallsToArray.java"/>
  2736. <run class="CallsToArray"/>
  2737. </ajc-test>
  2738. <ajc-test dir="new"
  2739. title="join points in field initializers aren't showing up."
  2740. keywords="from-resolved_10x">
  2741. <compile files="NonexistentFieldInitializers.java"/>
  2742. <run class="NonexistentFieldInitializers"/>
  2743. </ajc-test>
  2744. <ajc-test dir="new" pr="318" title="Handlers problem"
  2745. keywords="from-resolved_10x">
  2746. <compile files="PR318.java"/>
  2747. <run class="PR318"/>
  2748. </ajc-test>
  2749. <ajc-test dir="new"
  2750. title="work nicely with inner class method look-up rules and call-site advice"
  2751. keywords="from-resolved_10x">
  2752. <compile files="InnerMethods.java"/>
  2753. <run class="InnerMethods"/>
  2754. </ajc-test>
  2755. <ajc-test dir="new" title="strictfp modifier allowed on advice"
  2756. keywords="from-resolved_10x">
  2757. <compile files="StrictFPAdvice.java"/>
  2758. <run class="StrictFPAdvice"/>
  2759. </ajc-test>
  2760. <ajc-test dir="new" pr="415"
  2761. title="No argthis was being created for calls advice."
  2762. keywords="from-resolved_10x">
  2763. <compile files="PR415.java"/>
  2764. <run class="PR415"/>
  2765. </ajc-test>
  2766. <ajc-test dir="new"
  2767. title="Ensuring no advice with instanceof(..) is run on static methods."
  2768. keywords="from-resolved_10x">
  2769. <compile files="StaticMethodsShouldNotReceiveInstanceofAdvice.java"/>
  2770. <run class="StaticMethodsShouldNotReceiveInstanceofAdvice"/>
  2771. </ajc-test>
  2772. <ajc-test dir="new"
  2773. title="Null pointer on gets advice showing the case causing the error"
  2774. keywords="from-resolved_10x">
  2775. <compile files="NullPointerOnGetsSimple.java"/>
  2776. <run class="NullPointerOnGetsSimple"/>
  2777. </ajc-test>
  2778. <ajc-test dir="new"
  2779. title="try to make sure that dynamic JoinPoint objects aren't generated when used inside of if (false) { ... }"
  2780. keywords="from-resolved_10x">
  2781. <compile files="IfdefsAndAdvice.java"/>
  2782. <run class="IfdefsAndAdvice"/>
  2783. </ajc-test>
  2784. <ajc-test dir="new"
  2785. title="within and withincode (doesn't all work due to local class name issues)"
  2786. keywords="from-resolved_10x">
  2787. <compile files="WithinInners.java"/>
  2788. <run class="WithinInners"/>
  2789. </ajc-test>
  2790. <ajc-test dir="new"
  2791. title="around advice on calls within inner classes (including protected method calls)"
  2792. keywords="from-resolved_10x">
  2793. <compile files="AroundInnerCalls.java"/>
  2794. <run class="AroundInnerCalls"/>
  2795. </ajc-test>
  2796. <ajc-test dir="new" title="Arguments to runNext should be final when needed"
  2797. keywords="from-resolved_10x">
  2798. <compile files="Finals.java"/>
  2799. <run class="Finals"/>
  2800. </ajc-test>
  2801. <ajc-test dir="new" title="Method introductions"
  2802. keywords="from-resolved_10x">
  2803. <compile files="MethodIntroductions.java"/>
  2804. <run class="MethodIntroductions"/>
  2805. </ajc-test>
  2806. <ajc-test dir="new" title="Putting an introduced method on each interface"
  2807. keywords="from-resolved_10x">
  2808. <compile files="IntroducedMethodsOnEachInterface.java"/>
  2809. <run class="IntroducedMethodsOnEachInterface"/>
  2810. </ajc-test>
  2811. <ajc-test dir="new" title="Extending interfaces"
  2812. keywords="from-resolved_10x">
  2813. <compile files="BindingInterfaces.java"/>
  2814. <run class="BindingInterfaces"/>
  2815. </ajc-test>
  2816. <ajc-test dir="new" title="Introducing private methods on interfaces"
  2817. keywords="from-resolved_10x">
  2818. <compile files="IntroducingPrivateMethodsOnInterfaces.java"/>
  2819. <run class="IntroducingPrivateMethodsOnInterfaces"/>
  2820. </ajc-test>
  2821. <ajc-test dir="new"
  2822. title="Issuing errors for assigning variables thisJoinPoint -- not assigning thisJoinPoint."
  2823. keywords="from-resolved_10x">
  2824. <compile files="ThisJoinPointAssignments.java"/>
  2825. <run class="ThisJoinPointAssignments"/>
  2826. </ajc-test>
  2827. <ajc-test dir="new"
  2828. title="Static references inside of introduced bodies get bound correctly."
  2829. keywords="from-resolved_10x">
  2830. <compile files="StaticIntroducedReferences.java"/>
  2831. <run class="StaticIntroducedReferences"/>
  2832. </ajc-test>
  2833. <ajc-test dir="new/cflowObjectCreations" pr="307"
  2834. title="cflow and object creations [of eachcflow]"
  2835. keywords="from-resolved_10x">
  2836. <compile files="Driver.java"/>
  2837. <run class="Driver"/>
  2838. </ajc-test>
  2839. <ajc-test dir="new/twofiles"
  2840. title="Doesn't import MightHaveAspect when compiling with more than 1 file. [eachobject]"
  2841. keywords="from-resolved_10x">
  2842. <compile files="TheObject.java,TheAspect.java"/>
  2843. <run class="TheObject"/>
  2844. </ajc-test>
  2845. <ajc-test dir="new" pr="436"
  2846. title="test binding to formals in calls to constructors (binding to null) (eachobject !!! now misnamed)"
  2847. keywords="from-resolved_10x">
  2848. <compile files="BindingThisInsteadOfFormal.java"/>
  2849. <run class="BindingThisInsteadOfFormal"/>
  2850. </ajc-test>
  2851. <ajc-test dir="new"
  2852. title="After advice isn't being woven into after throwing advice"
  2853. keywords="from-resolved_10x">
  2854. <compile files="AfterThrowingNotWoven.java"/>
  2855. <run class="AfterThrowingNotWoven"/>
  2856. </ajc-test>
  2857. <ajc-test dir="new" title="Throwing an EmptyStackException."
  2858. keywords="from-resolved_10x">
  2859. <compile files="EmptyStack.java"/>
  2860. <run class="EmptyStack"/>
  2861. </ajc-test>
  2862. <ajc-test dir="new"
  2863. title="check that MightHaveAspect interface is created correctly for an aspect in deep package"
  2864. keywords="from-resolved_10x">
  2865. <compile files="EachObjectTarget.java,EachObjectInDeepPackage.java"/>
  2866. <run class="EachObjectTarget"/>
  2867. </ajc-test>
  2868. <ajc-test dir="new" title="Defines clfow$ajc0 more once. [eachcflow]"
  2869. keywords="from-resolved_10x">
  2870. <compile files="Binkley.java"/>
  2871. <run class="Binkley"/>
  2872. </ajc-test>
  2873. <ajc-test dir="new"
  2874. title="Various calls, receptions, and callsto tests [callsto]"
  2875. keywords="from-resolved_10x">
  2876. <compile files="CallsReceptionsCallsto.java"/>
  2877. <run class="CallsReceptionsCallsto"/>
  2878. </ajc-test>
  2879. <ajc-test dir="new" pr="320"
  2880. title="Was throwing exception, now just an error. [eachobject]"
  2881. keywords="from-resolved_10x">
  2882. <compile files="PR320.java"/>
  2883. <run class="PR320"/>
  2884. </ajc-test>
  2885. <ajc-test dir="new"
  2886. title="different version of aspect inheritance, particularly empty pointcuts and abstract cflows [eachcflow]"
  2887. keywords="from-resolved_10x,fail-unimplemented">
  2888. <compile files="AspectInheritance.java"/>
  2889. <run class="AspectInheritance"/>
  2890. </ajc-test>
  2891. <ajc-test dir="new" pr="339"
  2892. title="set advice on member initing throwing exception [eachobject]"
  2893. keywords="from-resolved_10x">
  2894. <compile files="PR339.java"/>
  2895. <run class="PR339"/>
  2896. </ajc-test>
  2897. <ajc-test dir="new" pr="417"
  2898. title="Testing class names with same name's with difference case as package. [eachobject]"
  2899. keywords="from-resolved_10x">
  2900. <compile files="test/TraceAspect.java,test/Test.java"/>
  2901. <run class="test.Test"/>
  2902. </ajc-test>
  2903. <ajc-test dir="new"
  2904. title="Null pointer on gets advice with coverage [painful]"
  2905. keywords="from-resolved_10x">
  2906. <compile files="NullPointerOnGets.java"/>
  2907. <run class="NullPointerOnGets"/>
  2908. </ajc-test>
  2909. <ajc-test dir="new" title="Basic test for cflow pointcuts [eachcflow]"
  2910. keywords="from-resolved_10x">
  2911. <compile files="CFlowPoints.java"/>
  2912. <run class="CFlowPoints"/>
  2913. </ajc-test>
  2914. <ajc-test dir="new"
  2915. title="Crashing when looking up the type of array members."
  2916. keywords="from-resolved_10x">
  2917. <compile files="ArrayCasts.java"/>
  2918. <run class="ArrayCasts"/>
  2919. </ajc-test>
  2920. <ajc-test dir="new"
  2921. title="PostfixExprs to various synthetic things are fixed correctly [eachobject]"
  2922. keywords="from-resolved_10x">
  2923. <compile files="Fixes.java"/>
  2924. <run class="Fixes"/>
  2925. </ajc-test>
  2926. <ajc-test dir="new"
  2927. title="Dave Binkley's problem with eachcflowroot. [eachcflow]"
  2928. keywords="from-resolved_10x">
  2929. <compile files="Binkley2.java"/>
  2930. <run class="Binkley2"/>
  2931. </ajc-test>
  2932. <ajc-test dir="new" pr="105" title="advice on an inherited method"
  2933. keywords="from-resolved_10x">
  2934. <compile files="AdviceOnInheritedMethod.java"/>
  2935. <run class="AdviceOnInheritedMethod"/>
  2936. </ajc-test>
  2937. <ajc-test dir="new" pr="114"
  2938. title=", PR#115 checks the ordering of catch clauses"
  2939. keywords="from-resolved_10x">
  2940. <compile files="OrderOfCatches.java"/>
  2941. <run class="OrderOfCatches"/>
  2942. </ajc-test>
  2943. <ajc-test dir="new" title="various declared exception permutations"
  2944. keywords="from-resolved_10x">
  2945. <compile files="DeclaredExcs.java"/>
  2946. <run class="DeclaredExcs"/>
  2947. </ajc-test>
  2948. <ajc-test dir="new"
  2949. title="ordering of advice kinds as well as cflow and dominates"
  2950. keywords="from-resolved_10x">
  2951. <compile files="AdviceOrdering.java"/>
  2952. <run class="AdviceOrdering"/>
  2953. </ajc-test>
  2954. <ajc-test dir="new" pr="241"
  2955. title="advice on default constructor for a class only referenced via reflection"
  2956. keywords="from-resolved_10x">
  2957. <compile files="OddConstructors.java"/>
  2958. <run class="OddConstructors"/>
  2959. </ajc-test>
  2960. <ajc-test dir="new" pr="289"
  2961. title="calling and called this params in calls points"
  2962. keywords="from-resolved_10x">
  2963. <compile files="CallsParams.java"/>
  2964. <run class="CallsParams"/>
  2965. </ajc-test>
  2966. <ajc-test dir="new" pr="322"
  2967. title="primitive parameters coercable to Object just like return values are"
  2968. keywords="from-resolved_10x">
  2969. <compile files="ObjectForInt.java"/>
  2970. <run class="ObjectForInt"/>
  2971. </ajc-test>
  2972. <ajc-test dir="new"
  2973. title="Does the matrix coverage thing for the new method signatures"
  2974. keywords="from-resolved_10x">
  2975. <compile files="MethodSignatures.java"/>
  2976. <run class="MethodSignatures"/>
  2977. </ajc-test>
  2978. <ajc-test dir="new"
  2979. title="join points in static/dynamic initializers aren't showing up."
  2980. keywords="from-resolved_10x">
  2981. <compile files="NonexistentInitializers.java"/>
  2982. <run class="NonexistentInitializers"/>
  2983. </ajc-test>
  2984. <ajc-test dir="new"
  2985. title="Gets and sets on a number of variables (field access ???)"
  2986. keywords="from-resolved_10x">
  2987. <compile files="Gets.java"/>
  2988. <run class="Gets"/>
  2989. </ajc-test>
  2990. <ajc-test dir="new" title="correct types of parameters at call-sites"
  2991. keywords="from-resolved_10x">
  2992. <compile files="CallTypes.java"/>
  2993. <run class="CallTypes"/>
  2994. </ajc-test>
  2995. <ajc-test dir="new"
  2996. title="Joinpoints are showing up on intermediate call sites"
  2997. keywords="from-resolved_10x">
  2998. <compile files="Counting1.java"/>
  2999. <run class="Counting1"/>
  3000. </ajc-test>
  3001. <ajc-test dir="new" title="Reception based on strictfp modifier"
  3002. keywords="from-resolved_10x">
  3003. <compile files="StrictFpReceptions.java"/>
  3004. <run class="StrictFpReceptions"/>
  3005. </ajc-test>
  3006. <ajc-test dir="new" pr="353"
  3007. title="Subclasses that do not redefine a method are not being handled correctly"
  3008. keywords="from-resolved_10x">
  3009. <compile files="PR353b.java"/>
  3010. <run class="PR353b"/>
  3011. </ajc-test>
  3012. <ajc-test dir="new"
  3013. title="making sure that super calls are bound to the right methods"
  3014. keywords="from-resolved_10x">
  3015. <compile files="SupersAndInterfaces.java"/>
  3016. <run class="SupersAndInterfaces"/>
  3017. </ajc-test>
  3018. <ajc-test dir="new" pr="317"
  3019. title="inheritance, around advice and abstract pointcuts [eachobject] (still)"
  3020. keywords="from-resolved_10x">
  3021. <compile files="OverridingPointcuts.java"/>
  3022. <run class="OverridingPointcuts"/>
  3023. </ajc-test>
  3024. <ajc-test dir="new/foemmel"
  3025. title="Priviledged aspect methods are missing for privates. [eachobject]"
  3026. keywords="from-resolved_10x">
  3027. <compile files="TheAspect.java,TheObject.java">
  3028. <message kind="warning" line="7" text="TheAspect.java:7"/>
  3029. </compile>
  3030. <run class="TheObject"/>
  3031. </ajc-test>
  3032. <ajc-test dir="new"
  3033. title="exceptions thrown and caught in advice, particularly try+proceed"
  3034. keywords="from-resolved_10x">
  3035. <compile files="TryAndProceed.java"/>
  3036. <run class="TryAndProceed"/>
  3037. </ajc-test>
  3038. <ajc-test dir="new" title="Not and And operators in pointcuts not working"
  3039. keywords="from-resolved_10x">
  3040. <compile files="NotAndPointcut.java"/>
  3041. <run class="NotAndPointcut"/>
  3042. </ajc-test>
  3043. <ajc-test dir="new"
  3044. title="Member initializers should run before the current class constructor"
  3045. keywords="from-resolved_10x">
  3046. <compile files="MemberInitializationsAfterExplicitConstructorCalls.java"/>
  3047. <run class="MemberInitializationsAfterExplicitConstructorCalls"/>
  3048. </ajc-test>
  3049. <ajc-test dir="new"
  3050. title="Coverage tests for Member initializers should run before the current class constructor and after super"
  3051. keywords="from-resolved_10x">
  3052. <compile
  3053. files="MemberInitializationsAfterExplicitConstructorCallsCoverage.java"/>
  3054. <run class="MemberInitializationsAfterExplicitConstructorCallsCoverage"/>
  3055. </ajc-test>
  3056. <ajc-test dir="new"
  3057. title="thisJoinPoint{Static} not visible in if() pcd of named pointcut"
  3058. keywords="from-resolved_10x">
  3059. <compile files="IfPCDExprJoinPointVisibleCE.java"/>
  3060. <run class="IfPCDExprJoinPointVisibleCE"/>
  3061. </ajc-test>
  3062. <ajc-test dir="new"
  3063. title="pcd if() expression visibility at compile-time (minimal operation)"
  3064. keywords="from-resolved_10x">
  3065. <compile files="IfPCDExprVisibility.java" options="-Xlint:ignore"/>
  3066. <run class="IfPCDExprVisibility"/>
  3067. </ajc-test>
  3068. <ajc-test dir="new"
  3069. title="pcd if() NPE in compiler when unwinding assignment in pcd if(expr)"
  3070. keywords="from-resolved_10x">
  3071. <compile files="IfPCDExprAssignUnparseFailure.java"/>
  3072. <run class="IfPCDExprAssignUnparseFailure"/>
  3073. </ajc-test>
  3074. <ajc-test dir="new"
  3075. title="pcd if() dup methods produced when pointcut after advice etc (javac)"
  3076. keywords="from-resolved_10x">
  3077. <compile files="IfPCDDupMethod.java"/>
  3078. <run class="IfPCDDupMethod"/>
  3079. </ajc-test>
  3080. <ajc-test dir="new"
  3081. title="pcd if() variants: [anonymous, named] x [execution, call, callTyped, get, set, initializations] x [before, after, around]"
  3082. keywords="from-resolved_10x">
  3083. <compile files="IfPCDAdviceMethods.java"/>
  3084. <run class="IfPCDAdviceMethods"/>
  3085. </ajc-test>
  3086. <ajc-test dir="new/pr456" pr="456" title="advice on advice in usejavac mode"
  3087. keywords="from-resolved_10x">
  3088. <compile options="-usejavac"
  3089. files="Test_AroundVarBug.java,AroundVarBug.java"/>
  3090. <run class="Test_AroundVarBug"/>
  3091. </ajc-test>
  3092. <ajc-test dir="new" pr="476" title="initialization order with this"
  3093. keywords="from-resolved_10x">
  3094. <compile files="InitializationOrder.java"/>
  3095. <run class="InitializationOrder"/>
  3096. </ajc-test>
  3097. <ajc-test dir="new" pr="496"
  3098. title="!within and !this handling for callee-side call points"
  3099. keywords="from-resolved_10x">
  3100. <compile files="NotThis.java"/>
  3101. <run class="NotThis"/>
  3102. </ajc-test>
  3103. <ajc-test dir="new/innerInterfaces" pr="494"
  3104. title="private inner interfaces and bytecode visibility"
  3105. keywords="from-resolved_10x">
  3106. <compile files="p/Driver.java,p/InnerTest.java,other/Test.java"/>
  3107. <run class="p.Driver"/>
  3108. </ajc-test>
  3109. <ajc-test dir="new" pr="490"
  3110. title="elaborated into testing of around on all join points"
  3111. keywords="from-resolved_10x">
  3112. <compile files="AroundAll.java"/>
  3113. <run class="AroundAll"/>
  3114. </ajc-test>
  3115. <ajc-test dir="new"
  3116. title="type name hygiene when code comes from aspects in different packages"
  3117. keywords="from-resolved_10x">
  3118. <compile
  3119. files="typeNameConflicts/Driver.java,typeNameConflicts/p1/C.java,typeNameConflicts/aspects/A.java"/>
  3120. <run class="typeNameConflicts.Driver"/>
  3121. </ajc-test>
  3122. <ajc-test dir="new" title="cflowbelow dependencies (from Chris Dutchyn)"
  3123. keywords="from-resolved_10x">
  3124. <compile files="CflowBelowTest.java"/>
  3125. <run class="CflowBelowTest"/>
  3126. </ajc-test>
  3127. <ajc-test dir="new"
  3128. title="target type matching with messy interface hierarchies"
  3129. keywords="from-resolved_10x">
  3130. <compile files="CallTypesI.java"/>
  3131. <run class="CallTypesI"/>
  3132. </ajc-test>
  3133. <ajc-test dir="new" pr="490"
  3134. title="PR#458 Compiler was incorrectly flagging error in advice on initialization and static initialization"
  3135. keywords="from-resolved_10x">
  3136. <compile files="StaticInitCE.java"/>
  3137. <run class="StaticInitCE"/>
  3138. </ajc-test>
  3139. <ajc-test dir="new" pr="493"
  3140. title="Compiler incorrectly flagging *1 (non-alphabetic start to signature pattern)"
  3141. keywords="from-resolved_10x">
  3142. <compile files="NonAlphaSignaturePatternCE.java"/>
  3143. <run class="NonAlphaSignaturePatternCE"/>
  3144. </ajc-test>
  3145. <ajc-test dir="new"
  3146. title="Unable to bind privately-introduced field name from introduced method in the same aspect"
  3147. keywords="from-resolved_10x">
  3148. <compile files="IntroducedFieldsNotBinding.java"/>
  3149. <run class="IntroducedFieldsNotBinding"/>
  3150. </ajc-test>
  3151. <ajc-test dir="new/anonInnerClass" pr="297"
  3152. title="anonymous inner class with aspect" keywords="from-resolved_10x">
  3153. <compile files="Driver.java"/>
  3154. <run class="Driver"/>
  3155. </ajc-test>
  3156. <ajc-test dir="new" pr="335"
  3157. title="Arguments are not being passed in to calls advice"
  3158. keywords="from-resolved_10x">
  3159. <compile files="PR335.java"/>
  3160. <run class="PR335"/>
  3161. </ajc-test>
  3162. <ajc-test dir="design/intro" title="interfaces as mixins with introduction"
  3163. keywords="from-resolved_10x">
  3164. <compile files="Interfaces.java"/>
  3165. <run class="Interfaces"/>
  3166. </ajc-test>
  3167. <ajc-test dir="new"
  3168. title="functional modifiers work correctly with introduced members"
  3169. keywords="from-resolved_10x">
  3170. <compile files="IntroducedModifiers.java"/>
  3171. <run class="IntroducedModifiers"/>
  3172. </ajc-test>
  3173. <ajc-test dir="new"
  3174. title="ExceptionInInitializerError accessing cflow in aspect initialization - before variants"
  3175. keywords="from-resolved_10x">
  3176. <compile files="CflowInitInAspectVariantsBefore.java"/>
  3177. <run class="CflowInitInAspectVariantsBefore"/>
  3178. </ajc-test>
  3179. <ajc-test dir="new"
  3180. title="NoClassDefFoundError accessing cflow in aspect initialization - after variants"
  3181. keywords="from-resolved_10x">
  3182. <compile files="CflowInitInAspectVariantsAfter.java"/>
  3183. <run class="CflowInitInAspectVariantsAfter"/>
  3184. </ajc-test>
  3185. <ajc-test dir="new" title="InternalCompilerError in JpPlan when args alone"
  3186. keywords="from-resolved_10x">
  3187. <compile files="ArgsAlone.java"/>
  3188. <run class="ArgsAlone"/>
  3189. </ajc-test>
  3190. <ajc-test dir="new" pr="527"
  3191. title="compile error using pcd if() with advice on introduced methods."
  3192. keywords="from-resolved_10x">
  3193. <compile files="PR527.java"/>
  3194. <run class="PR527"/>
  3195. </ajc-test>
  3196. <ajc-test dir="new" pr="528"
  3197. title="compile errors boolean using cflow and unimplemented method using around advice on methods introduced by interface"
  3198. keywords="from-resolved_10x">
  3199. <compile files="PR528.java"/>
  3200. <run class="PR528"/>
  3201. </ajc-test>
  3202. <ajc-test dir="new" pr="534" title="aspect as member of interface"
  3203. keywords="from-resolved_10x">
  3204. <compile files="AspectInInterfaceCP.java"/>
  3205. <run class="AspectInInterfaceCP"/>
  3206. </ajc-test>
  3207. <ajc-test dir="new" pr="535"
  3208. title="missing method name to synthetic invocation"
  3209. keywords="from-resolved_10x,new-messages-vary">
  3210. <compile files="PR535.java"/>
  3211. <run class="PR535"/>
  3212. </ajc-test>
  3213. <ajc-test dir="new" pr="536"
  3214. title="protected subclass impl of superclass method with default access and variants"
  3215. keywords="from-resolved_10x">
  3216. <compile files="RestrictingVisibilityCP.java"/>
  3217. <run class="RestrictingVisibilityCP"/>
  3218. </ajc-test>
  3219. <ajc-test dir="new" pr="519" title="Exception planning advice"
  3220. keywords="from-resolved_10x">
  3221. <compile files="PR519.java"/>
  3222. <run class="PR519"/>
  3223. </ajc-test>
  3224. <ajc-test dir="new" pr="521"
  3225. title="unreproduced bug with advice - probably UTR"
  3226. keywords="from-resolved_10x">
  3227. <compile files="PR520.java"/>
  3228. <run class="PR520"/>
  3229. </ajc-test>
  3230. <ajc-test dir="new" pr="494"
  3231. title="introduced inner interfaces accessible inside aspect"
  3232. keywords="from-resolved_10x">
  3233. <compile files="IntroduceInnerInterfaceCP.java"/>
  3234. <run class="IntroduceInnerInterfaceCP"/>
  3235. </ajc-test>
  3236. <ajc-test dir="new" pr="525"
  3237. title="validate (enclosing) join point and source locations"
  3238. keywords="from-resolved_10x">
  3239. <compile files="NegativeSourceLocation.java"/>
  3240. <run class="NegativeSourceLocation"/>
  3241. </ajc-test>
  3242. <ajc-test dir="new" pr="544"
  3243. title="advice formals are just like method formals"
  3244. keywords="from-resolved_10x">
  3245. <compile files="AdviceFormalsCp.java"/>
  3246. <run class="AdviceFormalsCp"/>
  3247. </ajc-test>
  3248. <ajc-test dir="new" pr="544"
  3249. title="advice formals produce errors just like method formals"
  3250. keywords="from-resolved_10x">
  3251. <compile files="AdviceFormalsCf.java">
  3252. <message kind="error" line="28"/>
  3253. <message kind="error" line="29"/>
  3254. <message kind="error" line="36"/>
  3255. <message kind="error" line="37"/>
  3256. </compile>
  3257. </ajc-test>
  3258. <ajc-test dir="new"
  3259. title="advice throws clauses must be compatible with joinpoints they apply to"
  3260. keywords="from-resolved_10x">
  3261. <compile files="AdviceThrowsCp.java"/>
  3262. <run class="AdviceThrowsCp"/>
  3263. </ajc-test>
  3264. <ajc-test dir="new"
  3265. title="incompatible advice throws clause are a compile-time error"
  3266. keywords="from-resolved_10x">
  3267. <compile files="AdviceThrowsCf.java">
  3268. <message kind="error" line="70"/>
  3269. <message kind="error" line="74"/>
  3270. <message kind="error" line="76"/>
  3271. <message kind="error" line="78"/>
  3272. </compile>
  3273. </ajc-test>
  3274. <ajc-test dir="new" pr="570"
  3275. title="potential method conflicts with introductions and interfaces and PR#561"
  3276. keywords="from-resolved_10x">
  3277. <compile files="MethodConflictsCP.java"/>
  3278. <run class="MethodConflictsCP"/>
  3279. </ajc-test>
  3280. <ajc-test dir="new" pr="570"
  3281. title="illegal method conflicts with introductions and interfaces and PR#561"
  3282. keywords="from-resolved_10x">
  3283. <compile files="MethodConflictsCF.java">
  3284. <message kind="error" line="8"/>
  3285. </compile>
  3286. </ajc-test>
  3287. <ajc-test dir="new" title="AspectOf available for different aspect types"
  3288. keywords="from-resolved_10x">
  3289. <compile files="AspectOf.java"/>
  3290. <run class="AspectOf"/>
  3291. </ajc-test>
  3292. <ajc-test dir="new/privilegedAspects"
  3293. title="access to all members of class and inner class from privileged aspect"
  3294. keywords="from-resolved_10x">
  3295. <compile
  3296. files="driver/PrivilegedAspect.java,util/Util.java,pack/DefaultTarget.java,pack/PublicTarget.java"/>
  3297. <run class="driver.PrivilegedAspect"/>
  3298. </ajc-test>
  3299. <ajc-test dir="new"
  3300. title="cflow alone with around produces compiler bcg StackOverflowError"
  3301. keywords="from-resolved_10x">
  3302. <compile files="CflowAlone.java"/>
  3303. <run class="CflowAlone"/>
  3304. </ajc-test>
  3305. <ajc-test dir="new"
  3306. title="get/set join points run for complex assignment operators (+=, etc.) (working)"
  3307. keywords="from-resolved_10x">
  3308. <compile files="AssignOps.java"/>
  3309. <run class="AssignOps"/>
  3310. </ajc-test>
  3311. <ajc-test dir="new/introTypeMissing"
  3312. title="this available in introduced field initializers"
  3313. keywords="from-resolved_10x">
  3314. <compile files="ThisInIntroFieldInit.java"/>
  3315. <run class="ThisInIntroFieldInit"/>
  3316. </ajc-test>
  3317. <ajc-test dir="new/introTypeMissing"
  3318. title="Introduced type unavailable to cast expressions in introduced methods"
  3319. keywords="from-resolved_10x">
  3320. <compile files="Cast.java,TargetClass.java,Util.java"/>
  3321. <run class="Cast"/>
  3322. </ajc-test>
  3323. <ajc-test dir="new/introTypeMissing"
  3324. title="Introduced type unavailable to qualified new expressions in introduced methods"
  3325. keywords="from-resolved_10x">
  3326. <compile files="Inner.java,TargetClass.java,Util.java"/>
  3327. <run class="Inner"/>
  3328. </ajc-test>
  3329. <ajc-test dir="new/introTypeMissing"
  3330. title="Introduced type unavailable to cast expressions in introduced field initializers"
  3331. keywords="from-resolved_10x">
  3332. <compile files="CastInFieldInit.java,TargetClass.java,Util.java"/>
  3333. <run class="CastInFieldInit"/>
  3334. </ajc-test>
  3335. <ajc-test dir="new/introTypeMissing"
  3336. title="Aspect type unavailable to qualified new expressions in body of introduced methods"
  3337. keywords="from-resolved_10x">
  3338. <compile files="AspectInIntroducedMethod.java"/>
  3339. <run class="AspectInIntroducedMethod"/>
  3340. </ajc-test>
  3341. <ajc-test dir="new/introTypeMissing"
  3342. title="Introduced type unavailable to instanceof expressions in introduced methods"
  3343. keywords="from-resolved_10x">
  3344. <compile files="InstanceOf.java,TargetClass.java,Util.java">
  3345. <message kind="error" line="19"/>
  3346. <message kind="error" line="20"/>
  3347. <message kind="error" line="21"/>
  3348. <message kind="error" line="22"/>
  3349. <message kind="error" line="23"/>
  3350. <message kind="error" line="24"/>
  3351. <message kind="error" line="25"/>
  3352. <message kind="error" line="26"/>
  3353. </compile>
  3354. </ajc-test>
  3355. <ajc-test dir="new/introTypeMissing"
  3356. title="Introduced type unavailable to qualified new expressions in introduced field initializers"
  3357. keywords="from-resolved_10x">
  3358. <compile files="InnerInFieldInit.java,TargetClass.java,Util.java"/>
  3359. <run class="InnerInFieldInit"/>
  3360. </ajc-test>
  3361. <ajc-test dir="new" pr="595"
  3362. title="variable slots and finally/catch causing verify errors"
  3363. keywords="from-resolved_10final,from-resolved_10x">
  3364. <compile files="AfterFinally.java"/>
  3365. <run class="AfterFinally"/>
  3366. </ajc-test>
  3367. <ajc-test dir="new"
  3368. title="enclosing join point not exported properly in pre-initialization join point"
  3369. keywords="from-resolved_10x">
  3370. <compile files="PreInitialization.java"/>
  3371. <run class="PreInitialization"/>
  3372. </ajc-test>
  3373. <ajc-test dir="new" pr="590"
  3374. title="after advice on static method with pcd if() using result"
  3375. keywords="from-resolved_10x">
  3376. <compile files="PR590.java">
  3377. <message kind="error" line="20"/>
  3378. <message kind="error" line="23"/>
  3379. </compile>
  3380. </ajc-test>
  3381. <ajc-test dir="new" pr="590"
  3382. title="after advice on static method with pcd if() using result through pointcut"
  3383. keywords="from-resolved_10x">
  3384. <compile files="PR590a.java">
  3385. <message kind="error" line="29"/>
  3386. <message kind="error" line="31"/>
  3387. </compile>
  3388. </ajc-test>
  3389. <ajc-test dir="new/PR600" pr="600"
  3390. title="AbstractMethodError for introduced methods (order 1)"
  3391. keywords="from-resolved_10x">
  3392. <compile files="Main.java,My_error.java,A.java,B.java,C.java"/>
  3393. <run class="Main"/>
  3394. </ajc-test>
  3395. <ajc-test dir="new/PR600" pr="600"
  3396. title="AbstractMethodError for introduced methods (order 2)"
  3397. keywords="from-resolved_10x">
  3398. <compile files="Main.java,My_error.java,C.java,A.java,B.java"/>
  3399. <run class="Main"/>
  3400. </ajc-test>
  3401. <ajc-test dir="new/PR600" pr="600"
  3402. title="AbstractMethodError for introduced methods (order 3)"
  3403. keywords="from-resolved_10x">
  3404. <compile files="My_error.java,A.java,B.java,C.java,Main.java"/>
  3405. <run class="Main"/>
  3406. </ajc-test>
  3407. <ajc-test dir="new/PR600" pr="600"
  3408. title="AbstractMethodError for introduced methods (order 4)"
  3409. keywords="from-resolved_10x">
  3410. <compile files="A.java,B.java,C.java,Main.java,My_error.java"/>
  3411. <run class="Main"/>
  3412. </ajc-test>
  3413. <ajc-test dir="new/PR600" pr="600"
  3414. title="AbstractMethodError for introduced methods (order 5)"
  3415. keywords="from-resolved_10x">
  3416. <compile files="A.java,B.java,Main.java,C.java,My_error.java"/>
  3417. <run class="Main"/>
  3418. </ajc-test>
  3419. <ajc-test dir="new" title="declare error and abstract pointcuts"
  3420. keywords="from-resolved_10x">
  3421. <compile files="AbstractDeclare.java">
  3422. <message kind="error" line="3"/>
  3423. <message kind="error" line="4"/>
  3424. </compile>
  3425. </ajc-test>
  3426. <ajc-test dir="new/runtime"
  3427. title="Exercise runtime classes (optionally in 1.1 VM)"
  3428. keywords="from-resolved_10x">
  3429. <compile files="AllRuntime.java,TesterDriver.java"/>
  3430. <run class="TesterDriver"/>
  3431. </ajc-test>
  3432. <ajc-test dir="new"
  3433. title="VerifyError after around advice falls off end of tryCatch"
  3434. keywords="from-resolved_10x">
  3435. <compile files="TryOffEnd.java">
  3436. <message kind="warning" line="13"/>
  3437. <message kind="warning" line="21"/>
  3438. </compile>
  3439. <run class="TryOffEnd"/>
  3440. </ajc-test>
  3441. <ajc-test dir="new" pr="635" title="Named within pointcuts failing"
  3442. keywords="from-resolved_10x">
  3443. <compile files="NamedWithinPointcuts.java"/>
  3444. <run class="NamedWithinPointcuts"/>
  3445. </ajc-test>
  3446. <ajc-test dir="new/subaspects" pr="647"
  3447. title="aspect with private abstract pointcut"
  3448. keywords="from-resolved_10x,fail-unimplemented">
  3449. <compile files="PrivatePointcutCE.java">
  3450. <message kind="error" line="5"/>
  3451. </compile>
  3452. </ajc-test>
  3453. <ajc-test dir="new/subaspects" pr="647"
  3454. title="concrete aspect unable to access abstract package-private pointcut in parent for overriding"
  3455. keywords="from-resolved_10x"
  3456. comment="XXX getting error - confirm line numbers">
  3457. <compile files="parent/ParentCE.java,child/ChildCE.java">
  3458. <message kind="error" line="27"/>
  3459. </compile>
  3460. </ajc-test>
  3461. <ajc-test dir="new/subaspects" pr="647"
  3462. title="inner, outer, and outside-package subaspects of an aspect with abstract protected-, public-, and default-access pointcuts"
  3463. keywords="from-resolved_10x">
  3464. <compile
  3465. files="parent/SubAspectVisibility.java,parent/ForeignChildHelper.java,child/ForeignChildAspect.java"/>
  3466. <run class="parent.SubAspectVisibility"/>
  3467. </ajc-test>
  3468. <ajc-test dir="new/subaspects" pr="647"
  3469. title="inner subaspects of an aspect with private pointcut"
  3470. keywords="from-resolved_10x">
  3471. <compile files="parent/PrivatePointcut.java"/>
  3472. <run class="parent.PrivatePointcut"/>
  3473. </ajc-test>
  3474. <ajc-test dir="new/subaspects" pr="647"
  3475. title="outer subaspects of an aspect with private pointcut"
  3476. keywords="from-resolved_10x">
  3477. <compile files="parent/PrivatePointcutOuterClass.java"/>
  3478. <run class="parent.PrivatePointcutOuterClass"/>
  3479. </ajc-test>
  3480. <ajc-test dir="new/subaspects" pr="647"
  3481. title="abstract aspect used statically should not cause instantiation of advice or pointcut"
  3482. keywords="from-resolved_10x">
  3483. <compile files="AbstractAspectUsedStatically.java"/>
  3484. <run class="AbstractAspectUsedStatically"/>
  3485. </ajc-test>
  3486. <ajc-test dir="new"
  3487. title="private inner interface accessible in scope when declared on outer class"
  3488. keywords="from-resolved_10x">
  3489. <compile files="DeclareAccess.java"/>
  3490. <run class="DeclareAccess"/>
  3491. </ajc-test>
  3492. <ajc-test dir="new"
  3493. title="accessing protected superclass members in and outside CCC from body of method introduction"
  3494. keywords="from-resolved_10x">
  3495. <compile files="SuperInIntroduction.java"/>
  3496. <run class="SuperInIntroduction"/>
  3497. </ajc-test>
  3498. <ajc-test dir="new"
  3499. title="accessing private superclass members from body of method introduction"
  3500. keywords="from-resolved_10x">
  3501. <compile files="SuperInIntroductionCE.java">
  3502. <message kind="error" line="25"/>
  3503. <message kind="error" line="26"/>
  3504. </compile>
  3505. </ajc-test>
  3506. <ajc-test dir="new" title="simple test for around and casting"
  3507. keywords="from-resolved_10x">
  3508. <compile files="AroundCasting.java"/>
  3509. <run class="AroundCasting"/>
  3510. </ajc-test>
  3511. <ajc-test dir="new/aroundinner" pr="620"
  3512. title="aroundInner 1 - around advice inner Thread subclass running proceed but not writing field"
  3513. keywords="from-resolved_10x">
  3514. <compile files="ThreadNoField.java,Common.java"/>
  3515. <run class="ThreadNoField"/>
  3516. </ajc-test>
  3517. <ajc-test dir="new/aroundinner" pr="620"
  3518. title="aroundInner 2 - around advice inner Runnable running proceed and writing method-final proxy"
  3519. keywords="from-resolved_10x">
  3520. <compile files="Proxy.java,Common.java"/>
  3521. <run class="Proxy"/>
  3522. </ajc-test>
  3523. <ajc-test dir="new/aroundinner" pr="620"
  3524. title="aroundInner 3 - around advice inner class running proceed and writing field"
  3525. keywords="from-resolved_10x">
  3526. <compile files="Minimal.java,Common.java"/>
  3527. <run class="Minimal"/>
  3528. </ajc-test>
  3529. <ajc-test dir="new/aroundinner" pr="620"
  3530. title="aroundInner 4 - around advice inner Thread subclass running proceed and writing field"
  3531. keywords="from-resolved_10x">
  3532. <compile files="ThreadSub.java,Common.java"/>
  3533. <run class="ThreadSub"/>
  3534. </ajc-test>
  3535. <ajc-test dir="new/aroundinner" pr="620"
  3536. title="aroundInner 5 - around advice inner Runnable (subinterface) running proceed and writing field introduced on subinterface"
  3537. keywords="from-resolved_10x">
  3538. <compile files="RunnableSub.java,Common.java"/>
  3539. <run class="RunnableSub"/>
  3540. </ajc-test>
  3541. <ajc-test dir="new" pr="636"
  3542. title="Named local class closing over proceed invocation"
  3543. keywords="from-resolved_10x">
  3544. <compile files="LocalClassClosingOverProceed.java"/>
  3545. <run class="LocalClassClosingOverProceed"/>
  3546. </ajc-test>
  3547. <ajc-test dir="new"
  3548. title="can't apply around advice to the execution of around advice"
  3549. keywords="from-resolved_10x">
  3550. <compile files="CflowCycles.java"/>
  3551. <run class="CflowCycles"/>
  3552. </ajc-test>
  3553. <ajc-test dir="new"
  3554. title="beautiful recursive computation of factorial with around is now supported"
  3555. keywords="from-resolved_10x">
  3556. <compile files="CircularAdvice.java"/>
  3557. <run class="CircularAdvice"/>
  3558. </ajc-test>
  3559. <ajc-test dir="new" pr="632"
  3560. title="multi-dispatch not used for named pcd references"
  3561. keywords="from-resolved_10x">
  3562. <compile files="MultiDispatchCf.java">
  3563. <message kind="error" line="54"/>
  3564. <message kind="error" line="57"/>
  3565. <message kind="error" line="60"/>
  3566. <message kind="error" line="71"/>
  3567. </compile>
  3568. </ajc-test>
  3569. <ajc-test dir="new" pr="632"
  3570. title="multi-dispatch implemented through around + args"
  3571. keywords="from-resolved_10x">
  3572. <compile files="MultiDispatchCp.java"/>
  3573. <run class="MultiDispatchCp"/>
  3574. </ajc-test>
  3575. <ajc-test dir="new"
  3576. title="unrecognized aspect should not net Cloneable and Serializable warnings"
  3577. keywords="from-resolved_10x">
  3578. <compile files="UnrecognizedAspectCE.java">
  3579. <message kind="error" line="3"/>
  3580. </compile>
  3581. </ajc-test>
  3582. <ajc-test dir="new"
  3583. title="unreachable code generated by around advice on the execution of void methods"
  3584. keywords="from-resolved_10x">
  3585. <compile files="AroundVoid.java"/>
  3586. <run class="AroundVoid"/>
  3587. </ajc-test>
  3588. <ajc-test dir="new" pr="654"
  3589. title="Overriding method implementations using introduction on interfaces"
  3590. keywords="from-resolved_10x,fail-unimplemented">
  3591. <compile files="IntroductionsOverriding.java"/>
  3592. <run class="IntroductionsOverriding"/>
  3593. </ajc-test>
  3594. <ajc-test dir="new" pr="654"
  3595. title="more coverage for around and concrete methods on interfaces"
  3596. keywords="from-resolved_10x">
  3597. <compile files="MultiAndAround.java"/>
  3598. <run class="MultiAndAround"/>
  3599. </ajc-test>
  3600. <ajc-test dir="new" title="invalid number and type of proceed arguments"
  3601. keywords="from-resolved_10x">
  3602. <compile files="InvalidProceedArgsCE.java">
  3603. <message kind="error" line="10"/>
  3604. <message kind="error" line="15"/>
  3605. <message kind="error" line="17"/>
  3606. <message kind="error" line="20"/>
  3607. <message kind="error" line="22"/>
  3608. <message kind="error" line="27"/>
  3609. <message kind="error" line="29"/>
  3610. <message kind="error" line="31"/>
  3611. <message kind="error" line="37"/>
  3612. <message kind="error" line="39"/>
  3613. <message kind="error" line="43"/>
  3614. <message kind="error" line="46"/>
  3615. </compile>
  3616. </ajc-test>
  3617. <ajc-test dir="new" pr="694" title="after returning advice order"
  3618. keywords="from-resolved_10x">
  3619. <compile files="Cricket.java"/>
  3620. <run class="Cricket"/>
  3621. </ajc-test>
  3622. <ajc-test dir="new" pr="694" title="after returning advice param"
  3623. keywords="from-resolved_10x">
  3624. <compile files="AfterReturningParam.java">
  3625. <message kind="warning" line="35"/>
  3626. <message kind="warning" line="38"/>
  3627. <message kind="warning" line="41"/>
  3628. <message kind="warning" line="65"/>
  3629. </compile>
  3630. <run class="AfterReturningParam"/>
  3631. </ajc-test>
  3632. <ajc-test dir="new" pr="695"
  3633. title="! and declaring types with callee-side call join points"
  3634. keywords="from-resolved_10x">
  3635. <compile files="NotAndDeclaringTypes.java"/>
  3636. <run class="NotAndDeclaringTypes"/>
  3637. </ajc-test>
  3638. <ajc-test dir="new" pr="479"
  3639. title=". Binding the wrong arguments in withincode(..)."
  3640. keywords="from-resolved_10x">
  3641. <compile files="BindingArgumentsInWithincode.java"/>
  3642. <run class="BindingArgumentsInWithincode"/>
  3643. </ajc-test>
  3644. <ajc-test dir="new" pr="479"
  3645. title=". Matching arguments in cflow correctly."
  3646. keywords="from-resolved_10x">
  3647. <compile files="MatchingArgumentsInCflow.java"/>
  3648. <run class="MatchingArgumentsInCflow"/>
  3649. </ajc-test>
  3650. <ajc-test dir="new" pr="480"
  3651. title=". Binding variables with numbers in their name with pertarget(..)'s."
  3652. keywords="from-resolved_10x">
  3653. <compile files="PerTargetAndVariablesWithNumbersInTheirNames.java"/>
  3654. <run class="PerTargetAndVariablesWithNumbersInTheirNames"/>
  3655. </ajc-test>
  3656. <ajc-test dir="new" pr="554"
  3657. title="second arg in formal on shared joinpoint with pcd if() causes verify error ??"
  3658. keywords="from-resolved_10rc3">
  3659. <compile files="PR554.java"/>
  3660. <run class="PR554"/>
  3661. </ajc-test>
  3662. <ajc-test dir="new/privilegedAspects" pr="555"
  3663. title="access to private members from privileged aspect"
  3664. keywords="from-resolved_10rc3">
  3665. <compile
  3666. files="driver/PR555.java,util/Util.java,pack/DefaultTarget.java"/>
  3667. <run class="driver.PR555"/>
  3668. </ajc-test>
  3669. <ajc-test dir="new" pr="555"
  3670. title="inner classes of privileged aspects cannot see target class private members"
  3671. keywords="from-resolved_10rc3">
  3672. <compile files="InnerClassInPrivilegedAspect.java"/>
  3673. <run class="InnerClassInPrivilegedAspect"/>
  3674. </ajc-test>
  3675. <ajc-test dir="new/packageAccessPR556" pr="556"
  3676. title="aspects should get package access outside the file"
  3677. keywords="from-resolved_10rc3">
  3678. <compile files="base1/p/C1.java,base2/p/C2.java"/>
  3679. <run class="p.C1"/>
  3680. </ajc-test>
  3681. <ajc-test dir="new" pr="559"
  3682. title="subclass advice not run for join points selected by superclass cflow-based pointcuts"
  3683. keywords="from-resolved_10rc3">
  3684. <compile files="PR559.java"/>
  3685. <run class="PR559"/>
  3686. </ajc-test>
  3687. <ajc-test dir="new" pr="559"
  3688. title="more issues with abstract aspects and cflow pointcuts"
  3689. keywords="from-resolved_10rc3,fail-unimplemented">
  3690. <compile files="AbstractCflows.java"/>
  3691. <run class="AbstractCflows"/>
  3692. </ajc-test>
  3693. <ajc-test dir="new" pr="560"
  3694. title="compile fails for aspect derived from percflow base aspect unless pointcut excludes base aspect and subaspects"
  3695. keywords="from-resolved_10rc3">
  3696. <compile files="PR560.java"/>
  3697. <run class="PR560"/>
  3698. </ajc-test>
  3699. <ajc-test dir="new" pr="568" title="cyclic pointcut definitions"
  3700. keywords="from-resolved_10rc3">
  3701. <compile files="CyclicPointcuts.java">
  3702. <message kind="error" line="11"/>
  3703. <message kind="error" line="14"/>
  3704. <message kind="error" line="18"/>
  3705. <message kind="error" line="32"/>
  3706. <message kind="error" line="43"/>
  3707. </compile>
  3708. </ajc-test>
  3709. <ajc-test dir="new" pr="573"
  3710. title="pertarget stack overflow getting name of anonymous (Interface) class"
  3711. keywords="from-resolved_10rc3">
  3712. <compile files="PR573.java">
  3713. <message kind="warning" line="21"/>
  3714. </compile>
  3715. <run class="PR573"/>
  3716. </ajc-test>
  3717. <ajc-test dir="new" pr="573"
  3718. title="pertarget stack overflow getting name of anonymous (Object) class"
  3719. keywords="from-resolved_10rc3">
  3720. <compile files="PR573_1.java">
  3721. <message kind="warning" line="20"/>
  3722. </compile>
  3723. <run class="PR573_1"/>
  3724. </ajc-test>
  3725. <ajc-test dir="new" pr="573"
  3726. title="pertarget runtime stack overflow (getting name of anonymous (Object) class?)"
  3727. keywords="from-resolved_10rc3">
  3728. <compile files="PR573_2.java"/>
  3729. <run class="PR573_2"/>
  3730. </ajc-test>
  3731. <ajc-test dir="new"
  3732. title="PR584 Can construct inner classes using qualified expressions"
  3733. keywords="from-resolved_10rc3,purejava">
  3734. <compile files="PR584.java"/>
  3735. <run class="PR584"/>
  3736. </ajc-test>
  3737. <ajc-test dir="new" pr="685"
  3738. title="subaspect method declaration on superaspect inner interface (names)"
  3739. keywords="from-resolved_104">
  3740. <compile files="InnerInterfaceNames.java"/>
  3741. <run class="InnerInterfaceNames"/>
  3742. </ajc-test>
  3743. <ajc-test dir="new" pr="685"
  3744. title="subaspect method declaration on superaspect inner interface (access)"
  3745. keywords="from-resolved_104">
  3746. <compile files="InnerInterfaceAccess.java"/>
  3747. <run class="InnerInterfaceAccess"/>
  3748. </ajc-test>
  3749. <ajc-test dir="new" pr="685"
  3750. title="subaspect method declaration on superaspect inner interface (types)"
  3751. keywords="from-resolved_104">
  3752. <compile files="InnerInterfaceTypes.java,InnerInterfaceTypesHelper.java"/>
  3753. <run class="InnerInterfaceTypes"/>
  3754. </ajc-test>
  3755. <ajc-test dir="new" pr="691" title="around AST type XXX"
  3756. keywords="from-resolved_104">
  3757. <compile files="PR691.java"/>
  3758. <run class="PR691"/>
  3759. </ajc-test>
  3760. <ajc-test dir="new" pr="687"
  3761. title="around all execution with double assignment in initializer (simple)"
  3762. keywords="from-resolved_104">
  3763. <compile files="AroundDoubleAssignment.java"/>
  3764. <run class="AroundDoubleAssignment"/>
  3765. </ajc-test>
  3766. <ajc-test dir="new" pr="687"
  3767. title="around all execution with double assignment in initializer (coverage)"
  3768. keywords="from-resolved_104">
  3769. <compile files="AroundDoubleAssignmentC.java"/>
  3770. <run class="AroundDoubleAssignmentC"/>
  3771. </ajc-test>
  3772. <ajc-test dir="new"
  3773. title="changing this in around's proceed reported by Rich Price"
  3774. keywords="from-resolved_104">
  3775. <compile files="AroundChangeThis.java"/>
  3776. <run class="AroundChangeThis"/>
  3777. </ajc-test>
  3778. <ajc-test dir="new" pr="548"
  3779. title="default package for aspect introductions is not the current package"
  3780. keywords="from-resolved_10rc3,from-resolved_104">
  3781. <compile
  3782. files="introductionPackage/two/C.java,introductionPackage/one/C.java,introductionPackage/one/Aspect.java,introductionPackage/one/TestAspect.java"/>
  3783. <run class="one.TestAspect"/>
  3784. </ajc-test>
  3785. <ajc-test dir="new/PR569" pr="569"
  3786. title="anon class written to wrong directory"
  3787. keywords="from-resolved_104,from-resolved_104">
  3788. <compile files="a/IntroAnon.java,a/MyInterface.java,b/Dest.java"/>
  3789. <run class="a.IntroAnon"/>
  3790. </ajc-test>
  3791. <ajc-test dir="new" pr="603"
  3792. title="unqualified transitive pointcut references not resolved"
  3793. keywords="from-resolved_104">
  3794. <compile files="PointcutQualification.java"/>
  3795. <run class="PointcutQualification"/>
  3796. </ajc-test>
  3797. <ajc-test dir="new" pr="603"
  3798. title="unqualified transitive pointcut references not resolved - 2"
  3799. keywords="from-resolved_104">
  3800. <compile files="PointcutQualification2.java"/>
  3801. <run class="PointcutQualification2"/>
  3802. </ajc-test>
  3803. <ajc-test dir="new" pr="619"
  3804. title="direct use outside aspect of defined abstract pointcut"
  3805. keywords="from-resolved_104">
  3806. <compile files="AbstractPointcutAccess.java"/>
  3807. <run class="AbstractPointcutAccess"/>
  3808. </ajc-test>
  3809. <ajc-test dir="new" pr="619"
  3810. title="direct use outside aspect of undefined abstract pointcut"
  3811. keywords="from-resolved_104">
  3812. <compile files="AbstractPointcutAccessCE.java">
  3813. <message kind="error" line="9"/>
  3814. </compile>
  3815. </ajc-test>
  3816. <ajc-test dir="new" pr="619"
  3817. title="indirect use outside aspect of undefined abstract pointcut"
  3818. keywords="from-resolved_104">
  3819. <compile files="AbstractPointcutIndirectCE.java">
  3820. <message kind="error" line="9"/>
  3821. <message kind="error" line="4"/>
  3822. </compile>
  3823. </ajc-test>
  3824. <ajc-test dir="new" pr="658"
  3825. title="simple call join point tests for JoinPoint SourceLocation context"
  3826. keywords="from-resolved_104">
  3827. <compile files="SourceLocationCall.java"/>
  3828. <run class="SourceLocationCall"/>
  3829. </ajc-test>
  3830. <ajc-test dir="new" pr="661"
  3831. title="!target with second advice on casted call"
  3832. keywords="from-resolved_104">
  3833. <compile files="CallNotTarget.java"/>
  3834. <run class="CallNotTarget"/>
  3835. </ajc-test>
  3836. <ajc-test dir="new" pr="666" title="name binding in around cflow"
  3837. keywords="from-resolved_104">
  3838. <compile files="AroundCall.java"/>
  3839. <run class="AroundCall"/>
  3840. </ajc-test>
  3841. <ajc-test dir="new" pr="660" title="name binding in around cflow - 2"
  3842. keywords="from-resolved_104">
  3843. <compile files="ArgsInCflow2.java"/>
  3844. <run class="ArgsInCflow2"/>
  3845. </ajc-test>
  3846. <ajc-test dir="new" pr="660" title="illegal name binding in around cflow"
  3847. keywords="from-resolved_104">
  3848. <compile files="ArgsInCflowCf.java">
  3849. <message kind="error" line="19"/>
  3850. <message kind="error" line="29"/>
  3851. <message kind="error" line="35"/>
  3852. </compile>
  3853. </ajc-test>
  3854. <ajc-test dir="new" pr="677"
  3855. title="around name-binding in cflows using factorial"
  3856. keywords="from-resolved_104">
  3857. <compile files="FactorialCflow.java"/>
  3858. <run class="FactorialCflow"/>
  3859. </ajc-test>
  3860. <ajc-test dir="new" pr="715" title="incrementing objects, arrays - 2"
  3861. keywords="from-resolved_104,purejava">
  3862. <compile files="ArrayInc2CE.java">
  3863. <message kind="error" line="12"/>
  3864. <message kind="error" line="13"/>
  3865. <message kind="error" line="14"/>
  3866. <message kind="error" line="15"/>
  3867. </compile>
  3868. </ajc-test>
  3869. <ajc-test dir="new" pr="715" title="incrementing objects, arrays CE"
  3870. keywords="from-resolved_104,purejava,messages-vary">
  3871. <compile files="ArrayIncCE.java"
  3872. options="!eclipse">
  3873. <message kind="error" line="15"/>
  3874. <message kind="error" line="16"/>
  3875. <message kind="error" line="17"/>
  3876. <message kind="error" line="18"/>
  3877. <message kind="error" line="19"/>
  3878. </compile>
  3879. </ajc-test>
  3880. <ajc-test dir="new" pr="715" title="incrementing objects, arrays - 3"
  3881. keywords="from-resolved_104,purejava">
  3882. <compile files="ArrayInc3CE.java">
  3883. <message kind="error" line="15"/>
  3884. <message kind="error" line="16"/>
  3885. <message kind="error" line="17"/>
  3886. <message kind="error" line="18"/>
  3887. <message kind="error" line="19"/>
  3888. </compile>
  3889. </ajc-test>
  3890. <ajc-test dir="new" pr="715" title="incrementing objects, arrays"
  3891. keywords="from-resolved_104,purejava">
  3892. <compile files="ArrayInc.java"/>
  3893. <run class="ArrayInc"/>
  3894. </ajc-test>
  3895. <ajc-test dir="new" title="replacing this or target in around advice"
  3896. keywords="from-resolved_104">
  3897. <compile files="TargetObjectReplacement.java"/>
  3898. <run class="TargetObjectReplacement"/>
  3899. </ajc-test>
  3900. <ajc-test dir="new"
  3901. title="after returning from initialization and after executing constructor"
  3902. keywords="from-resolved_104">
  3903. <compile files="ConstructorExecInit.java"/>
  3904. <run class="ConstructorExecInit"/>
  3905. </ajc-test>
  3906. <ajc-test dir="new" pr="659"
  3907. title="name binding in before cflow containing cflowbelow"
  3908. keywords="from-resolved_104">
  3909. <compile files="ArgsInCflow.java" options="!eclipse">
  3910. <message kind="error" line="29"/>
  3911. <message kind="error" line="32"/>
  3912. </compile>
  3913. </ajc-test>
  3914. <ajc-test dir="pureJava" pr="737"
  3915. title="no circularity errors simply because of inners (1)"
  3916. keywords="from-resolved_105,purejava">
  3917. <compile files="circle/Test1CP.java"/>
  3918. <run class="circle.Test1CP"/>
  3919. </ajc-test>
  3920. <ajc-test dir="pureJava" pr="737"
  3921. title="no circularity errors simply because of inners (2)"
  3922. keywords="from-resolved_105,purejava">
  3923. <compile files="circle/Test2CP.java"/>
  3924. <run class="circle.Test2CP"/>
  3925. </ajc-test>
  3926. <ajc-test dir="pureJava" pr="737"
  3927. title="should have circular inheritance errors (1)"
  3928. keywords="from-resolved_105,purejava,messages-vary">
  3929. <compile files="circle/Test1CF.java"
  3930. options="!eclipse">
  3931. <message kind="error" line="7"/>
  3932. <message kind="error" line="15"/>
  3933. <message kind="error" line="17"/>
  3934. </compile>
  3935. </ajc-test>
  3936. <ajc-test dir="pureJava" pr="737"
  3937. title="should have circular inheritance errors (2)"
  3938. keywords="from-resolved_105,purejava,messages-vary">
  3939. <compile files="circle/Test2CF.java"
  3940. options="!eclipse">
  3941. <message kind="error" line="6"/>
  3942. <message kind="error" line="10"/>
  3943. <message kind="error" line="15"/>
  3944. </compile>
  3945. </ajc-test>
  3946. <ajc-test dir="new/pr728" pr="728" title="file order in type searching"
  3947. keywords="from-resolved_105">
  3948. <compile files="AnotherClass.java,Interface.java"/>
  3949. <run class="AnotherClass"/>
  3950. </ajc-test>
  3951. <ajc-test dir="pureJava" pr="728"
  3952. title="interface using preceding subinterface in its definition"
  3953. keywords="from-resolved_105,purejava">
  3954. <compile files="ParentUsingChild.java"/>
  3955. <run class="ParentUsingChild"/>
  3956. </ajc-test>
  3957. <ajc-test dir="new" pr="645"
  3958. title="Parent interface using public inner interface of child in same file"
  3959. keywords="from-resolved_105,purejava">
  3960. <compile files="ParentInterfaceUsingChildInnerInterface.java"/>
  3961. <run class="ParentInterfaceUsingChildInnerInterface"/>
  3962. </ajc-test>
  3963. <ajc-test dir="errors"
  3964. title="a type is not allowed to extend or implement its own innner type"
  3965. keywords="from-resolved_105,purejava">
  3966. <compile files="NestedInterfaceTest.java">
  3967. <message kind="error" line="1"/>
  3968. </compile>
  3969. </ajc-test>
  3970. <ajc-test dir="pureJava" title="try requires block JLS 14.19"
  3971. keywords="from-resolved_105,purejava,messages-vary">
  3972. <compile files="TryBlockRequiredCE.java"
  3973. options="!eclipse">
  3974. <message kind="error" line="6"/>
  3975. </compile>
  3976. </ajc-test>
  3977. <ajc-test dir="pureJava" pr="722" title="loop expressions not declarations"
  3978. keywords="from-resolved_105,purejava,messages-vary">
  3979. <compile files="DeclarationsInLoopsCE.java"
  3980. options="!eclipse">
  3981. <message kind="error" line="7"/>
  3982. </compile>
  3983. </ajc-test>
  3984. <ajc-test dir="new" pr="663"
  3985. title="no error when public class is in file of a different name"
  3986. keywords="from-resolved_105,purejava">
  3987. <compile options="-strict" files="PublicClassWrongFilename.java">
  3988. <message kind="error" line="3"/>
  3989. </compile>
  3990. </ajc-test>
  3991. <ajc-test dir="pureJava" pr="739"
  3992. title="local variables must be final to be accessed from inner class"
  3993. keywords="from-resolved_105,purejava">
  3994. <compile files="LocalsFromInnerCE.java">
  3995. <message kind="error" line="6"/>
  3996. <message kind="error" line="13"/>
  3997. <message kind="error" line="19"/>
  3998. <message kind="error" line="25"/>
  3999. <message kind="error" line="32"/>
  4000. <message kind="error" line="40"/>
  4001. <message kind="error" line="51"/>
  4002. <message kind="error" line="61"/>
  4003. <message kind="error" line="67"/>
  4004. <message kind="error" line="75"/>
  4005. <message kind="error" line="81"/>
  4006. </compile>
  4007. </ajc-test>
  4008. <ajc-test dir="pureJava" pr="739"
  4009. title="final local variables may be accessed from inner class"
  4010. keywords="from-resolved_105,purejava">
  4011. <compile files="LocalsFromInnerCP.java"/>
  4012. <run class="LocalsFromInnerCP"/>
  4013. </ajc-test>
  4014. <ajc-test dir="pureJava" pr="723" title="missing package identifier"
  4015. keywords="from-resolved_105,purejava">
  4016. <compile files="MissingPackageCE.java">
  4017. <message kind="error" line="2"/>
  4018. </compile>
  4019. </ajc-test>
  4020. <ajc-test dir="pureJava" pr="721"
  4021. title="interface declaration not permitted in local method scope"
  4022. keywords="from-resolved_105">
  4023. <compile files="LocalInterfaceCE.java">
  4024. <message kind="error" line="5"/>
  4025. <message kind="error" line="8"/>
  4026. <message kind="error" line="11"/>
  4027. <message kind="error" line="15"/>
  4028. </compile>
  4029. </ajc-test>
  4030. <ajc-test dir="new" title="simple declare warning (NPE)"
  4031. keywords="from-resolved_105">
  4032. <compile files="DeclareWarningMain.java">
  4033. <message kind="warning" line="5"/>
  4034. </compile>
  4035. <run class="DeclareWarningMain"/>
  4036. </ajc-test>
  4037. <ajc-test dir="new"
  4038. title="package typepattern with no packages (in default package)"
  4039. keywords="from-resolved_105">
  4040. <compile options="-Xlint" files="TypeNames.java">
  4041. <message kind="warning" line="34"/>
  4042. <message kind="warning" line="39"/>
  4043. <message kind="warning" line="43"/>
  4044. <message kind="warning" line="47"/>
  4045. </compile>
  4046. <run class="TypeNames"/>
  4047. </ajc-test>
  4048. <ajc-test dir="new" pr="701"
  4049. title="CE for ambiguous type reference (two files in package)"
  4050. keywords="from-resolved_105,purejava">
  4051. <compile
  4052. files="ambiguousClass/AmbiguousReferent.java,ambiguousClass/AmbiguousClassReference.java">
  4053. <message kind="error" line="5"/>
  4054. </compile>
  4055. </ajc-test>
  4056. <ajc-test dir="new"
  4057. title="initializer can throw so long as all constructors declare so"
  4058. keywords="from-resolved_105,purejava">
  4059. <compile files="InitializerWithThrow.java"/>
  4060. <run class="InitializerWithThrow"/>
  4061. </ajc-test>
  4062. <ajc-test dir="pureJava"
  4063. title="interfaces may not contain initializers (bug found by jacks)"
  4064. keywords="from-resolved_105,purejava">
  4065. <compile files="InterfaceMembersCf.java">
  4066. <message kind="error" line="2"/>
  4067. <message kind="error" line="3"/>
  4068. </compile>
  4069. </ajc-test>
  4070. <ajc-test dir="new" pr="755"
  4071. title="ajc dies on cflow into field init anon class see knownbugs.txt"
  4072. keywords="from-resolved_105">
  4073. <compile files="CflowOfFieldInitAnonMethods.java" options="!eclipse">
  4074. </compile>
  4075. <run class="CflowOfFieldInitAnonMethods" options="!eclipse"/>
  4076. </ajc-test>
  4077. <ajc-test dir="pureJava"
  4078. title="initializers must be able to complete normally (found by jacks)"
  4079. keywords="from-resolved_105,purejava,messages-vary">
  4080. <compile files="InitializerFlowCf.java"
  4081. options="!eclipse">
  4082. <message kind="error" line="2"/>
  4083. <message kind="error" line="4"/>
  4084. </compile>
  4085. </ajc-test>
  4086. <ajc-test dir="new" pr="757" title="Incrementing interface-introduced field"
  4087. keywords="from-resolved_105">
  4088. <compile files="IntroducedFieldInc.java"/>
  4089. <run class="IntroducedFieldInc"/>
  4090. </ajc-test>
  4091. <ajc-test dir="pureJava" title="more tests of super alone"
  4092. keywords="from-resolved_105,purejava">
  4093. <compile files="SuperIsWeird.java">
  4094. <message kind="error" line="9"/>
  4095. <message kind="error" line="13"/>
  4096. <message kind="error" line="20"/>
  4097. <message kind="error" line="21"/>
  4098. </compile>
  4099. </ajc-test>
  4100. <ajc-test dir="new"
  4101. title="The dynamic type, not the static one, should be used in if pcds"
  4102. keywords="from-resolved_105">
  4103. <compile files="StaticTypeInIf.java"/>
  4104. <run class="StaticTypeInIf"/>
  4105. </ajc-test>
  4106. <ajc-test dir="new"
  4107. title="bad interaction with after returning, around and void methods (from Rich Price)"
  4108. keywords="from-resolved_105">
  4109. <compile files="AfterReturningResult.java"/>
  4110. <run class="AfterReturningResult"/>
  4111. </ajc-test>
  4112. <ajc-test dir="new"
  4113. title="type pattern matching for inner classes (from Ken Horn)"
  4114. keywords="from-resolved_105">
  4115. <compile files="TypePat.java"/>
  4116. <run class="test.TypePat"/>
  4117. </ajc-test>
  4118. <ajc-test dir="new" pr="771" title="static initializer member name"
  4119. keywords="from-resolved_105">
  4120. <compile files="StaticInitName.java"/>
  4121. <run class="StaticInitName"/>
  4122. </ajc-test>
  4123. <ajc-test dir="new" pr="770" title="cflow pcd syntax error"
  4124. keywords="from-resolved_105">
  4125. <compile files="IllegalCflowCE.java">
  4126. <message kind="error" line="4"/>
  4127. </compile>
  4128. </ajc-test>
  4129. <ajc-test dir="new" pr="764"
  4130. title="binding args with indeterminate prefix and suffix"
  4131. keywords="from-resolved_105">
  4132. <compile files="IndeterminateArgs.java"/>
  4133. <run class="IndeterminateArgs"/>
  4134. </ajc-test>
  4135. <ajc-test dir="new" pr="764"
  4136. title="flag errors when binding args with indeterminate prefix and suffix"
  4137. keywords="from-resolved_105,knownLimitation">
  4138. <compile files="IndeterminateArgsCE.java">
  4139. <message kind="error" line="67"/>
  4140. <message kind="error" line="68"/>
  4141. <message kind="error" line="70"/>
  4142. <message kind="error" line="72"/>
  4143. </compile>
  4144. </ajc-test>
  4145. <ajc-test dir="new" pr="764"
  4146. title="check arg types with indeterminate prefix and suffix"
  4147. keywords="from-resolved_105">
  4148. <compile files="IndeterminateArgType.java"/>
  4149. <run class="IndeterminateArgType"/>
  4150. </ajc-test>
  4151. <ajc-test dir="new" pr="764"
  4152. title="testing and binding args with single indeterminate prefix and suffix"
  4153. keywords="from-resolved_105">
  4154. <compile files="IndeterminateArg.java"/>
  4155. <run class="IndeterminateArg"/>
  4156. </ajc-test>
  4157. <ajc-test dir="new" pr="764"
  4158. title="binding handler args with indeterminate prefix and suffix"
  4159. keywords="from-resolved_105">
  4160. <compile files="IndeterminateHandlerArg.java"/>
  4161. <run class="IndeterminateHandlerArg"/>
  4162. </ajc-test>
  4163. <ajc-test dir="pureJava"
  4164. title="Locals inside other locals, ordering of processing [eh]"
  4165. keywords="from-resolved_105">
  4166. <compile files="LocalInners2.java"/>
  4167. <run class="LocalInners2"/>
  4168. </ajc-test>
  4169. <ajc-test dir="pureJava" pr="752"
  4170. title="subclass access to enclosing super class private members"
  4171. keywords="from-resolved_105,purejava,fail-unimplemented">
  4172. <compile files="SubclassAccessToEnclosingSuperClassPrivate.java"/>
  4173. <run class="SubclassAccessToEnclosingSuperClassPrivate"/>
  4174. </ajc-test>
  4175. <ajc-test dir="new/nolang" pr="762"
  4176. title="Compiling java.lang.Object with ajc yields non-verifying bytecode"
  4177. keywords="from-resolved_105"
  4178. comment="XXX weak/bad test">
  4179. <compile files="java/lang/Object.java,java/lang/String.java">
  4180. </compile>
  4181. </ajc-test>
  4182. <ajc-test dir="new"
  4183. title="method-local class defined in around return statement"
  4184. keywords="from-resolved_105">
  4185. <compile files="MethodLocalAroundReturns.java"/>
  4186. <run class="MethodLocalAroundReturns"/>
  4187. </ajc-test>
  4188. <ajc-test dir="new" title="CE expected for assignment to arg in if pcd"
  4189. keywords="from-resolved_105">
  4190. <compile files="IfPCDAssignmentCE.java">
  4191. <message kind="error" line="16"/>
  4192. <message kind="error" line="20"/>
  4193. </compile>
  4194. </ajc-test>
  4195. <ajc-test dir="new" title="advising field get/sets when accessing via super"
  4196. keywords="from-resolved_105">
  4197. <compile files="SuperField.java"/>
  4198. <run class="SuperField"/>
  4199. </ajc-test>
  4200. <ajc-test dir="new" title="accessing private members in outer types"
  4201. keywords="from-resolved_105">
  4202. <compile files="FieldInnerAccess.java"/>
  4203. <run class="FieldInnerAccess"/>
  4204. </ajc-test>
  4205. <ajc-test dir="pureJava" title="various tests of switch bounds"
  4206. keywords="from-resolved_106,purejava">
  4207. <compile files="SwitchBounds.java"/>
  4208. <run class="SwitchBounds"/>
  4209. </ajc-test>
  4210. <ajc-test dir="new" pr="601"
  4211. title="VerifyError if nested sync returning result"
  4212. comment="XXX inconsistent behavior?"
  4213. keywords="from-resolved_10final,purejava">
  4214. <compile files="NestedSyncWithResult.java"/>
  4215. <run class="NestedSyncWithResult"/>
  4216. </ajc-test>
  4217. <ajc-test dir="new" pr="853"
  4218. title="declare interface extends class">
  4219. <compile files="DeclareInterfaceExtendsClass.java">
  4220. <message kind="error" line="10"/>
  4221. </compile>
  4222. </ajc-test>
  4223. <ajc-test dir="new" pr="853"
  4224. title="declare interface implements class">
  4225. <compile files="DeclareInterfaceImplementsClass.java">
  4226. <message kind="error" line="10"/>
  4227. </compile>
  4228. </ajc-test>
  4229. <ajc-test dir="pureJava" title="assert flow"
  4230. keywords="from-14tests,purejava">
  4231. <compile options="-source14" files="AssertsCF.java">
  4232. <message kind="error" line="8"/>
  4233. <message kind="error" line="11"/>
  4234. </compile>
  4235. </ajc-test>
  4236. <ajc-test dir="pureJava" title="assert flow - 2"
  4237. keywords="from-14tests,purejava">
  4238. <compile options="-source14" files="AssertsCF2.java">
  4239. <message kind="error" line="6"/>
  4240. </compile>
  4241. </ajc-test>
  4242. <ajc-test dir="pureJava" title="assert typing"
  4243. keywords="from-14tests,purejava,fail-publicType">
  4244. <compile options="-source14" files="AssertsCF1.java">
  4245. <message kind="error" line="5"/>
  4246. </compile>
  4247. </ajc-test>
  4248. <ajc-test dir="pureJava" title="asserts" keywords="from-14tests">
  4249. <compile options="-source14" files="Asserts.java"/>
  4250. <run class="Asserts" vm="1.4"/>
  4251. </ajc-test>
  4252. <ajc-test dir="pureJava" title="assert coverage tests [requires 1.4]"
  4253. keywords="from-14tests,purejava">
  4254. <compile options="-source14" files="AssertsCv.java"/>
  4255. <run class="AssertsCv" vm="1.4"/>
  4256. </ajc-test>
  4257. <ajc-test dir="pureJava"
  4258. title="assert coverage tests in one package [requires 1.4]"
  4259. keywords="from-14tests,purejava,fail-unimplemented">
  4260. <compile options="-source14" files="AssertInOnePackage.java"/>
  4261. <run class="AssertInOnePackage" vm="1.4"/>
  4262. </ajc-test>
  4263. <ajc-test dir="new" title="assert tests in introduction [requires 1.4]"
  4264. keywords="from-14tests,fail-unimplemented">
  4265. <compile options="-source14" files="AssertInIntro.java"/>
  4266. <run class="AssertInIntro" vm="1.4"/>
  4267. </ajc-test>
  4268. <ajc-test dir="pureJava" title="compiling asserts in methods"
  4269. keywords="from-14tests,purejava">
  4270. <compile options="-source14,-usejavac" files="AssertInMethod.java"/>
  4271. <run class="AssertInMethod" vm="1.4"/>
  4272. </ajc-test>
  4273. <ajc-test dir="pureJava" pr="725"
  4274. title="asserts in aspect and declared methods [requires 1.4]"
  4275. keywords="from-14tests,purejava">
  4276. <compile options="-source14,-usejavac"
  4277. files="IntroducedAssertion.java"/>
  4278. <run class="IntroducedAssertion" vm="1.4"/>
  4279. </ajc-test>
  4280. <ajc-test dir="design/around"
  4281. title="around and return types + inlining optimizations"
  4282. comment="XXX not a 1.4 test, but source uses 1.4 APIs"
  4283. keywords="from-14tests">
  4284. <compile options="-XOcodeSize,-source14"
  4285. files="ReturnCastProceed.java,StackChecker.java">
  4286. <message kind="warning" line="68"/>
  4287. </compile>
  4288. <run class="ReturnCastProceed" vm="1.4"/>
  4289. </ajc-test>
  4290. <ajc-test dir="base/test131"
  4291. title="various forms of package name pattern matching work"
  4292. keywords="from-broken14usejavac">
  4293. <compile files="Driver.java,p1/C1.java,p1/p2/C2.java"/>
  4294. <run class="Driver"/>
  4295. </ajc-test>
  4296. <ajc-test dir="new" pr="134"
  4297. title="import of a class in the default package"
  4298. keywords="from-broken14usejavac,purejava">
  4299. <compile files="ImportFromUnnamed.java,DeclaredExcs.java"/>
  4300. <run class="ImportFromUnnamed"/>
  4301. </ajc-test>
  4302. <ajc-test dir="pureJava" pr="386"
  4303. title="Referencing static interfaces with import statements"
  4304. keywords="from-broken14usejavac,purejava">
  4305. <compile files="ClassWithStaticInnerInterfaces.java"/>
  4306. <compile files="ImportingStaticInnerInterfaces_PR386.java"/>
  4307. <run class="ImportingStaticInnerInterfaces_PR386"/>
  4308. </ajc-test>
  4309. <ajc-test dir="pureJava" pr="386"
  4310. title="Referencing static interfaces with import statements stars"
  4311. keywords="purejava,from-broken14usejavac">
  4312. <compile files="ClassWithStaticInnerInterfaces.java"/>
  4313. <compile files="ImportingStaticInnerInterfacesStars_PR386.java"/>
  4314. <run class="ImportingStaticInnerInterfacesStars_PR386"/>
  4315. </ajc-test>
  4316. <ajc-test dir="pureJava" pr="386"
  4317. title="Referencing static interfaces with import statements stars 2"
  4318. keywords="purejava,from-broken14usejavac">
  4319. <compile files="ClassWithStaticInnerInterfaces.java"/>
  4320. <compile files="ImportingStaticInnerInterfacesStars2_PR386.java"/>
  4321. <run class="ImportingStaticInnerInterfacesStars2_PR386"/>
  4322. </ajc-test>
  4323. <ajc-test dir="pureJava" pr="386"
  4324. title="Referencing static interfaces with import statements stars 3"
  4325. keywords="purejava,from-broken14usejavac">
  4326. <compile files="ClassWithStaticInnerInterfaces.java"/>
  4327. <compile files="ImportingStaticInnerInterfacesStars3_PR386.java"/>
  4328. <run class="ImportingStaticInnerInterfacesStars3_PR386"/>
  4329. </ajc-test>
  4330. <ajc-test dir="pureJava" pr="386"
  4331. title="Referencing interfaces with import statements"
  4332. keywords="purejava,from-broken14usejavac">
  4333. <compile
  4334. files="ClassWithInnerInterfaces.java,ImportingInnerInterfaces_PR386.java"/>
  4335. <run class="ImportingInnerInterfaces_PR386"/>
  4336. </ajc-test>
  4337. <ajc-test dir="pureJava" pr="386"
  4338. title="Referencing interfaces with import statements stars"
  4339. keywords="purejava,from-broken14usejavac">
  4340. <compile
  4341. files="ClassWithInnerInterfaces.java,ImportingInnerInterfacesStars_PR386.java"/>
  4342. <run class="ImportingInnerInterfacesStars_PR386"/>
  4343. </ajc-test>
  4344. <ajc-test dir="pureJava" pr="386"
  4345. title="Referencing interfaces with import statements stars 2"
  4346. keywords="purejava,from-broken14usejavac">
  4347. <compile
  4348. files="ClassWithInnerInterfaces.java,ImportingInnerInterfacesStars2_PR386.java"/>
  4349. <run class="ImportingInnerInterfacesStars2_PR386"/>
  4350. </ajc-test>
  4351. <ajc-test dir="pureJava" pr="386"
  4352. title="Referencing interfaces with import statements stars 3"
  4353. keywords="purejava,from-broken14usejavac">
  4354. <compile
  4355. files="ClassWithInnerInterfaces.java,ImportingInnerInterfacesStars3_PR386.java"/>
  4356. <run class="ImportingInnerInterfacesStars3_PR386"/>
  4357. </ajc-test>
  4358. <ajc-test dir="new" pr="657"
  4359. title="assert statement in advice coverage [requires 1.4]"
  4360. keywords="from-14tests,fail-in-eclipse">
  4361. <compile options="-source14" files="AssertInAdvice.java"/>
  4362. <run class="AssertInAdvice" vm="1.4"/>
  4363. </ajc-test>
  4364. <ajc-test dir="new" pr="657"
  4365. title="assert statement in advice [requires 1.4]"
  4366. keywords="from-14tests,fail-in-eclipse">
  4367. <compile options="-source14" files="AssertInAdviceBug.java"/>
  4368. <run class="AssertInAdviceBug" vm="1.4"/>
  4369. </ajc-test>
  4370. <ajc-test dir="pureJava" pr="866"
  4371. title="non-constant static final fields marked as final in .class">
  4372. <compile files="FinalStaticField.java"/>
  4373. <run class="FinalStaticField"/>
  4374. </ajc-test>
  4375. <ajc-test dir="new" pr="883"
  4376. title="signature of handler join point">
  4377. <compile files="HandlerSignature.java"/>
  4378. <run class="HandlerSignature"/>
  4379. </ajc-test>
  4380. <ajc-test dir="new" pr="885"
  4381. title="source locations within expressions">
  4382. <compile files="SourceLocationWithinExpr.java"/>
  4383. <run class="SourceLocationWithinExpr"/>
  4384. </ajc-test>
  4385. <ajc-test dir="new" pr="888"
  4386. title="crashes given method in declared method">
  4387. <compile files="DeclareMethodCE.java">
  4388. <message kind="error" line="8"/>
  4389. </compile>
  4390. </ajc-test>
  4391. <ajc-test dir="new" pr="889"
  4392. title="after returning advice on interface constructor">
  4393. <compile files="AfterReturningInterfaceConstructor.java"/>
  4394. <run class="AfterReturningInterfaceConstructor"/>
  4395. </ajc-test>
  4396. <!-- .................................... option tests -->
  4397. <!-- .................................... -warn tests -->
  4398. <ajc-test dir="options"
  4399. title="options -warn:deprecation">
  4400. <compile files="WarnDeprecated.java"
  4401. options="!eclipse,-warn:deprecation">
  4402. <message kind="warning" line="10"/>
  4403. </compile>
  4404. </ajc-test>
  4405. <!-- .................................... -Xlint tests -->
  4406. <!-- ............... positive -Xlint tests -->
  4407. <ajc-test dir="options"
  4408. title="options -Xlint args()"
  4409. keywords="lint">
  4410. <compile files="XLintTypeArgsPCD.java"
  4411. options="!Xlint">
  4412. <message kind="warning" line="10"/>
  4413. </compile>
  4414. </ajc-test>
  4415. <ajc-test dir="options"
  4416. title="options declare field on bad type">
  4417. <compile files="XLintTypeDeclareField.java" options="!eclipse">
  4418. <message kind="error" line="10"/>
  4419. </compile>
  4420. </ajc-test>
  4421. <ajc-test dir="options"
  4422. title="options declare method on bad type">
  4423. <compile files="XLintTypeDeclareMethod.java" options="!eclipse">
  4424. <message kind="error" line="10"/>
  4425. </compile>
  4426. </ajc-test>
  4427. <ajc-test dir="options"
  4428. title="options -Xlint declare parent"
  4429. keywords="lint">
  4430. <compile files="XLintTypeDeclareParent.java"
  4431. options="!Xlint">
  4432. <message kind="warning" line="10"/>
  4433. </compile>
  4434. </ajc-test>
  4435. <ajc-test dir="options"
  4436. title="options -Xlint target()"
  4437. keywords="lint">
  4438. <compile files="XLintTypeTargetPCD.java"
  4439. options="!Xlint">
  4440. <message kind="warning" line="10"/>
  4441. </compile>
  4442. </ajc-test>
  4443. <ajc-test dir="options"
  4444. title="options -Xlint this()"
  4445. keywords="lint">
  4446. <compile files="XLintTypeThisPCD.java"
  4447. options="!Xlint">
  4448. <message kind="warning" line="10"/>
  4449. </compile>
  4450. </ajc-test>
  4451. <!-- ............... negative -Xlint tests -->
  4452. <ajc-test dir="options"
  4453. title="options negative -Xlint args()"
  4454. keywords="lint">
  4455. <compile files="XLintTypeArgsPCD.java" options="-Xlint:ignore"/>
  4456. </ajc-test>
  4457. <ajc-test dir="options"
  4458. title="options negative -Xlint declare parent"
  4459. keywords="lint">
  4460. <compile files="XLintTypeDeclareParent.java" options="-Xlint:ignore"/>
  4461. </ajc-test>
  4462. <ajc-test dir="options"
  4463. title="options negative -Xlint target()"
  4464. keywords="lint">
  4465. <compile files="XLintTypeTargetPCD.java" options="-Xlint:ignore"/>
  4466. </ajc-test>
  4467. <ajc-test dir="options"
  4468. title="options negative -Xlint this()"
  4469. keywords="lint">
  4470. <compile files="XLintTypeThisPCD.java" options="-Xlint:ignore"/>
  4471. </ajc-test>
  4472. <!-- .................................... -injars tests -->
  4473. <ajc-test dir="options/injars/simple"
  4474. title="source for options -injars">
  4475. <compile files="Simple.java,Main.java"/>
  4476. <run class="Main"/>
  4477. </ajc-test>
  4478. <ajc-test dir="options/injars/simple"
  4479. title="options -injars">
  4480. <compile files="Simple.java,main.jar"
  4481. options="!eclipse"/>
  4482. <run class="Main"/>
  4483. </ajc-test>
  4484. <!-- .................................... aspectpath tests -->
  4485. <ajc-test dir="new/options11"
  4486. comment="XXX not validated correct yet"
  4487. title="testing new options">
  4488. <compile files="Main.java,inJar.jar,Aspect.java"
  4489. aspectpath="aspectlib1.jar,aspectlib2.jar"/>
  4490. <run class="Main"/>
  4491. </ajc-test>
  4492. </suite>