[aspectj-users] LTW for bootstap classes

2007-02-03 Thread Alexander Kriegisch
regular Java class, so it can work with that instance. - Last, but not least, I would like to do this from Eclipse 3.2 with AJDT installed. I could not come up with a project and start configuration properly addressing this issue. Regards -- Alexander Kriegisch

Re: [aspectj-users] Creating a jar file

2007-02-08 Thread Alexander Kriegisch
If it uses AspectJ, it *does* need the aspectjrt.jar. Yes, and by the way, Marcos: the 'rt' in 'aspectjrt' means 'runtime', becaute the library is needed - you may have guessed already - at runtime. ;-) I'm trying to create a jar file from two projects, one java project and one aspectj

Re: [aspectj-users] Is this possible with AspectJ (or AOP in general)?

2007-02-10 Thread Alexander Kriegisch
' pointcuts might be what you are looking for, others might be helpful as well, depending on what you are trying to do and to intercept (calls, executions, initialisations, exceptions, ...). -- Alexander Kriegisch ___ aspectj-users mailing list aspectj

Re: [aspectj-users] How to intercept proceed() in around() advice

2012-08-29 Thread Alexander Kriegisch
in the stackoverflow.com link [1] I posted in my original question here, I have solved the problem in a rather ugly way via an extended (parametrisable) version of Ramnivas Laddad's worker object pattern. But actually this is not what I want because it feels really inelegant. -- Alexander Kriegisch

Re: [aspectj-users] How to intercept proceed() in around() advice

2012-08-29 Thread Alexander Kriegisch
to Andy Clement: There is always a way to work around limitations, and I found one. But work-arounds are (at least for me) also always some kind of mental breakpoint to stop and think about possible alternatives which might not even exist yet, but be desireable. Regards -- Alexander Kriegisch

Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-08-30 Thread Alexander Kriegisch
. -- Alexander Kriegisch ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-08-30 Thread Alexander Kriegisch
, but *not* pass them through (i.e. catch them)? c) just avoid code duplication with try/catch blocks in your test cases? d) anything else? -- Alexander Kriegisch xianglong, 30.08.2012 11:46: could you help me to make a simple demo of my example ?(caseName is a method name of one testcase) I

Re: [aspectj-users] can anyone help me to take a look my exceptionhandler ?

2012-08-31 Thread Alexander Kriegisch
Like this? # some JUnit 4 tests # package de.scrum_master.aop.demo; import static org.junit.Assert.*; import org.junit.Test; public class MyTestCase { @Test public void testOne() { assertEquals(scrum-master.de, scrum- + master + .de); } @Test public void testTwo()

Re: [aspectj-users] WeavingAdapter - how to use it?

2012-09-03 Thread Alexander Kriegisch
? Sorry, this is my first time being so deep into the internal LTW process. -- Alexander Kriegisch Silviu Andrica wrote in 2009: Hello, I looked through AspectJ's Load Time Weaver and I combined it with your code suggestion. This is what I got out import

Re: [aspectj-users] Post-compile time weaving: howto

2012-09-11 Thread Alexander Kriegisch
classloader and load a class with the same package and class name in an isolated container, but that is another story. -- Alexander Kriegisch Am 11.09.2012 um 08:51 schrieb Valerian Galeru v.gal...@interconcept.de: What about class name conflict: how decides JVM which class to take (it will be one

Re: [aspectj-users] Trait syntax sugar?

2012-10-05 Thread Alexander Kriegisch
Cool idea. I would be guessing this might not be the highest priority in AspectJ development, considering other parts of AspectJ and especially AJDT that need attention, but still if you ask WDYT: cool. ;-) -- Alexander Kriegisch Am 05.10.2012 um 16:56 schrieb Matthew Adams matt

Re: [aspectj-users] Modifying parameters in more than one aspect providing around advice

2012-10-26 Thread Alexander Kriegisch
(), which is wrong. In order to pass arguments to proceed() you need to refer to them via args(), which I have demonstrated above. Please note the syntax for retrieving the first vs. second String argument in the two aspects. This should solve your problem. -- Alexander Kriegisch Certified Scrum

Re: [aspectj-users] context information in aspect fields

2012-11-06 Thread Alexander Kriegisch
As an alternative if you do not lile the Map idea, you might want to use a non-singleton instantiation model like perthis or pertarget in combination with a normal (non-static) member variable for the Timer. Alexander Kriegisch http://scrum-master.de Am 06.11.2012 um 11:31 schrieb Romain

Re: [aspectj-users] Passing state between around advise

2012-11-23 Thread Alexander Kriegisch
code right now, but maybe you knkw where to go from here by reading documentation or googling. :-) -- Alexander Kriegisch Am 23.11.2012 um 11:10 schrieb Brian Toal brian.t...@gmail.com: I want to share contextual information between Around advice invocations for the same thread. For example

Re: [aspectj-users] Passing state between around advise

