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 60506 Details for
Bug 176905
Failure in chained field declare annotations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Failing test case
pr176905.txt (text/plain), 2.58 KB, created by
Ron Bodkin
on 2007-03-10 16:33:38 EST
(
hide
)
Description:
Failing test case
Filename:
MIME Type:
Creator:
Ron Bodkin
Created:
2007-03-10 16:33:38 EST
Size:
2.58 KB
patch
obsolete
>Index: src/org/aspectj/systemtest/ajc160/Ajc160Tests.java >=================================================================== >RCS file: /cvsroot/tools/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc160/Ajc160Tests.java,v >retrieving revision 1.13 >diff -u -r1.13 Ajc160Tests.java >--- src/org/aspectj/systemtest/ajc160/Ajc160Tests.java 28 Feb 2007 13:10:34 -0000 1.13 >+++ src/org/aspectj/systemtest/ajc160/Ajc160Tests.java 10 Mar 2007 21:25:41 -0000 >@@ -143,6 +143,9 @@ > runTest("Suppress warnings2"); > } > >+ public void testChainedItds() { >+ runTest("Chained itds"); >+ } > ///////////////////////////////////////// > public static Test suite() { > return XMLBasedAjcTestCase.loadSuite(Ajc160Tests.class); >Index: src/org/aspectj/systemtest/ajc160/ajc160.xml >=================================================================== >RCS file: /cvsroot/tools/org.aspectj/modules/tests/src/org/aspectj/systemtest/ajc160/ajc160.xml,v >retrieving revision 1.13 >diff -u -r1.13 ajc160.xml >--- src/org/aspectj/systemtest/ajc160/ajc160.xml 28 Feb 2007 13:10:34 -0000 1.13 >+++ src/org/aspectj/systemtest/ajc160/ajc160.xml 10 Mar 2007 21:25:41 -0000 >@@ -140,6 +140,18 @@ > </ajc-test> > > >+ <ajc-test dir="bugs160/pr176905" >+ title="Chained itds" >+ keywords="java5, itd, pr176905"> >+ <compile options="-1.5" >+ files="ChainedItd.aj" >+ > >+ </compile> >+ <run class="ChainedItd"> >+ <stderr/> <!-- no errors--> >+ </run> >+ </ajc-test> >+ > <!-- second section - need a 1.6 vm --> > > </suite> >\ No newline at end of file >Index: bugs160/pr176905/ChainedItd.aj >=================================================================== >RCS file: bugs160/pr176905/ChainedItd.aj >diff -N bugs160/pr176905/ChainedItd.aj >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ bugs160/pr176905/ChainedItd.aj 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,24 @@ >+import java.lang.reflect.Field; >+import java.lang.annotation.*; >+ >+public aspect ChainedItd { >+ declare @field: long *.foo: @Deprecated; >+ >+ declare @field: @Deprecated * *.foo: @MyAnnotation; >+ //uncomment the line below to prove our test should work >+ //declare @field: long *.foo: @MyAnnotation; >+ >+ public static void main(String argz[]) throws Exception { >+ Field idField = Test.class.getDeclaredField("foo"); >+ idField.setAccessible(true); >+ assert idField.getAnnotation(MyAnnotation.class) != null; >+ } >+} >+ >+class Test { >+ private long foo; >+} >+ >+@Retention(RetentionPolicy.RUNTIME) >+@interface MyAnnotation { >+}
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 Diff
View Attachment As Raw
Flags:
aclement
:
iplog+
Actions:
View
|
Diff
Attachments on
bug 176905
: 60506