Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 51100 Details for
Bug 159143
subtype pattern not working for declare annotation on method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
test case, includes test specification
DeclareMethodAnnotation.aj (text/plain), 3.13 KB, created by
Wes Isberg
on 2006-09-28 12:50:28 EDT
(
hide
)
Description:
test case, includes test specification
Filename:
MIME Type:
Creator:
Wes Isberg
Created:
2006-09-28 12:50:28 EDT
Size:
3.13 KB
patch
obsolete
> >// Preserve lineation of affected types or redo expected messages > > > >@interface MtAn {} > > > >public aspect DeclareMethodAnnotation { > > > > // ------------------ affected types > static class Untyped { > void untypedName() {} // declare warning 16 > void untypedPrefix_blah() {} // declare warning 17 > void blah_untypedSuffix() {} // declare warning 18 > } > > static class Star { > void starName() {} // declare warning 22 > void starPrefix_blah() {} // declare warning 23 > void blah_starSuffix() {} // declare warning 24 > } > static class Type{ > void typeName() {} // declare warning 27 > void typePrefix_blah() {} // declare warning 28 > void blah_typeSuffix() {} // declare warning 29 > } > > static class TypePlus { > void typeplusName() {} // declare warning 33 > void typeplusPrefix_blah() {} // declare warning 34 > void blah_typeplusSuffix() {} // declare warning 35 > } > > static class TypePlusSubtype extends TypePlus { > void typeplusName() {} // declare warning 39 > void typeplusPrefix_blah() {} // declare warning 40 > void blah_typeplusSuffix() {} // declare warning 41 > } > > // ------------------ tests > declare @method: * untypedName() : @MtAn; > declare @method: * untypedPrefix*() : @MtAn; > declare @method: * *untypedSuffix() : @MtAn; > > declare @method: * *.starName() : @MtAn; > declare @method: * *.starPrefix*() : @MtAn; > declare @method: * *.*starSuffix() : @MtAn; > > declare @method: * Type.typeName() : @MtAn; > declare @method: * Type.typePrefix*() : @MtAn; > declare @method: * Type.*typeSuffix() : @MtAn; > > declare @method: * TypePlus+.typeplusName() : @MtAn; > declare @method: * TypePlus+.typeplusPrefix*() : @MtAn; > declare @method: * TypePlus+.*typeplusSuffix() : @MtAn; > > // ------------------ check using warnings, expected in .xml > declare warning : execution(@MtAn * *()): "all"; > >} > >/* > ><ajc-test dir="java5/annotations/declare" title="declare method annotations"> > <compile files="DeclareMethodAnnotation.aj" options="-1.5"> > <message line="16" kind="warning" text="all"/> > <message line="17" kind="warning" text="all"/> > <message line="18" kind="warning" text="all"/> > <message line="22" kind="warning" text="all"/> > <message line="23" kind="warning" text="all"/> > <message line="24" kind="warning" text="all"/> > <message line="27" kind="warning" text="all"/> > <message line="28" kind="warning" text="all"/> > <message line="29" kind="warning" text="all"/> > <message line="33" kind="warning" text="all"/> > <message line="34" kind="warning" text="all"/> > <message line="35" kind="warning" text="all"/> > <message line="39" kind="warning" text="all"/> > <message line="40" kind="warning" text="all"/> > <message line="41" kind="warning" text="all"/> > </compile> > </ajc-test> >*/
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 159143
: 51100