2012-11-23 Thread Alexander Kriegisch
Speculation. Just give it a try. There are other workarounds, but clean code is also something IMHO. ;) Alexander Kriegisch Am 23.11.2012 um 17:11 schrieb Brian Toal brian.t...@gmail.com: My concern with thread local is the cost of gets and puts. I'm not sure If the per* solution will help

Re: [aspectj-users] Passing state between around advise

2012-11-23 Thread Alexander Kriegisch
in my tracing classes. 2) Just give thisEnclosingJoinPointStaticPart a try. Might be just right for your special case. Alexander Kriegisch Am 23.11.2012 um 18:51 schrieb Brian Toal brian.t...@gmail.com: In my case I'm willing to trade off clean code for performance. Can you elaborate

Re: [aspectj-users] Passing state between around advise

2012-11-23 Thread Alexander Kriegisch
actually be fun to try and measure the respective effects. ;-) Alexander Kriegisch Am 23.11.2012 um 20:47 schrieb Brian Toal brian.t...@gmail.com: Thanks Alexander, The benchmarks I've seen show thread local get/put take ~30ns per call. To be fair I need to validate this my self

Re: [aspectj-users] Passing state between around advise

2012-11-23 Thread Alexander Kriegisch
. ;-) Alexander Kriegisch Am 23.11.2012 um 17:11 schrieb Brian Toal brian.t...@gmail.com: My concern with thread local is the cost of gets and puts. I'm not sure If the per* solution will help as it would create a lot of garbage if aspect instances are generated at a high frequency. On Friday

Re: [aspectj-users] LTW: Weaving a class that extends an Abstract Class

2012-12-07 Thread Alexander Kriegisch
And if you want to detect myMethod() on A and all its subclasses, overridden or not, use this: execution(* mypackage.A+.myMethod()) -- Alexander Kriegisch Am 07.12.2012 um 22:48 schrieb Andy Clement andrew.clem...@gmail.com: Yep that is normal behaviour. The joinpoint for the method is only

Re: [aspectj-users] Selecting arithmetic operation join points. Is it possible?

2013-01-07 Thread Alexander Kriegisch
, it is not possible. 2. Would this be possible to implement? How? Effort? 3. Is something like this planned for future AspectJ versions? I cannot speak for the developers, but I do not think you will ever see this feature in AspectJ. Regards -- Alexander Kriegisch http://scrum-master.de

Re: [aspectj-users] Selecting arithmetic operation join points. Is it possible?

2013-01-07 Thread Alexander Kriegisch
in so e rare and special cases, I just think it is way to fine-granular for AOP purposes. I think your example is rather academic than useful in daily work. Alexander Kriegisch Am 07.01.2013 um 10:34 schrieb M. P. free...@abv.bg: For example I'd like to be able to select integer subtraction

Re: [aspectj-users] Selecting arithmetic operation join points. Is it possible?

2013-01-07 Thread Alexander Kriegisch
Maybe you should have a look into other bytecode instrumentation frameworks such as BCEL, if you need to work on such a low level of granularity. The effort should be justifiedmfor you if you do have a real world use case and cannot solve it in another way. Good luck! Alexander Kriegisch Am

Re: [aspectj-users] perthis/pertarget taking into consideration the equals method

2013-01-17 Thread Alexander Kriegisch
the Map approach to keep track of object instantiation and verify that object life cycles are actually as you expect them to be. The other way around might also work: use perthis/pertarget for each instance, but a global map to track the status of equal instances. Alexander Kriegisch Am

Re: [aspectj-users] using static fields in an advice

2013-02-12 Thread Alexander Kriegisch
logging from within aspects and some in your core code, both using the same Logger instance? And is your logger identified by something else than the class name? Alexander Kriegisch Am 12.02.2013 um 16:11 schrieb Kempff, Malte malte.kem...@de.equens.com: Hi to all, I am pretty new to AspectJ

Re: [aspectj-users] using static fields in an advice

2013-02-12 Thread Alexander Kriegisch
As Matthew said, you could use reflection, but the factory method Logger.getLogger is probably faster and will return the very same Logger instance as the one stored in your static field. As for the AspectJ runtime, you need it at runtime, thus the name. Alexander Kriegisch all I would like

Re: [aspectj-users] Adding a new buddy field for EVERY existing field in a class ?!

2013-03-09 Thread Alexander Kriegisch
private philosophy or wisdom. Still it it my opinion. Alexander Kriegisch ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] Advice on Advice

2013-03-12 Thread Alexander Kriegisch
Would you mind providing some minimal sample code to reproduce the situation? It is always a good idea to provide the code you ask others to help you fix. ;-) Alexander Kriegisch Am 12.03.2013 um 00:23 schrieb Jaco le Roux jabal...@gmail.com: Hi, I have an Advice class that declares

Re: [aspectj-users] Advice on Advice

