Bug 265556 - [reconciling] Rogue warning in editor for valid ITD method reference
Summary: [reconciling] Rogue warning in editor for valid ITD method reference
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows NT
: P3 normal (vote)
Target Milestone: 1.6.4   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-19 17:05 EST by Andrew Clement CLA
Modified: 2009-02-20 15:18 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 Andrew Clement CLA 2009-02-19 17:05:23 EST
package ajia.tracking;

import org.springframework.stereotype.Service;

public aspect TimeTracker {
     private static interface LastAccessedTimeHolder {
         static aspect Impl {
             private long LastAccessedTimeHolder.lastAccessedTime;

             public long LastAccessedTimeHolder.getLastAccessedTime() {
                 return lastAccessedTime;
             }

             public void
                 LastAccessedTimeHolder.setLastAccessedTime(long time) {
                 lastAccessedTime = time;
             }
         }
     }

     declare parents : @Service * implements LastAccessedTimeHolder;

     before(LastAccessedTimeHolder service)
         : execution(* LastAccessedTimeHolder+.*(..)) && this(service)
           && !within(TimeTracker) {
         service.setLastAccessedTime(System.nanoTime());
     }
}


Opened in the .aj editor - the final line of code
'service.setLastAccessedTime' shows an error that it is undefined for
type TimeTracker.LastAccessedTimeHolder.
Comment 1 Andrew Eisenberg CLA 2009-02-20 15:18:33 EST
This one appears to have been addressed from an earlier fix.  Adding a test and committing it.