[aspectj-users] Enum Value matching facility

2020-10-21 Thread Mohan Radhakrishnan
Hi, https://bugs.eclipse.org/bugs/show_bug.cgi?id=248681#c2 This was a very old request I raised. I think the comment there means this is already implemented. But AJDT doesn't apply the pointcut. Was this implemented ? Thanks, Mohan ___ aspectj-users m

Re: [aspectj-users] Enum Value matching facility

2020-10-30 Thread Mohan Radhakrishnan
9.html > > Is it asking for static matching (vs runtime/dynamic matching) in join > points related to enums, that feels like it could be done without new join > points, just needs some improvements in the matching algorithm to recognize > enums in use. > > cheers, > Andy &g

[aspectj-users] Tracing a method call

2006-12-03 Thread Mohan Radhakrishnan
Hi, Can we trace a method call through the codebase using pointcuts like this pointcut callStaticMethod (): call (* com.test.MyObject.callStaticMethod(..)); before(): callStaticMethod() { System.out.println( thisJoinPointStaticPart. getSourceLocation().getWithin

Re: [aspectj-users] Tracing a method call

2006-12-16 Thread Mohan Radhakrishnan
d) Is it possible to bore into the api to trace something like this if we know only that method 1 exists ? Thanks, Mohan On 12/3/06, Alexandru Popescu <[EMAIL PROTECTED]> wrote: On 12/3/06, Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote: > Hi, > Can we trace a method call

[aspectj-users] Check if aspects match patterns in class

2007-01-28 Thread Mohan Radhakrishnan
Hi, Is there any way to check if aspects match patterns in a .class file ? I think an aspect browser would be helpful if we don't have the source code. AJDT can mark places if the Java souce files are there. What about .class files ? Thanks, Mohan ___

[aspectj-users] LTW configuration

2007-03-18 Thread Mohan Radhakrishnan
Hi, I am trying to configure LTW in WebSphere 6.0. I have my aspect in a JAR with a aop.xml file in the META-INF folder. Is it enough If this JAR is in the classpath ? Apart from that I have also done what is mentioned here https://bugs.eclipse.org/bugs/show_bug.cgi?id=111027 I don'

[aspectj-users] Re: LTW configuration

2007-03-18 Thread Mohan Radhakrishnan
at aj.weaver.WasWeavingPlugin.preDefineApplicationClass(WasWeavingPlugin.java:34) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) Thanks, Mohan On 3/18/07, Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote: Hi, I am trying to configure LTW in WebSphere 6.0. I have my

Re: RE: [aspectj-users] Re: LTW configuration

2007-04-06 Thread Mohan Radhakrishnan
wrong version of the files. I will rebuild and > post a correct version as soon as possible. > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mohan Radhakrishnan > Sent: Sunday, March 18, 2007 10:28 AM > To: aspectj-users@eclips

[aspectj-users] AspectJ with aspectwerkz

2007-07-15 Thread Mohan Radhakrishnan
Hi, I am not sure which one is the proper forum to ask about using AOP LTW with websphere 6. It is a combination of aspectj and aspectwerkz and websphere. I have done the following for the boot classpath approach. java.lang ClassLoader is patched to preprocess the classes using aspectwerk

Re: [aspectj-users] AspectJ with aspectwerkz

2007-07-24 Thread Mohan Radhakrishnan
ice instead. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mohan Radhakrishnan Sent: Sunday, July 15, 2007 8:32 AM To: aspectj-users@eclipse.org Subject: [aspectj-users] AspectJ with aspectwerkz Hi, I am not sure which one is the proper forum t

[aspectj-users] Deploy and undeploy aspects

2007-09-09 Thread Mohan Radhakrishnan
Hi, How do I deploy and undeploy aspects on a running J2EE server ? I am using LTW on WebSphere Portal. Thanks, Mohan ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users

[aspectj-users] Dynamically undeploy aspects