2013-03-12 Thread Alexander Kriegisch
actually compile and run? Alexander Kriegisch Am 12.03.2013 um 11:34 schrieb Jaco le Roux jabal...@gmail.com: Apologies. It was 1:30am and I think my brain turned to jelly after a long day of doing computery things :) Here is a sample aspect I am building: @Aspect @Configurable public

Re: [aspectj-users] Advice on Advice

2013-03-12 Thread Alexander Kriegisch
there is something obvious I missed, with respect to logging or advice, something I don't understand. Thank you for the help nonetheless. I will get back to you with a more concrete example. On Tue, Mar 12, 2013 at 1:03 PM, Alexander Kriegisch alexan...@kriegisch.name wrote: LOL, now you are asking us

Re: [aspectj-users] @DeclareMixin with inner class - Syntax ?

2013-04-02 Thread Alexander Kriegisch
) com.nested.my.concurrent..* is(InnerType) cheers, Andy On 2 April 2013 07:51, Alexander Kriegisch alexan...@kriegisch.name wrote: com.nested.my.concurrent.* No, this does neither capture inner classes nor classes in subpackages. You can capture both

Re: [aspectj-users] @DeclareMixin with inner class - Syntax ?

2013-04-02 Thread Alexander Kriegisch
Sorry, it has gotten late here... I totally overlooked the is(InnerType) part. Mea culpa. Reminder to myself: read more carefully, then answer. And maybe get some sleep. Alexander Kriegisch Am 02.04.2013 um 19:35 schrieb Alexander Kriegisch alexan...@kriegisch.name: True

Re: [aspectj-users] @DeclareMixin with inner class - Syntax ?

2013-04-02 Thread Alexander Kriegisch
(iPad only here on the road). @Andy: I guess it would be nice to include is() into the AJ documentation beyond 1.6.9 release notes, e.g. developer tutorial or cheat sheets like http://www.eclipse.org/aspectj/doc/released/quick5.pdf. Alexander Kriegisch Am 02.04.2013 um 20:00 schrieb Jean

Re: [aspectj-users] Runtime weaving without agent

2013-04-05 Thread Alexander Kriegisch
() + '); } -- Alexander Kriegisch http://scrum-master.de - Original Message - From: chatell...@codelutin.com To: aspectj-users@eclipse.org Date: 05.04.2013 10:40:08 Subject: [aspectj-users] Runtime weaving without agent Hi, I'm maintaining a project that is still using unmaintained

Re: [aspectj-users] Matching on one of an annotation's values in a multivalued property?

2013-04-05 Thread Alexander Kriegisch
Is it just me on my mobile device missing the actual code samples? Am 05.04.2013 um 17:18 schrieb Matthew Adams matt...@matthewadams.me: /NB: contrived example; pay attention to form, not substance here, please./ Consider this annotation: Consider this annotated class: How do I

Re: [aspectj-users] Matching on one of an annotation's values in a multivalued property?

2013-04-05 Thread Alexander Kriegisch
My spontaneous impulse upon reading the sugared variant was to dislike it more than the other one which at least bears schematic similarity to known method parameter matching patterns. Alexander Kriegisch Am 05.04.2013 um 21:53 schrieb Andy Clement andrew.clem...@gmail.com: As we kind

Re: [aspectj-users] Runtime weaving without agent

2013-04-08 Thread Alexander Kriegisch
How about compile-time weaving aspects and (de-)activating them using if() pointcuts? Try not to overcomplicate your setup, keep it simple. Alexander Kriegisch Am 08.04.2013 um 17:45 schrieb Eric Chatellier chatell...@codelutin.com: Le 05/04/2013 11:15, Alexander Kriegisch a écrit : Check

Re: [aspectj-users] Runtime weaving without agent

2013-04-12 Thread Alexander Kriegisch
if this is what you need or want. It was just a suggestion. Alexander Kriegisch Am 12.04.2013 um 10:57 schrieb Eric Chatellier chatell...@codelutin.com: Le 08/04/2013 19:31, Alexander Kriegisch a écrit : How about compile-time weaving aspects and (de-)activating them using if() pointcuts? Try

Re: [aspectj-users] LTW: Are there any posibilities to avoid using ajc and overcome NoSuchMethodError

2013-04-16 Thread Alexander Kriegisch
Theoretically you can use ajc from aspectjtools.jar and compile on the fly, even thought this does not sound so nice. See my answer at http://stackoverflow.com/a/15837624/1082681 for a code sample. Alexander Kriegisch Am 16.04.2013 um 14:16 schrieb Ron DiFrango rdifra...@captechconsulting.com

Re: [aspectj-users] Need a receipt / design pattern for enable/disable weaving for logging when using @Aspect style

2013-04-16 Thread Alexander Kriegisch
to influence the start parameters of the target platform. Now it is your choice. After having chosen, the recipe comes next. There is no one size fits all, you have options. Alexander Kriegisch Am 16.04.2013 um 15:09 schrieb Jean Andre jean.an...@intact.net: Good morning, I've dig

