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 26721 Details for
Bug 108488
@Aspect("perthis(this(Person))")
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
the ArbeitszeitAspekt which causes the error
ArbeitszeitAspekt.aj (text/plain), 1.62 KB, created by
Oliver
on 2005-08-31 13:33:22 EDT
(
hide
)
Description:
the ArbeitszeitAspekt which causes the error
Filename:
MIME Type:
Creator:
Oliver
Created:
2005-08-31 13:33:22 EDT
Size:
1.62 KB
patch
obsolete
>/* > * Created on Jul 13, 2004 > */ >package verwaltung; > >import java.util.*; > >import org.aspectj.lang.*; >import org.aspectj.lang.annotation.*; >import org.aspectj.lang.reflect.*; > >/** > * Leiter geheh mit AspectJ 1.5.0M2 die @AspectJ-Annotations noch nicht, > * deswegen sind sie noch auskommentiert > */ >//@Aspect(instantiationModel=AspectInstantiationModel.PERTHIS, >// perClausePattern="this(Person)") >//public class ArbeitszeitAspekt { >//public aspect ArbeitszeitAspekt perthis(this(Person)) { > >/** > * Naechster Versuch mit AspectJ 1.5.0M3... > * > * @Aspect("perthis(this(verwaltung.Person))" > * -> gibt "can't do instanceof matching on paterns with wildcards" > * @Aspect("perthis(this(Person))") > * -> keine Fehlermeldung, aber jetzt gibt's gar keine Ausgabe > */ >@Aspect >public class ArbeitszeitAspekt { > > long start; > long end; > > /** > * ermittle Arbeitszeit > */ >// void around(Person x) : >// execution(public void Person.arbeite()) && this(x) { >// start = System.currentTimeMillis(); >// proceed(x); >// end = System.currentTimeMillis(); >// System.out.println("Arbeitszeit " + x + ": " + new Date(start) >// + " - " + new Date(end)); >// } > > @Around("execution(public void verwaltung.Person.arbeite()) && this(x)") > public void watchWorkingHours(ProceedingJoinPoint thisJoinPoint, > Person x) { > start = System.currentTimeMillis(); > thisJoinPoint.proceed(new Object[] {x}); > end = System.currentTimeMillis(); > System.out.println("*** ARBEITSZEIT " + x + ": " + new Date(start) + " - " > + new Date(end)); > } > >}
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 108488
: 26721 |
26722