2007-09-16 Thread Mohan Radhakrishnan
Hi, I would like to dynamically undeploy aspects at runtime. I know that LTW deploys aspects at load time. I had to change the classpath of WebSphere Portal and restart it so that it detected by new aspects. Can I deploy and undeploy aspects at runtime ? Something like OSGI does for

Re: [aspectj-users] Xlint:adviceHasNotBeenApplied crossref

2007-12-25 Thread Mohan Radhakrishnan
Have you tried PointcutDoctor ? http://pointcutdoctor.cs.ubc.ca/ PointcutDoctor provides two kinds of information: - Almost matched join point (shadows), i.e. jp shadows that are not matched by the pointcut but very similar to the ones that are matched; - Highlighting and in-place explanation, i

Re: [aspectj-users] Weaving aspects into libraries

2008-04-11 Thread Mohan Radhakrishnan
Hi, Good question. Actually I think some type of AspectJ weaving is already going on in many popular servers like Portal servers. This weaving can also affect the code that you write and deploy without you knowing anything about it. It is tricky. In our case we want to weave into p

Re: [aspectj-users] Adding fields to a Class

2008-07-12 Thread Mohan Radhakrishnan
Hi, I tried it and it works. Is the incremental compilation bug still there ? AJDT still shows that X.TLInterface cannot be resolved to a type. Thanks, Mohan On 7/8/08, Andy Clement <[EMAIL PROTECTED]> wrote: > Example: > --- Test.java --- > public class Test { > > public static voi

[aspectj-users] Generics without erasure

2008-09-23 Thread Mohan Radhakrishnan
Hi, Aspectj matches against the erasure (e.g) Erasure of List is List. How would AspectJ change if Generics without erasure is implemented as everyone is demanding it ? Thanks, Mohan ___ aspectj-users mailing list aspectj-users@ecli

[aspectj-users] enum wildcard value matching

2008-09-24 Thread Mohan Radhakrishnan
Hi, Is this the only way to match a particular enum value ? I thought there would be a enum wildcard value matching or something like that. @Pointcut( "execution(List getSameValue()) && target(testEnum) && if()") public static boolean testPointcut1( TestEnum testEnum ){

Re: [aspectj-users] catching container managed transactions

2008-09-30 Thread Mohan Radhakrishnan
Hi, The following aspect actually shows those arrows to the left. I have not run it though. package com.aspect; import javax.jms.Message; public aspect MessageDrivenBeanAspect { pointcut handleException(Message i): execution (* com.test.plug.*.onMessage(Message)) &&

Re: [aspectj-users] Reg compiling & running aspectj program

2008-10-20 Thread Mohan Radhakrishnan
Hi, It would be a good idea to use eclipse and AJDT mentioned in http://www.eclipse.org/ajdt/gettingstarted.php so that the initial learning is smooth. Thanks, Mohan On 10/21/08, Varun Gupta <[EMAIL PROTECTED]> wrote: > Hi all > > I have downloaded aspectj-1.6.2.jar file from aspectj. > I h

[aspectj-users] Covariant return types

2010-04-23 Thread Mohan Radhakrishnan
Hi, This joinpoint matches both methods with Covariant return types properly. Is it possible to match only one ? Thanks, Mohan declare warning: execution(Collection *.test( .. )) : "Covariant"; public class CovariantSuper { public Collection test(){ return null;

Re: [aspectj-users] pointcut to match inherited methods

2010-04-29 Thread Mohan Radhakrishnan
Hi Ashank, Is this pointcut what you are looking for ? pointcut p() : execution(* B.m()); public class A { public void m(){ System.out.println( "Test A" ); } } public class B extends A { public void m(){ System.out.println( "Test B" )

Re: [aspectj-users] pointcut to match inherited methods

2010-04-29 Thread Mohan Radhakrishnan
It simply inherits it. I > wish to catch calls to b.m() where b is an instance of class B. thanks > > -Arvind > > > Mohan Radhakrishnan wrote: >> >> Hi Ashank, >> >>    Is this pointcut what you are looking for ? >> >> pointcut p() : execu

Re: [aspectj-users] AspectJ applied to JSP files on Tomcat6

2010-05-02 Thread Mohan Radhakrishnan
Hi , I remember that I used the ANT task to pre-compile the JSP's first. The jasper compiler can do that. Once you do this you get 'generated_web.xml' and the source code of the servlet. The servlet section from the generated_web.xml can be included in the web.xml because that is the generate s

Re: [aspectj-users] Beginner question: intercepting method within a certain context

2010-05-11 Thread Mohan Radhakrishnan
Hi, Don't mean to divert the OP but I just tried this using 1.6.9 and I am not using the annotation style and pointcut p1() : call(* *.invoke(..)) && !within( is(AnonymousType) ); does not match and pointcut p1() : call(* *.invoke(..)) && within( is(AnonymousType) ); matc

Re: [aspectj-users] How to trace a static method with varargs ?

2010-05-18 Thread Mohan Radhakrishnan
Hi, I am using 'execution' here but this format shows the markers properly. pointcut traceGetSQLResultset( Connection dbConn, String sql, JdbcParm... values) : Object[][] around(Connection dbConn, String sql, JdbcParm[] values) : execution( Object[][] *.getResult

Re: [aspectj-users] Join Point Static Part

2010-05-28 Thread Mohan Radhakrishnan
Hi Bhaskar, I am using a simple around advice. The argument is printed. Is this simiilar to what you are looking for ? pointcut test() : call( * com.test.TestClass.test1(..) ); void around() : test(){ System.out.println( thisJoinPoint.getArgs()[ 0

Re: [aspectj-users] Logging constructor calls and exceptions

2010-06-09 Thread Mohan Radhakrishnan
Hi Nils, The following code advices both the constructor and the 'test' method. Class: public class Constructor { public Constructor(){ } public static void main( String[] argv ){ try{ new

[aspectj-users] General question about lambda support

2013-01-10 Thread Mohan Radhakrishnan
Hi, Is there a particular task or support activity required for supporting lambdas in aspectj at this time ? The other thread "Selecting arithmetic operation join points. Is it possible?" seemed to indicate that this is a high priority task. Thanks, Mohan ___

Re: [aspectj-users] General question about lambda support

2013-01-11 Thread Mohan Radhakrishnan
dback. Probably the first real efforts will happen once Eclipse > JDT provides Java 8 compilation and AspectJ can pick that up. > > cheers, > Andy > > > On 10 January 2013 18:30, Mohan Radhakrishnan < > radhakrishnan.mo...@gmail.com> wrote: > >> Hi, >

[aspectj-users] Are there Large-scale AOP use cases ?

2013-02-02 Thread Mohan Radhakrishnan
Hi, I was recently asked if I had come across large-scale business cross-cutting concerns or use cases. I think the questioner meant AOP usecases that were more involved than logging, security etc. Does this question make sense ? Thanks, Mohan _

[aspectj-users] JDK 8 support

2014-01-08 Thread Mohan Radhakrishnan
Hi, When will AspectJ support Lambdas ? Will there be community support required for this engineering effort ? Thanks, Mohan ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users

[aspectj-users] Inject annotation in lambda

2014-09-23 Thread Mohan Radhakrishnan
Hi, I have used AspectJ in the past.. I came across this discussion http://mail.openjdk.java.net/pipermail/mlvm-dev/2013-January/005196.html Does AspectJ inject behavior into an annotation like this one ? (e.g) If I have a predicate which is annotated I can intercept the predicate and inj

Re: [aspectj-users] Inject annotation in lambda

2014-09-23 Thread Mohan Radhakrishnan
​There is also no support in AspectJ yet for ​matching on type > annotations. In your case there you could of course put around advice on > the call to toCollection(). > > ​cheers,​ > > ​Andy​ > > On 23 September 2014 02:28, Mohan Radhakrishnan < > radhakrishnan.mo...@gm

[aspectj-users] AJDT markers in STS

2015-06-25 Thread Mohan Radhakrishnan
Hi, Can I ask here instead of SO ? What are the debugging options in STS that can help me figure out why the aspect is not applied ? AJDT does not show the markers. It is a Spring boot AOP starter project. I am trying to call the weaved code in the Spring bootstrap Java code. @Component pu

Re: [aspectj-users] AJDT markers in STS

2015-06-29 Thread Mohan Radhakrishnan
ne who might know more but you > would get more visibility on SO for the question. > > cheers, > Andy > > > On Jun 25, 2015, at 6:45 AM, Mohan Radhakrishnan < > radhakrishnan.mo...@gmail.com> wrote: > > > > Hi, > > Can I ask here instead of SO ? Wh

[aspectj-users] Open-source code using AspectJ

2015-07-02 Thread Mohan Radhakrishnan
Hi, I was following GlassBox inspector for a long time. It has good AspectJ code to study .Is there anything else like that with a large AspectJ codebase ? Thanks, Mohan ___ aspectj-users mailing list aspectj-users@eclipse.org To change your del

[aspectj-users] Annotation ITD

2015-07-07 Thread Mohan Radhakrishnan
Hi, I am introducing JSR 303/349 annotations to JAXB generated code to leverage the validations mechanism. @DeclareMethod( "* AccountService.*(..): @Transactional(Propagation.Required)" ); Is this how it is done ? Thanks, Mohan ___ aspectj-use

Re: [aspectj-users] Annotation ITD

2015-07-07 Thread Mohan Radhakrishnan
l 7, 2015 at 9:51 PM, Andy Clement wrote: > Not quite sure which bit of syntax you are after, but if you are trying to > find the annotation style equivalent of "declare @method", I’m afraid there > isn’t one. It hasn’t been implemented yet. > > cheers, > Andy >

Re: [aspectj-users] Annotation ITD

2015-07-07 Thread Mohan Radhakrishnan
t it (se e 'com.hrg.logger.aspect.InterType') The AspectJ dependency is this org.aspectj aspectjrt 1.8.5 org.aspectj aspectjtools 1.8.5 Thanks, Mohan On Wed, Jul 8, 2015 at 11:27 AM,

Re: [aspectj-users] Annotation ITD

2015-07-09 Thread Mohan Radhakrishnan
org.aspectj aspectjtools 1.8.6 Thanks, Mohan On Wed, Jul 8, 2015 at 12:16 PM, Mohan Radhakrishnan < radhakrishnan.mo...@gmail.com> wrote: > Hi, > > I see this warning when I use this code. > > @Aspect > public class InterType { &

Re: [aspectj-users] Annotation ITD

2015-07-09 Thread Mohan Radhakrishnan
t; On Jul 9, 2015, at 12:37 AM, Mohan Radhakrishnan < > radhakrishnan.mo...@gmail.com> wrote: > > I don't see the @DeclareAnnotation warning with this pom.xml > > But now I am debugging this field pointcut expressions. Is this correct ? > > @Aspect >

[aspectj-users] UnsupportedPointcutPrimitiveException

2016-09-19 Thread Mohan Radhakrishnan
Hi, This should be supported. Isn't it. I use Spring Tool Suite and @EnableAspectJAutoProxy Thanks, Mohan @Pointcut("execution(* com.pearson.nextgen.enterprise.service.CourseService. getCoursesByInstitutionId(String)) && if()") public static boolean courseSearch() { return Bo

Re: [aspectj-users] UnsupportedPointcutPrimitiveException

2016-09-20 Thread Mohan Radhakrishnan
not on the list I’m > afraid. > > Could be worth asking on stack overflow about how to achieve what you want > in Spring AOP. > > cheers, > Andy > > On Sep 19, 2016, at 6:42 AM, Mohan Radhakrishnan < > radhakrishnan.mo...@gmail.com> wrote: > > Hi, >