Re: [aspectj-users] MethodPattern - matching an annotated return value type

2013-05-06 Thread Alexander Kriegisch
you want to try execution( (@ImmutableCollection (*)) *(..) ) If I am wrong probably Andy Clement or Andrew Eisenberg will correct me anyway. :-) Regards Alexander Kriegisch Am 06.05.2013 um 19:32 schrieb Jay Roberts puda...@gmail.com: I have a simple test case that isn't working

Re: [aspectj-users] around advice for constructor call

2013-06-04 Thread Alexander Kriegisch
The error message says it: You are intercepting a call which does not return void (but ClassA). Consequently, your around advice should also return ClassA. Alexander Kriegisch Am 04.06.2013 um 11:33 schrieb Sojan Mathew sojanmat...@gmail.com: Hi AspectJ Community Members, I'm using AOP

Re: [aspectj-users] Fw: aspectj capturing currently executing object

2013-07-03 Thread Alexander Kriegisch
() instead of creating arrays and iterating over them if just your pointcuts were a bit smarter or more precise. Bottom line: AspectJ is for adding cross-cutting behaviour to your application. What kind of behaviour do you want? Kind regards -- Alexander Kriegisch http://scrum-master.de Am 03.07.2013

Re: [aspectj-users] Development build updates

2013-07-11 Thread Alexander Kriegisch
/ It was much easier than I thought. There is a little how-to at http://git.eclipse.org/c/aspectj/org.aspectj.git/plain/build/readme-build-and-test-aspectj.html - enjoy! -- Alexander Kriegisch http://scrum-master.de - Original Message - From: kurt.peterschm...@pearson.com To: aspectj

Re: [aspectj-users] Behaviours of new constructor added by AspectJ ITD

2013-07-15 Thread Alexander Kriegisch
Hello. With all due respect: Ramnivas has answered the question before on SO quite patiently. So as not to waste any more of his precious time I recommend you to - read his answer, - think again, especially about Q1 and - learn some basic Java. Sorry if it sounds rude, but you seem not to

Re: [aspectj-users] Invoking proceed() from an inner class

2013-07-17 Thread Alexander Kriegisch
ProceedingJoinPoint is only necessary with @AspectJ syntax, not with native syntax. Alexander Kriegisch Am 17.07.2013 um 17:29 schrieb Archie Cobbs arc...@dellroad.org: Thank you both for the very helpful suggestions. It appears that the following simple pattern works

Re: [aspectj-users] Identifying join points with generics with @AspectJ style

2013-08-11 Thread Alexander Kriegisch
Invalid absolute type name kind of says it all. Try java.util.ArrayList instead. Alexander Kriegisch http://scrum-master.de Am 12.08.2013 um 01:11 schrieb ujuarez ujuare...@gmail.com: Hi guys, I’m getting the message “no match for this type name: ArrayList [Xlint:invalidAbsoluteTypeName

Re: [aspectj-users] Ability to exclude class loader from creating weavers for

2013-08-11 Thread Alexander Kriegisch
-Daj.weaving.loadersToSkip=org.apache.felix.framework.ModuleImpl\$ModuleClassLoader,org.springframework.osgi.util.BundleDelegatingClassLoader Have you really done that? Alexander Kriegisch http://scrum-master.de Am 12.08.2013 um 05:15 schrieb Eric Benzacar e...@benzacar.ca: export CATALINA_OPTS

Re: [aspectj-users] Precise Meaning of Object Identifier in Laddas' book ?

2013-08-31 Thread Alexander Kriegisch
What Laddad calls an object identifier is just the variable name a context object is bound to in a pointcut via args(), this() or target(). -- Alexander Kriegisch http://scrum-master.de Am 31.08.2013 um 14:43 schrieb Jozsef Hegedus jhegedu...@gmail.com: Dear List members, Laddas' is using

Re: [aspectj-users] Dealing with wrapped classes

2013-11-07 Thread Alexander Kriegisch
trouble. -- Alexander Kriegisch Am 07.11.2013 um 21:56 schrieb Jonathan Mace jcm...@cs.brown.edu: Thanks for your response Andy. Consider the following alternative approach to 'marking' the instances I'm interested in. I maintain a WeakHashSetFilterInputStream to reference all input

Re: [aspectj-users] Dealing with wrapped classes

2013-11-07 Thread Alexander Kriegisch
rt.jar. -- Alexander Kriegisch Am 07.11.2013 um 23:22 schrieb Alexander Kriegisch alexan...@kriegisch.name: Your intention is to profile low level calls. Whether you like it or not, I think weaving rt.jar is the best choice because it does not have as much overhead as the solutions you

Re: [aspectj-users] Dealing with wrapped classes

2013-11-08 Thread Alexander Kriegisch
finally publish it sometime during the weekend. In today's light I would have tried to mavenise the approach than describe how to do it manually. But I guess it might be helpful even so. -- Alexander Kriegisch Am 07.11.2013 um 23:58 schrieb Jonathan Mace jcm...@cs.brown.edu: Thanks

