Bug 85423 - search for references should find annotation element assignments
Summary: search for references should find annotation element assignments
Status: RESOLVED DUPLICATE of bug 83230
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-16 10:19 EST by Tom Hofmann CLA
Modified: 2005-02-16 11:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2005-02-16 10:19:22 EST
I20050215-2300 (m5 test pass)

When searching for references to 'style', the reference in the annotation
specification to randomAccess should be found as well.

	/**
	 * Marks a method as being a test.
	 */
	@Target(METHOD)
	@Documented
	@interface Test {
		TestStyle style() default CORRECTNESS;
	}
	
	/**
	 * Tests the random access time to a list.
	 */
	@Test(style=PERFORMANCE)
	public void randomAccess() {
		List<E> vector= fFull;
		long before= System.currentTimeMillis();
		E one= vector.get(42);
		long after= System.currentTimeMillis();
		Long maxAccessTime= new Long(100);
		assertTrue(after - before < maxAccessTime);
	}
Comment 1 Tom Hofmann CLA 2005-02-16 10:20:54 EST
Note that this should also work when searching for references to the default
'value' element.
Comment 2 Frederic Fusier CLA 2005-02-16 11:52:13 EST

*** This bug has been marked as a duplicate of 83230 ***