Re: [aspectj-users] Dealing with wrapped classes

2013-11-08 Thread Alexander Kriegisch
Oh, I just read this message after answering the previous one. Only to produce output for woven files sounds like a smart idea. I would love to see that as a feature. -- Alexander Kriegisch Am 08.11.2013 um 01:53 schrieb Andy Clement andrew.clem...@gmail.com: Before I previously responded

Re: [aspectj-users] pointcut to match return statements

2014-01-06 Thread Alexander Kriegisch
packages or classes or if you want to match boolean methods returning false, int methods returning 0 etc. -- Alexander Kriegisch Sean Patrick Floyd schrieb am 06.01.2014 14:53: Hi, is there any way for me to match return null statements statically? I would like to create a policy enforcement

Re: [aspectj-users] pointcut to match return statements

2014-01-06 Thread Alexander Kriegisch
using a byte code analyser, I recommend Findbugs. -- Alexander Kriegisch Am 06.01.2014 um 15:50 schrieb Sean Patrick Floyd seanpfl...@googlemail.com: On 06.01.2014 15:26, Alexander Kriegisch wrote: You can neither match return null nor assignments to local variables, only assignments

Re: [aspectj-users] Reg:AspectJ joinpoint specification

2014-01-07 Thread Alexander Kriegisch
One '*' too many. Furthermore, I guess 'connection' is a variable. A valid method signature should contain a class name, though. -- Alexander Kriegisch Am 07.01.2014 um 07:53 schrieb Shanmuga Priya R shanmugapriya1...@cse.ssn.edu.in: Hi, I created web services using java

Re: [aspectj-users] Catch exception with aspectj

2014-01-10 Thread Alexander Kriegisch
Hi Krishna. You mean catch, not cache. What you can do is intercept the method which is actually throwing the exception if it is accessible/weavable for you. I.e. if that joinpoint is in an external library, you need to weave the library. If it is in the JRE, you need to weave the JRE. That

Re: [aspectj-users] Catch exception with aspectj

2014-01-10 Thread Alexander Kriegisch
option -Xbootclasspath/p:path/to/my_rt.jar Think twice before doing that, is my advice. -- Alexander Kriegisch http://scrum-master.de Am 10.01.2014 um 10:01 schrieb Krishna Jasty krishna.ja...@tcs.com: Hi, Yes Catch, i did the correction in below code snippet. Yes i want to weave

Re: [aspectj-users] Testing an Aspect Class

2014-02-06 Thread Alexander Kriegisch
nice. KISS! Keep it really simple. ;-) -- Alexander Kriegisch Am 06.02.2014 um 17:59 schrieb Muhammad Adinata mail.die...@gmail.com: Hello! Thanks for very fast response. Alexander, I'm currently trying to generate an aspect based from annotation information in java source code

Re: [aspectj-users] Testing an Aspect Class

2014-02-06 Thread Alexander Kriegisch
strongly support. Unit tests and more integrarive tests are not mutually exclusive, both of them are needed and - pun intended - just different aspects of testing. Having said that, I am failing to see a contradiction between my suggestion and yours, dear Félix. -- Alexander Kriegisch Am

Re: [aspectj-users] Testing an Aspect Class

2014-02-06 Thread Alexander Kriegisch
Am 06.02.2014 um 23:02 schrieb Félix-Antoine Bourbonnais fbourbonn...@rubico.info: Having said that, I am failing to see a contradiction between my suggestion and yours, dear Félix. There is none... I was just exposing my thoughts and the alternatives. :) Sorry if my comment was

Re: [aspectj-users] Compiling java-7 code with jdk-8

2014-05-14 Thread Alexander Kriegisch
though, so if you want to stay there I cannot help. -- Alexander Kriegisch http://scrum-master.de Am 14.05.2014 um 16:47 schrieb Andy Clement andrew.clem...@gmail.com: The build process really ought to be cleaned, though... Couldn't agree more - and the whole build should be automated

[aspectj-users] Bug 435446 - ClassFormatError when targetting nested forEach lambda expressions

2014-05-22 Thread Alexander Kriegisch
Hello, I hope it is not against this group's etiquette to link to a new Bugzilla ticket: https://bugs.eclipse.org/bugs/show_bug.cgi?id=435446 If anybody can comment on the problem here or on Bugzilla, thanks in advance. -- Alexander Kriegisch http://scrum-master.de smime.p7s Description: S

[aspectj-users] How to resolve real execution signature for call joinpoint

2014-05-22 Thread Alexander Kriegisch
). ;-) -- Alexander Kriegisch http://scrum-master.de smime.p7s Description: S/MIME Cryptographic Signature ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: [aspectj-users] How to resolve real execution signature for call joinpoint

2014-05-22 Thread Alexander Kriegisch
: pointcut jdkType() : if(thisJoinPointStaticPart.getSignature().getDeclaringTypeName().startsWith(java.)); But for the reasons I mentioned on StackOverflow this does not (and cannot) work reliably for two out of four cases. Thank you anyway :-) -- Alexander Kriegisch http://scrum-master.de Andy

Re: [aspectj-users] How to resolve real execution signature for call joinpoint

2014-05-22 Thread Alexander Kriegisch
An afterthought: As for Signature.getDeclaringTypeName(), the acceptance criteria do not seem to involve Am 23.05.2014 um 00:55 schrieb Alexander Kriegisch alexan...@kriegisch.name: Okay, so you had the same thoughts ('if' pointcut and stacktrace check) as I and also the same results

Re: [aspectj-users] How to resolve real execution signature for call joinpoint

2014-05-22 Thread Alexander Kriegisch
to enhance that method, add a toggle or similarly named method for dynamic resolution? Alexander Kriegisch schrieb am 23.05.2014 00:55: Okay, so you had the same thoughts ('if' pointcut and stacktrace check) as I and also the same results. We would need something like a sneek peek towards method

Re: [aspectj-users] How to resolve real execution signature for call joinpoint

2014-05-26 Thread Alexander Kriegisch
Actually and unfortunately, contrary to your assumption Signature.getDeclaringType() does not yield the same type as thisJoinPoint.getTarget().getClass(). That isn't exactly what I was saying. I was saying this new method you wanted to add, how would its return value differ from

Re: [aspectj-users] Runtime performance against different weaving options

2014-06-04 Thread Alexander Kriegisch
which involves Java Dynamic Proxies and/or CGLIB proxies. Regards -- Alexander Kriegisch http://scrum-master.de 马leon schrieb am 04.06.2014 11:10: I know there're 3 ways to weaving: compile-time, post compile time and load-time I'd like to know is there any performance comparison

Re: [aspectj-users] Pointcut to a Collection.add() method on a particular type of argument?

2014-07-17 Thread Alexander Kriegisch
I think this is not possible. But maybe Andy Clement knows better. It would not be the first time he surprised me. Meanwhile, check out my workaround at http://stackoverflow.com/a/24797868/1082681. -- Alexander Kriegisch http://scrum-master.de Eric B schrieb am 17.07.2014 07:12: Thanks

Re: [aspectj-users] How to advise setters in JPA entities using AOP?

2014-07-19 Thread Alexander Kriegisch
ugly, but it was fun to develop. Hopefully someone else can come up with something better. -- Alexander Kriegisch http://scrum-master.de Eric B schrieb am 16.07.2014 18:51: I've posted this question on StackOverflow (http://stackoverflow.com/q/24786391/827480 http://stackoverflow.com/q

Re: [aspectj-users] Extend type patterns by qualifiers like public, interface etc.

2014-08-28 Thread Alexander Kriegisch
to work nicely AFAIK. I even found and answered a related question on StackOverflow, not without giving you credit for pointing me to the solution: http://stackoverflow.com/a/25543865/1082681 Best regards -- Alexander Kriegisch http://scrum-master.de Andy Clement schrieb am 28.08.2014 00:38: I

Re: [aspectj-users] Strange compiler crash (AspectJ 1.8/Maven plugin 1.7)

2014-09-17 Thread Alexander Kriegisch
quick hints/questions to get us started. -- Alexander Kriegisch http://scrum-master.de Am 17.09.2014 um 14:02 schrieb ajUnit ajunit.cont...@fail-early.com: Hello, I've got a strange compiler crash (using aspectj maven plugin). After correcting an mistake (no compiler has been prodcued

Re: [aspectj-users] Strange compiler crash (AspectJ 1.8/Maven plugin 1.7)

2014-09-17 Thread Alexander Kriegisch
problem) or even the Java version (downgraded quick dirty to Java 1.7 incl. a few source code changes). The ajc core dump always occurs. Alexander Kriegisch schrieb am 17.09.2014 14:24: I have not cloned the repo yet (I have no access to a PC now), but have a question: You seem

Re: [aspectj-users] Strange compiler crash (AspectJ 1.8/Maven plugin 1.7)

2014-09-17 Thread Alexander Kriegisch
. It seems that only the before aspect has no problem at all. thx for your support, anyway. Marko Am 17.09.2014 um 15:08 schrieb Alexander Kriegisch alexan...@kriegisch.name: Okay, I tried via remote access from my tablet and cloned the repo. I guess you have uncovered

Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Alexander Kriegisch
Yes, the default compliance level is 1.4 according to http://mojo.codehaus.org/aspectj-maven-plugin/compile-mojo.html#complianceLevel, even in the current plugin version 1.7 (you still use 1.5, I recommend an update there as well, not just in the AspectJ runtime). -- Alexander Kriegisch http

Re: [aspectj-users] Stackmap frame errors when building the aspectj project with Java 1.7

2014-10-14 Thread Alexander Kriegisch
I forgot to mention that AspectJ Maven Plugin 1.7 automatically uses aspectjtools 1.8.2 by default, see http://mojo.codehaus.org/aspectj-maven-plugin/dependencies.html Am 14.10.2014 um 23:19 schrieb Alexander Kriegisch alexan...@kriegisch.name: Yes, the default compliance level is 1.4

[aspectj-users] Compile ITD aspect separately from class to be enhanced?

2014-10-23 Thread Alexander Kriegisch
such a feature in the future? -- Alexander Kriegisch http://scrum-master.de ___ aspectj-users mailing list aspectj-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo

Re: [aspectj-users] Compile ITD aspect separately from class to be enhanced?

2014-10-27 Thread Alexander Kriegisch
the mocks' existence within the compiler would be the magic solution for me - you would have all the work, I would have none ;-) - but I guess that this is too esoteric for me to ever expect you to take time to implement it. Thanks for your thoughts and great ideas. -- Alexander Kriegisch

Re: [aspectj-users] Compile ITD aspect separately from class to be enhanced?

2015-01-02 Thread Alexander Kriegisch
/SO_AJ_MavenMultiModule Andy, I would appreciate your feedback. Maybe you have ideas about how to make it even simpler or more elegant. Cheers -- Alexander Kriegisch http://scrum-master.de Alexander Kriegisch schrieb am 27.10.2014 09:14: I finally got around to trying the ITD/interfac/decp

Re: [aspectj-users] Jboss 7 LTW, mixed LTW CTW aspects in the application

2015-02-19 Thread Alexander Kriegisch
overweening You made my day. I am so tired, but this was funny. :))) ___ aspectj-users mailing list aspectj-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Re: [aspectj-users] Bug Collection + declare parents?

2015-03-04 Thread Alexander Kriegisch
to actually switch on my home office PC (which can be days from now). My hint is just quick and first-aidish. Regards -- Alexander Kriegisch http://scrum-master.de Am 04.03.2015 um 17:05 schrieb Savoja Luca luca.sav...@studenti.unimi.it: Hello everyone, I found a situation where i get

Re: [aspectj-users] Bug Collection + declare parents?

2015-03-05 Thread Alexander Kriegisch
for each method declared by the interface. -- Alexander Kriegisch http://scrum-master.de Am 05.03.2015 um 11:33 schrieb Savoja Luca luca.sav...@studenti.unimi.it: Hi and thanks for the reply, Well I think that adding an interface with declare parents and not specifying an implementation

Re: [aspectj-users] org/aspectj/aspectjrt/1.8.3/aspectjrt-1.8.3.jar expected 1.8.2

2015-02-23 Thread Alexander Kriegisch
to override the plugin dependency to aspectjtools with version 1.8.3 and see if solves the problem. An example for overriding the plugin dependency can be found here: https://github.com/kriegaex/SO_AJ_MavenMultiModule/blob/master/pom.xml#L54 -- Alexander Kriegisch http://scrum-master.de Am

Re: [aspectj-users] ajc 1.6.6 - 1.6.7+ behavior changes ?

2015-04-11 Thread Alexander Kriegisch
Romain, I was just curious, it is not necessary to dig deeper. It was just an idea, I did not expect it to work anyway. Compilation errors exist for a reason. ;-) -- Alexander Kriegisch http://scrum-master.de Romain Primet schrieb am 11.04.2015 15:03: Le 11/04/2015 14:47, Alexander

Re: [aspectj-users] ajc 1.6.6 - 1.6.7+ behavior changes ?

2015-04-11 Thread Alexander Kriegisch
which rely on each other's methods being present. It does not show any errors during compilation from either Eclipse or command line though. So probably you need to analyse the real project. To me it definitely looks like a bug. Regards -- Alexander Kriegisch http://scrum-master.de Andy

Re: [aspectj-users] ajc 1.6.6 - 1.6.7+ behavior changes ?

2015-04-12 Thread Alexander Kriegisch
in a simple project, but have failed to do so. Do you have a test case for it? Well, probably I should just look at your Git repo and check the latest commits (if you have pushed them already). Regards -- Alexander Kriegisch Schillerplatz 6, 91315 Höchstadt, Germany Tel +49 (9193) 52 76, Mob +49 (176

Re: [aspectj-users] Problems with test aspects in Eclipse

2015-06-21 Thread Alexander Kriegisch
Hi Eric. Please find my answer at http://stackoverflow.com/a/30954233/1082681. Basically I have added a default M2E lifecycle mapping for AspectJ Maven Plugin and now it works. Enjoy -- Alexander Kriegisch http://scrum-master.de Eric B schrieb am 20.06.2015 21:43: Hi Alexander

Re: [aspectj-users] Mockito's spy does not work along with AspectJ using maven

2015-06-20 Thread Alexander Kriegisch
Hi Sina. I have answered about a week ago on StackOverflow, maybe you have not noticed: http://stackoverflow.com/a/30828293/1082681 Regards -- Alexander Kriegisch http://scrum-master.de Sina schrieb am 01.06.2015 20:13: Hi Andy, In fact my SampleImpl class is a stateless EJB which

Re: [aspectj-users] Help? Testing APT with AJC?

2015-06-25 Thread Alexander Kriegisch
I have one or two test cases somewhere, not for my own use but rather prepared to answer other people's questions. Maybe I can quickly run them during the weekend. Probably the coverage will be rather superficial though, especially with regard to Java 8 features. -- Alexander Kriegisch Am

[aspectj-users] Pointcut matching issue with lambdas

2015-06-28 Thread Alexander Kriegisch
snapshot based on Eclipse Mars. Regards -- Alexander Kriegisch http://scrum-master.de ___ aspectj-users mailing list aspectj-users@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https

Re: [aspectj-users] Pointcut matching issue with lambdas

2015-06-29 Thread Alexander Kriegisch
I do not know which post you are referring to, but I have just created this ticket: https://bugs.eclipse.org/bugs/show_bug.cgi?id=471347 Feel free to improve the description, I could only vaguely describe it in the subject. -- Alexander Kriegisch http://scrum-master.de Andy Clement schrieb

Re: [aspectj-users] AspectJ for non Spring beans

2015-08-26 Thread Alexander Kriegisch
defined value will be used. Maybe this helps. -- Alexander Kriegisch http://scrum-master.de Am 26.08.2015 um 13:29 schrieb Rallavagu rallav...@gmail.com: After making aop.xml available to classloader by copying it into WEB-INF/classes/META-INF it is picked up. However, none

Re: [aspectj-users] AspectJ for non Spring beans

2015-08-26 Thread Alexander Kriegisch
.. Includes sub-packages, while . does not. -- Alexander Kriegisch http://scrum-master.de Am 27.08.2015 um 05:10 schrieb Rallavagu rallav...@gmail.com: After a long debug session it turns out that the include config was incorrect. Changed include within=com.sample.* / to include

Re: [aspectj-users] Problem in my first aspectJ

2015-09-07 Thread Alexander Kriegisch
I am afraid you posted your Java class twice, but the aspect not at all. -- Alexander Kriegisch http://scrum-master.de > Am 07.09.2015 um 18:13 schrieb xeonmailinglist <xeonmailingl...@gmail.com>: > > Hi, > > I am developing my first AspectJ example, and I want to

Re: [aspectj-users] How to weave the method calls inside an war file?

2015-09-08 Thread Alexander Kriegisch
Yes, kind of. You do not want to trace all flows because it would be expensive, slow and a lot of information. Maybe your container also offers nice tracing options. You want to fine-tune your pointcuts so as to pick out just the stuff you are interested in. Good luck :-) -- Alexander

Re: [aspectj-users] How to weave the method calls inside an war file?

2015-09-08 Thread Alexander Kriegisch
in order to (de-)activate advice execution at will during runtime. Regards -- Alexander Kriegisch http://scrum-master.de > Am 08.09.2015 um 09:46 schrieb xeon Mailinglist <xeonmailingl...@gmail.com>: > > I forgot to mention that the mapreduce jar is in byte code. If the answer to

Re: [aspectj-users] AspectJ for non Spring beans

2015-08-25 Thread Alexander Kriegisch
Please read Spring manual, chapter 10.8, in order to learn how to use full AspectJ via load-time weaving from within Spring. LTW works for non-Spring classes as well because it does not rely on dynamic proxies as simple Spring AOP does. -- Alexander Kriegisch http://scrum-master.de Am

Re: [aspectj-users] After Advice and method result

2015-09-16 Thread Alexander Kriegisch
Yes, it is, so it is good enough for logging, copying etc. But if you want to modify the result before passing it on to the caller you need to use an 'around' advice. -- Alexander Kriegisch http://scrum-master.de > Am 16.09.2015 um 15:59 schrieb Rallavagu <rallav...@gmail.com>:

Re: [aspectj-users] Compiler removes java 8 method parameter names

2015-11-26 Thread Alexander Kriegisch
, only AspectJ Maven.   @Andy Clement: Please also read my comment there because the '-parameters' support in Ajc seems to be hard-coded. Is this intentional? Is it worth a bug ticket?   Regards -- Alexander Kriegisch http://scrum-master.de   Andrei Ivanov schrieb am 26.11.2015 11:46: Hi

Re: [aspectj-users] Hook Thread Creations

2016-07-20 Thread Alexander Kriegisch
classes, but probably you do not want to go that far. I have done that in the past just for the fun of it. -- Alexander Kriegisch https://scrum-master.de > Am 20.07.2016 um 05:42 schrieb ants <anto.aravinth@gmail.com>: > > Hi All, > > Is there a way to hook to thread

  1   2   3   >