[aspectj-users] AspectJ 1.9.22.1 maintenance release (Java 22)

2024-05-11 Thread Alexander Kriegisch via aspectj-users
Dear AspectJ users, we are pleased to announce AspectJ maintenance release 1.9.22.1. It still supports Java 22, just like 1.9.22. See the release notes (link below) for more details concerning bugfixes and enhancements. AJDT for Eclipse 4.31 (2024-03) were also refreshed to contain the new release.

Re: [aspectj-users] AspectJ versioning question

2024-05-01 Thread Alexander Kriegisch via aspectj-users
Here is the CVE I was talking about, just found it again. It was in 1.9.19: https://github.com/eclipse-aspectj/aspectj/issues/192 -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch via aspectj-users schrieb am 01.05.2024 um 10:46: > Yes, 1.8.14 was unusual. That was before

Re: [aspectj-users] AspectJ versioning question

2024-05-01 Thread Alexander Kriegisch via aspectj-users
beneficial even for legacy projects to recompile and use more recent AspectJ dependencies. It should be super easy to upgrade. Have you tried? -- Alexander Kriegisch https://scrum-master.de Mclachlan, Alan via aspectj-users schrieb am 30.04.2024 um 15:02: > Thanks for the quick response Alexan

Re: [aspectj-users] AspectJ versioning question

2024-04-30 Thread Alexander Kriegisch via aspectj-users
directly or aspectjtools.jar via Maven oder Gradle plugin, you would need Java 17, because the upstream Eclipse compiler requires it. Regards -- Alexander Kriegisch https://scrum-master.de Mclachlan, Alan via aspectj-users schrieb am 30.04.2024 um 13:13: > I read up on the supported Java versi

[aspectj-users] AJDT and E2M Connector updates for Eclipse 2024-03

2024-04-09 Thread Alexander Kriegisch via aspectj-users
Dear AspectJ users,there are updates for both AspectJ Development Tools (AJDT) and Eclipse-to-Maven (E2M) Connector for AJDT. Both of them now support Eclipse IDE 2024-03 (4.31). For AJDT, there was a version before, but it had a problem with Equinox OSGi weaving in Eclipse. So, if that is your use

Re: [aspectj-users] add instance members to a class

2024-03-29 Thread Alexander Kriegisch via aspectj-users
both at the same time. @Tim: By instance method he means non-static methods. It is a commonly used term. -- Alexander Kriegisch https://scrum-master.de n614cd--- via aspectj-users schrieb am 29.03.2024 16:12 (GMT +01:00): > I would instead use project Lombok annotations for the getter/set

Re: [aspectj-users] add instance members to a class

2024-03-29 Thread Alexander Kriegisch via aspectj-users
sort out the details. Cheers -- Alexander Kriegisch https://scrum-master.de Steve White via aspectj-users schrieb am 29.03.2024 15:47 (GMT +01:00): > Hi, > > I'm just learning about AspectJ. I haven't been able to determine if > I can apply it to my problem. > &g

[aspectj-users] Agent Embedder Maven Plugin and AspectJ load-time weaving

2024-03-24 Thread Alexander Kriegisch via aspectj-users
Hi AspectJ community!Over the years, it has been a FAQ, both on Stack Overflow and by people contacting me directly: I have an executable JAR (e.g. Spring Boot fat JAR), which I am starting with java -javaagent:/path/to/aspectjweaver.jar -jar my_app.jar Is there any way to add the AspectJ weaver an

[aspectj-users] AspectJ 1.9.22 release (Java 22)

2024-03-24 Thread Alexander Kriegisch via aspectj-users
Dear AspectJ users, we are pleased to announce AspectJ release. AspectJ 1.9.22 supports Java 22, its final and preview features, such as: JEP 456: Unnamed Variables & Patterns JEP 459: String Templates (Second Preview) JEP 463: Implicitly Declared Classes and Instance Main Methods (Second Previe

[aspectj-users] AspectJ 1.9.21.2 maintenance release

2024-03-13 Thread Alexander Kriegisch via aspectj-users
Dear AspectJ users, we are pleased to announce the AspectJ maintenance release 1.9.21.2 supporting Java 21. Please note that since 1.9.19, the minor-minor version indicates the corresponding latest Java release (byte code version) supported by the AspectJ compiler and weaver. I.e., 1.9.21.2 → Java

[aspectj-users] AspectJ 1.9.21.1 maintenance release

2024-02-13 Thread Alexander Kriegisch via aspectj-users
Dear AspectJ users, we are pleased to announce the AspectJ bugfix release 1.9.21.1 supporting Java 21. Please note that since 1.9.19, the minor-minor version indicates the corresponding latest Java release (byte code version) supported by the AspectJ compiler and weaver. I.e., 1.9.21.1 → Java 21.

Re: [aspectj-users] Hello world Agent with aspectjweaver

2024-01-17 Thread Alexander Kriegisch via aspectj-users
end time of the methods running on the JVM.I can do it with Aspectj using AOP technique.I want to do it for legacy applications running on JDK8.regards Alexander Kriegisch via aspectj-users <aspectj-users@eclipse.org>, 17 Oca 2024 Çar, 12:25 tarihinde şunu yazdı: This is not trivial. So

Re: [aspectj-users] Hello world Agent with aspectjweaver

2024-01-17 Thread Alexander Kriegisch via aspectj-users
This is not trivial. So please, provide a full reproducer project on GitHub including the target code to be woven, so I do not have to fill in the gaps here. What I noticed at first glance is, that class StartAgent to be and do multiple things at once: It is a java agent. It tries to inject anothe

[aspectj-users] AspectJ 1.9.21 with Java 21 support

2023-12-11 Thread Alexander Kriegisch via aspectj-users
Dear AspectJ users, we are pleased to announce the AspectJ bugfix release 1.9.21 supporting Java 21. Please note that since 1.9.19, the minor-minor version indicates the corresponding latest Java release (byte code version) supported by the AspectJ compiler and weaver. I.e., 1.9.21 → Java 21. Sorry

Re: [aspectj-users] About AspectJ

2023-10-08 Thread Alexander Kriegisch via aspectj-users
Alexander Kriegisch schrieb am 09.10.2023 12:49 (GMT +07:00): > Hi. > > Thanks for your question. The Baeldung page is just a quit entry-level I mean "quick", of course.

Re: [aspectj-users] About AspectJ

2023-10-08 Thread Alexander Kriegisch via aspectj-users
//livebook.manning.com/book/aspectj-in-action-second-edition/about-this-book/ It explains both AspectJ and some Spring specifics. But for Spring AOP (not native AspectJ!), the Spring Core manual is also a good starting point. Hope this helps. -- Alexander Kriegisch https://scrum-master.de Turr

[aspectj-users] AspectJ 1.9.20.1 bugfix release with Java 20 support

2023-09-03 Thread Alexander Kriegisch via aspectj-users
Dear AspectJ users, we are pleased to announce the AspectJ bugfix release 1.9.20.1 supporting Java 20. Please note that since 1.9.19, the minor-minor version indicates the corresponding latest Java release (byte code version) supported by the AspectJ compiler and weaver. I.e., 1.9.20.1 → Java 20. O

Re: [aspectj-users] AspectJ 1.9.20 with Java 20 support

2023-08-16 Thread Alexander Kriegisch via aspectj-users
The AJDT version for 2022-12+ now also is up to date and carries AspectJ 1.9.20 in its belly.   Cheers   Alexander Kriegisch (Xander) AspectJ team   Alexander Kriegisch schrieb am 17.08.2023 07:42 (GMT +07:00): Dear AspectJ users, we are pleased to announce the AspectJ bugfix release 1.9.20

[aspectj-users] AspectJ 1.9.20 with Java 20 support

2023-08-16 Thread Alexander Kriegisch via aspectj-users
Dear AspectJ users, we are pleased to announce the AspectJ bugfix release 1.9.20 supporting Java 20. Please note that since 1.9.19, the minor-minor version indicates the corresponding latest Java release (byte code version) supported by the AspectJ compiler and weaver. I.e., 1.9.20 → Java 20. Sorry

Re: [aspectj-users] meta-data problem with aspectj-maven-plugin

2023-08-10 Thread Alexander Kriegisch via aspectj-users
nning into my problems that I tried to work out with Andy 10yrs ago with Lombok, but that's a whole different topic to figure out.   In the meantime, I've managed to cobble together the necessary pieces for the team to work with.   Thanks! Eric   On Wed, Aug 9, 2023 at 8:44 PM Alexa

Re: [aspectj-users] meta-data problem with aspectj-maven-plugin

2023-08-09 Thread Alexander Kriegisch via aspectj-users
bottom of that. I cannot debug plain prose in that case. -- Alexander Kriegischhttps://scrum-master.de   Alexander Kriegisch via aspectj-users schrieb am 10.08.2023 07:27 (GMT +07:00): Welcome back to the AspectJ world, Eric. Next time, please post your code as formatted text, links to repositories or

Re: [aspectj-users] meta-data problem with aspectj-maven-plugin

2023-08-09 Thread Alexander Kriegisch via aspectj-users
Welcome back to the AspectJ world, Eric. Next time, please post your code as formatted text, links to repositories or attachments, rather than as a screenshot. Please also note that this question is about AspectJ Maven Plugin rather than AspectJ itself, which would make it better suited to Stack Ov

Re: [aspectj-users] AspectJ 1.9.19 with Java 19 support

2022-12-22 Thread Alexander Kriegisch
upgrading Java language support to JDK 19 level.   Alexander Kriegisch schrieb am 21.12.2022 17:33 (GMT +01:00): Dear AspectJ users, we are pleased to announce the AspectJ bugfix release 1.9.19 supporting Java 19. Please note that from now on, the minor-minor version will indicate the correspondi

[aspectj-users] AspectJ 1.9.19 with Java 19 support

2022-12-21 Thread Alexander Kriegisch
Dear AspectJ users, we are pleased to announce the AspectJ bugfix release 1.9.19 supporting Java 19. Please note that from now on, the minor-minor version will indicate the corresponding latest Java release (byte code version) supported by the AspectJ compiler and weaver. I.e., 1.9.19 → Java 19. So

Re: [aspectj-users] Passing instance of Aspect into a pointcut

2022-09-08 Thread Alexander Kriegisch
ect type ( e.g. isActive(FooAspect aspect)) - instance of the Aspect can be resolved.      Thanks, Alex   On Wed, Sep 7, 2022 at 8:44 AM Alexander Kriegisch <alexan...@kriegisch.name> wrote: Hi Alex. Your question is about Spring AOP rather than native AspectJ. Anyway, AFAIK you cannot

Re: [aspectj-users] Passing instance of Aspect into a pointcut

2022-09-07 Thread Alexander Kriegisch
Hi Alex. Your question is about Spring AOP rather than native AspectJ. Anyway, AFAIK you cannot inject a Spring bean into a static field, but of course you also cannot access an instance field from a static 'if()' method without some means to fetch a reference to the instance you wish to access. So

Re: [aspectj-users] call and execution pointcut problem

2022-06-15 Thread Alexander Kriegisch
Just make sure to configure the AspectJ compiler or load time weaver to also encompass your test class. You might want to find https://stackoverflow.com/a/66649082/1082681 or one of my other answers linked off of there helpful. -- Alexander Kriegisch https://scrum-master.de ___

Re: [aspectj-users] call and execution pointcut problem

2022-06-10 Thread Alexander Kriegisch
ven already. Without an MCVE [1] this is difficult to say. [1] https://stackoverflow.com/help/mcve -- Alexander Kriegisch https://scrum-master.de Mikael Petterson: > I have the following maven modules: > > 1.Aspects > > 2.Sim > > 3.Test > > Aspect looks like: &g

[aspectj-users] AspectJ 1.9.9.1 minor release with JPMS compilation fixes

2022-03-31 Thread Alexander Kriegisch
environment. See AspectJ GitHub issue #95 for more information and for an example project showing how to upgrade to the latest AspectJ version when using dev.aspectj:aspectj-maven-plugin:1.13.1. Enjoy AspectJ! The AspectJ team   Alexander Kriegisch schrieb am 25.03.2022 00:00 (GMT +07:00): we are pleased to

[aspectj-users] AspectJ 1.9.9 final release with Java 18 support

2022-03-24 Thread Alexander Kriegisch
Dear AspectJ users, we are pleased to announce AspectJ release 1.9.9 with Java 18 support. It is available on Maven Central already. The AspectJ installer can be found on Aspectj.dev. There is also an AJDT update site for Eclipse 4.23 (2022-03). For more detailes release information, please read t

Re: [aspectj-users] aspectjtools fail with NPE during maven build

2022-02-18 Thread Alexander Kriegisch
, since Java 9 it was successfully replicated right inside the JRE as JMS hell. Everyone is just busy trying to keep or make their applications and tools working despite JMS, even more so tools addressing cross-cutting concerns, such as AspectJ, Byte Buddy etc. -- Alexander Kriegisch https://scrum

Re: [aspectj-users] aspectjtools fail with NPE during maven build

2022-02-13 Thread Alexander Kriegisch
gh in theory there is always that possibility, of course. But let us analyse rather than guess and confuse the people looking for help here, shall we? [1] https://stackoverflow.com/help/mcve -- Alexander Kriegisch https://scrum-master.de Martin Gainty schrieb am 13.02.2022 21:41 (GMT +07:00): >

[aspectj-users] AspectJ 1.9.8 final release with Java 17 support

2022-02-10 Thread Alexander Kriegisch
to upgrade to the latest AspectJ version when using dev.aspectj:aspectj-maven-plugin:1.13.1. Enjoy AspectJ! The AspectJ team   Alexander Kriegisch schrieb am 26.11.2021 15:43 (GMT +07:00): Dear AspectJ users, we have just released 1.9.8.RC3. It is available on Maven Central already. It fixes an

[aspectj-users] AspectJ 1.9.8.RC3 with Java 17 support

2021-11-26 Thread Alexander Kriegisch
latest AspectJ version when using dev.aspectj:aspectj-maven-plugin:1.13.1. Enjoy AspectJ! The AspectJ team   Alexander Kriegisch schrieb am 14.11.2021 09:20 (GMT +01:00): a few days ago we released 1.9.8.RC2. It fixes an upstream Eclipse Compiler bug. See AspectJ GitHub issue #95 for more

[aspectj-users] AspectJ 1.9.8.RC2 with Java 17 support

2021-11-14 Thread Alexander Kriegisch
: Please test it in as many projects as possible. Your feedback is welcome. Enjoy AspectJ! -- The AspectJ team Alexander Kriegisch schrieb am 11.10.2021 12:10 (GMT +02:00): a couple of days ago we published the first release candidate for AspectJ 1.9.8 on Maven Central. If there are no blocker bugs

[aspectj-users] AspectJ Maven Plugin 1.13.1 by AspectJ.dev

2021-10-11 Thread Alexander Kriegisch
Dear AspectJ users,in sync with AspectJ 1.9.8.RC1 with Java 17 support, I have also released AspectJ Maven Plugin by AspectJ.dev in version 1.13.1. All important differences to the MojoHaus version are explained on the GitHub read-me page. As usual, you find the plugin on Maven Central. The most pr

[aspectj-users] AspectJ 1.9.8.RC1 with Java 17 support

2021-10-11 Thread Alexander Kriegisch
projects as possible. Your feedback is welcome. Enjoy AspectJ! --The AspectJ team   Alexander Kriegisch schrieb am 28.07.2021 15:47 (GMT +02:00): the AspectJ development team is pleased to announce that a few days ago we released version 1.9.8.M1, available on Maven Central. The new feature compared to

Re: [aspectj-users] An internal error occurred during: "Computing additional info". org/eclipse/jdt/internal/core/hierarchy/HierarchyResolver$AjcClosure1

2021-09-11 Thread Alexander Kriegisch
you, the Mojohaus version, and Maven import in Eclipse and IDEA is still working, you should have no reason to despair or even give up on AspectJ. Cheers -- Alexander Kriegisch https://scrum-master.de Mikael Petterson schrieb am 10.09.2021 14:30 (GMT +02:00): > > Hi Alexander, > >

[aspectj-users] AspectJ 1.9.8.M1 release and Java 17-EA developer version

2021-07-28 Thread Alexander Kriegisch
Dear AspectJ users, the AspectJ development team is pleased to announce that a few days ago we released version 1.9.8.M1, available on Maven Central. The new feature compared to 1.9.7 is that cross-compilation via --release N now works as expected, see GitHub issue #70. This was never tested before

[aspectj-users] AspectJ Maven Plugin (aspectj.dev fork) 1.13 released

2021-07-28 Thread Alexander Kriegisch
Dear AspectJ users,I have just released a new version of this plugin: dev.aspectj aspectj-maven-plugin 1.13 It is already available on Maven Central and has a few improvements compared to the MojoHaus version, such as a few additional options, easier configuration due to improved language leve

[aspectj-users] AspectJ 1.9.7.M3 is available

2021-05-28 Thread Alexander Kriegisch
regards -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch schrieb am 24.05.2021 11:38 (GMT +07:00): > AspectJ 1.9.7.M2 is available on Maven Central. > > It supports Java 15 and 16 language features, e.g. > -- records, > -- text blocks, > -- pattern match

[aspectj-users] AspectJ Maven Plugin 1.13.M3 is available

2021-05-28 Thread Alexander Kriegisch
Hello AspectJ users! In lock-step with AspectJ 1.9.7.M3, I also just release AspectJ Maven plugin 1.13.M3. It depends on the new AspectJ milestone, including its AJdoc bugfix for JDK 8. See my previous message on this mailing list. Kind regards -- Alexander Kriegisch https://scrum-master.de

[aspectj-users] AspectJ Maven Plugin 1.13.M3 is available

2021-05-28 Thread Alexander Kriegisch
Maven plugin and is a positive side effect of developing, testing and releasing them together. Kind regards -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch schrieb am 26.05.2021 13:38 (GMT +07:00): > Hello AspectJ users! > > AspectJ Maven Plugin 1.13.M2 is available

[aspectj-users] AspectJ Maven Plugin 1.13.M2 is available

2021-05-25 Thread Alexander Kriegisch
ven plugin for AspectJ - well, as official as it can be as something not being a direct AspectJ sub-project. As soon as AspectJ 1.9.7 is out, I am also going to publish the final release of AspectJ Maven. Bestt regards -- Alexander Kriegisch Alexander Kriegisch schrieb am 24.05.2021 11:38 (

[aspectj-users] AspectJ 1.9.7.M2 is available

2021-05-23 Thread Alexander Kriegisch
fixing bugs, while Eclipse still performs some internal reviews, so your feedback is most welcome. Best regards -- Andrew Clement Alexander Kriegisch ___ aspectj-users mailing list aspectj-users@eclipse.org To unsubscribe from this list, visit https

Re: [aspectj-users] AspectJ + AJDT + AspectJ Maven development versions for Java 16 available

2021-04-29 Thread Alexander Kriegisch
we sent a message that AspectJ is far from dead, even though not exactly running like a race horse. Cheers -- Alexander Kriegisch https://scrum-master.de Matthew Adams schrieb am 28.04.2021 21:06 (GMT +07:00): > Awesome. I'm also a long-time AspectJ user and occasional supporter (I'm

[aspectj-users] AspectJ + AJDT + AspectJ Maven development versions for Java 16 available

2021-04-28 Thread Alexander Kriegisch
and deploy rights on Eclipse projects (yet), I just set up a little Maven repository on my domain aspectj.dev. More details in this comment I posted on a recently merged GitHub pull request: https://github.com/eclipse/org.aspectj/pull/41#issuecomment-826066012 Best regards -- Alexander

Re: [aspectj-users] Is AspectJ compatible with Java 15?

2021-02-05 Thread Alexander Kriegisch
features, direct compilation with 'ajc' should also be not problem. [1] https://www.eclipse.org/aspectj/doc/released/README-196.html -- Alexander Kriegisch https://scrum-master.de Davide Perini schrieb am 05.02.2021 16:54 (GMT +07:00): > As title. > Do you know is AspectJ is comp

Re: [aspectj-users] Java 9+ modules questions

2020-12-17 Thread Alexander Kriegisch
with AOP though, I think the way it is implemented now makes the two of them more or less incompatible. -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch schrieb am 18.12.2020 09:59 (GMT +07:00): > All documentation I can find concerning JMS support in AspectJ 1.9.x &

[aspectj-users] Java 9+ modules questions

2020-12-17 Thread Alexander Kriegisch
e projects with module-info files but does not respect JMS semantics in multi-module projects. Maybe I am doing something wrong. Are there any instructive tests in the AspectJ source code you could point me to? The AspectJ module structure is complicated, it is kind of difficult to find anything there.

[aspectj-users] Limiting runtime type of target/this objects in pointcut

2020-12-08 Thread Alexander Kriegisch
ich again would not work in Spring AOP and would also be a major obstacle for unexperienced AspectJ users. Have I overlooked anything? If so, what? If not, do you think this kind of feature would be a helpful addition to the AspectJ pointcut synta

Re: [aspectj-users] Please upvote compile-time weaving in kotlin

2020-11-19 Thread Alexander Kriegisch
gards -- Alexander Kriegisch https://scrum-master.de Matthew Adams schrieb am 20.11.2020 03:00 (GMT +07:00): > Please go upvote https://youtrack.jetbrains.com/issue/KT-43476 if > you'd like to see compile-time support in kotlin. ___ aspectj-us

Re: [aspectj-users] high JVM consumption on springboot-aspectj LTW

2020-09-29 Thread Alexander Kriegisch
d because I haven't had time to try it out and review it. If you feel like building an AspectJ to try it out, that might be more evidence we should get integrated sooner rather than later.   Andy On Thu, 24 Sep 2020 at 20:18, Alexander Kriegisch <alexan...@kriegisch.name> wrote:

Re: [aspectj-users] high JVM consumption on springboot-aspectj LTW

2020-09-24 Thread Alexander Kriegisch
lease provide more information, especially full aspect code. aop.xml would also be nice. Regards -- Alexander Kriegisch https://scrum-master.de Rajendra Bhat schrieb am 25.09.2020 09:36 (GMT +07:00): > we observed around 10% latency overhead after adding aspectj LTW. > during the

Re: [aspectj-users] Proceeding with all arguments in native syntax

2020-09-05 Thread Alexander Kriegisch
ed, it would be great too. :) Or maybe the two features are the same order of magnitude with regard to complexity, even though that would surprise me. Cheers -- Alexander Kriegisch https://scrum-master.de Andy Clement schrieb am 06.09.2020 01:07 (GMT +07:00): > > > I'm not totally su

Re: [aspectj-users] Proceeding with all arguments in native syntax

2020-09-04 Thread Alexander Kriegisch
ect[] is already in the code base, which is why it works in @AspectJ syntax. -- Alexander Kriegisch https://scrum-master.de Andy Clement schrieb am 05.09.2020 02:05 (GMT +07:00): > I feel like there are some bugs that talk around this topic, but I > can't quite find the one I'm thi

[aspectj-users] Proceeding with all arguments in native syntax

2020-09-03 Thread Alexander Kriegisch
Hi Andy. Check this out: https://stackoverflow.com/a/63735393/1082681 Is there anything I have overlooked? If so, how would I do that in native syntax? If not, would it be hard to implement? Cheers -- Alexander Kriegisch https://scrum-master.de

Re: [aspectj-users] AspectJ at Github

2020-08-01 Thread Alexander Kriegisch
/blob/master/bugzilla2github.py [4] https://stackoverflow.com/q/7281304/1082681 -- Alexander Kriegisch https://scrum-master.de Andy Clement schrieb am 02.08.2020 07:09 (GMT +07:00): > > > I didn't dive into the details with the webmaster (yet) - he simply > offered archivin

Re: [aspectj-users] AspectJ at Github

2020-07-31 Thread Alexander Kriegisch
. Having said that and reading it again, it sounds way more difficult than just migrating the Git repo. Best regards -- Alexander Kriegisch https://scrum-master.de Andy Clement schrieb am 31.07.2020 22:23 (GMT +07:00): > > > Up until yesterday what was on Github was a mirror for AspectJ. T

Re: [aspectj-users] AspectJ 1.9.6 (Java14) released

2020-07-22 Thread Alexander Kriegisch
plans to use aspectjmatcher in Spring AOP instead of aspectjweaver? The latter only seems useful in Spring if used in connection with AspectJ LTW. This could be a great step ahead for Spring AOP with regard to making it more lightweight. Regards -- Alexander Kriegisch https://scrum

Re: [aspectj-users] Can I force around advice (especially for constructors) to be inlined?

2020-05-29 Thread Alexander Kriegisch
oinpoints.   I think forcing inlining (or at least attempting to, there are cases where it is hard - I think around advice proceed cases) would be a good option to have these days.   cheers, Andy On Wed, 27 May 2020 at 20:58, Alexander Kriegisch <alexan...@kriegisch.name> wrote: Actually it

Re: [aspectj-users] Can I force around advice (especially for constructors) to be inlined?

2020-05-27 Thread Alexander Kriegisch
ion of Java are you trying it on? Did you try it on Java 8 to compare? (Just out of interest, I’m not saying that is the fix).   I suspect we do need to do more inlining to fix this across the board.     On May 21, 2020, at 2:52 AM, Alexander Kriegisch <alexan...@kriegisch.name> wrote: Tod

[aspectj-users] Can I force around advice (especially for constructors) to be inlined?

2020-05-21 Thread Alexander Kriegisch
Hi Andy. Today I got a tricky one. I thought about opening a Bugzilla ticket, but this is actually more of a question, maybe a future feature request if what I want is technically possible at all. So it depends on your answer if I shall open a ticket or not. The requirement is simple (to explain, n

Re: [aspectj-users] Cannot access private field/method declared via ITD from target class

2020-04-27 Thread Alexander Kriegisch
Ain't that a gotcha for someone who has used AspectJ for a few years and thought he knew a little something about it? You never cease to amaze me with your teachings, thank you so much. :-) -- Alexander Kriegisch https://scrum-master.de Andrew Clement: > From what I recall the visib

[aspectj-users] Is privileged aspect the default now? (was: Cannot access private field/method declared via ITD from target class)

2020-04-26 Thread Alexander Kriegisch
On a side note: Whether I use a privileged aspect or not does not make any difference. Besides, it never does seem to make any difference. Is 'privileged' the default now? It must have been for quite a while, though. -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch

[aspectj-users] Cannot access private field/method declared via ITD from target class

2020-04-26 Thread Alexander Kriegisch
e my answer here: https://stackoverflow.com/a/61450184/1082681 Kind regards -- Alexander Kriegisch https://scrum-master.de ___ aspectj-users mailing list aspectj-users@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mai

Re: [aspectj-users] LTW and JRE classes

2020-04-06 Thread Alexander Kriegisch
Sorry Andy, I forgot to mention the recursive invocation problem when using the weaver as a system classloader. I tried to work around it by putting everything on 'aj.class.path' which made the exception go away but did not do anything with regard to aspect weaving. -- Alexander Krieg

Re: [aspectj-users] LTW and JRE classes

2020-04-06 Thread Alexander Kriegisch
agent:...'. Can you explain, maybe? Source code reference: https://github.com/eclipse/org.aspectj/blob/8c6b3ae13b105ce9bb9559de0ee4752cab5ba81c/loadtime/src/org/aspectj/weaver/loadtime/WeavingURLClassLoader.java#L48 -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch:

Re: [aspectj-users] LTW and JRE classes

2020-04-03 Thread Alexander Kriegisch
"[AppClassLoader@18b4aac2] debug not weaving 'a.b..C'". -- Alexander Kriegisch https://scrum-master.de Andy Clement: >> Furthermore, both '-verbose:class' and '-verbose=class' yield >> warnings > > That's not a weaver option, it is

Re: [aspectj-users] LTW and JRE classes

2020-03-28 Thread Alexander Kriegisch
t one is kinda cheating because it tests with own classes in javax package not with real JRE classes: https://github.com/eclipse/org.aspectj/tree/master/tests/features160/weavingJavaxPackage I really need some help to get started here. -- Alexander Kriegisch https://scrum-master.de Andy Clement

[aspectj-users] LTW and JRE classes

2020-03-27 Thread Alexander Kriegisch
Java 9+, which might work or not. Before I create a Bugzilla ticket I would like to get a maintainer opinion. Is there any chance to make this work with AspectJ LTW? Is is maybe possible already and I just do it wrong? Regards -- Alexander Kriegisch https://

Re: [aspectj-users] Trying to weave but get error

2020-03-20 Thread Alexander Kriegisch
va versions 9+. So please gather some information next time before irritating other people with unspecific warning messages. Thank you. -- Alexander Kriegisch https://scrum-master.de > From: aspectj-users-boun...@eclipse.org > on behalf of Mikael Petterson > > Sent: Friday, Ma

Re: [aspectj-users] Trying to weave but get error

2020-03-20 Thread Alexander Kriegisch
Mikael, I hope you understand that I want to stop speculating until I have an MCVE reproducing the problem. Regards -- Alexander Kriegisch https://scrum-master.de Mikael Petterson schrieb am 20.03.2020 14:04 (GMT +07:00): > > Hi, > > > I replaced mojoha

Re: [aspectj-users] Trying to weave but get error

2020-03-19 Thread Alexander Kriegisch
too for importing AspectJ projects. > ...\InjectedFunctionForRegressionChecker.java:6:0::0 > The import ...RegressionSetInjectableFunctionAction cannot be resolved This rather seems to be some kind of classpath problem, maybe not even directly related to AspectJ, but impossible to say for sure without

Re: [aspectj-users] Trying to weave but get error

2020-03-18 Thread Alexander Kriegisch
sure the generated sources are compiled before > ajc. Actually no, that should not be necessary. Ajc is a full drop-in replacement for Javac. Regards -- Alexander Kriegisch https://scrum-master.de Mikael Petterson schrieb am 18.03.2020 21:29 (GMT +07:00): > > Hi, > > > I wish

Re: [aspectj-users] Trying to weave but get error

2020-03-18 Thread Alexander Kriegisch
Hi Mikael. How about a reproducible POM + Java + AspectJ project, maybe on GitHub? I also don't know what kind of fork you are using: > aspectj-maven-plugin:1.11.1-FORK Thanks for an update with more info. :-) -- Alexander Kriegisch https://scrum-master.de Mikael Petterson sc

Re: [aspectj-users] Upgrade AspectJ Maven plugin to Java 11 (AspectJ 1.9.4)

2020-01-05 Thread Alexander Kriegisch
Ping! -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch schrieb am 05.06.2019 12:59 (GMT +07:00): > Hi Andy. > > Honestly, I didn't expect an answer from you. AFAIK you are not a committer in > that project, at least not according to GitHub. Also, I am

[aspectj-users] @DeclareParents with 'defaultImpl' not working when used in an aspect library

2019-12-30 Thread Alexander Kriegisch
ought to be fixed as long as 'defaultimpl' is not deprecated. Kind regards -- Alexander Kriegisch https://scrum-master.de ___ aspectj-users mailing list aspectj-users@eclipse.org To change your delivery options, retrieve your password, or u

[aspectj-users] How to use Spring AOP + AspectJ LTW combined in one application?

2019-09-18 Thread Alexander Kriegisch
, no need to start from zero. -- Alexander Kriegisch https://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://www.eclipse.org

Re: [aspectj-users] Getting the method arguments of a Pointcut using args

2019-09-08 Thread Alexander Kriegisch
s a nice discussion, talk to you next time. -- Alexander Kriegisch https://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] Getting the method arguments of a Pointcut using args

2019-09-07 Thread Alexander Kriegisch
e   Sina Golesorkhi schrieb am 07.09.2019 19:31: Hi Alexander,    Thanks for response. Please find my comments below. On Sep 5, 2019, at 5:30 AM, Alexander Kriegisch <alexan...@kriegisch.name> wrote: Hi Sina. Your request sounds a bit like ordering Mousse au Chocolat without chocolate in a re

Re: [aspectj-users] Getting the method arguments of a Pointcut using args

2019-09-04 Thread Alexander Kriegisch
Hi Sina. Your request sounds a bit like ordering Mousse au Chocolat without chocolate in a restaurant. Your advice has two very specific Foo and Bar parameters, but the corresponding pointcut should not bind them to method parameters. Where else would they come from then? What is the problem anyway

Re: [aspectj-users] Anyway to use AJ to _prevent_ field assignment at initialization of an object?

2019-08-09 Thread Alexander Kriegisch
esolverFactory( new CacheManager(); }I haven't tried that yet, but I believe it should get me where I need to get.     Thanks,   Eric   On Thu, Aug 8, 2019, 9:48 PM Alexander Kriegisch <alexan...@kriegisch.name wrote: I replicated your situation with dummy classes: package de.scrum_master.a

Re: [aspectj-users] Anyway to use AJ to _prevent_ field assignment at initialization of an object?

2019-08-08 Thread Alexander Kriegisch
I replicated your situation with dummy classes: package de.scrum_master.app;public class InvocationContext {} package de.scrum_master.app;public interface CacheResolverFactory { CacheManager getCacheManager();} package de.scrum_master.app;public class DefaultCacheResolverFactory implements Cach

Re: [aspectj-users] Upgrade AspectJ Maven plugin to Java 11 (AspectJ 1.9.4)

2019-07-29 Thread Alexander Kriegisch
than that I am not sure about the purpose of your post. I cannot detect any questions in there. Regards -- Alexander Kriegisch https://scrum-master.de Conrad Bell schrieb am 30.07.2019 01:40: > Hello Andy, Alexander: > > Your posts strike me as quite serendipitous. I am a PhD s

Re: [aspectj-users] AJDT does not include aop.xml into output JAR

2019-06-19 Thread Alexander Kriegisch
DT ones. Please read and comment, even if implementation is low on your priority list. I really like to understand. Thank you. Cheers -- Alexander Kriegisch https://scrum-master.de Andy Clement: > I couldn't honestly tell you if that used to work. Feel free to raise a > bug, but I can

Re: [aspectj-users] privileged aspects and Load-Time Weaving

2019-06-18 Thread Alexander Kriegisch
ou if e.g. you have binaries without source. But if you don't explain, probably we will never know, will we? How can you hope for someone to help you solve a problem you don't even fully explain? Good luck -- Alexander Kriegisch Ursprüngliche Nachricht Von: REV Tamas

[aspectj-users] AJDT does not include aop.xml into output JAR

2019-06-17 Thread Alexander Kriegisch
coming, no matter whether it is a regression or has always been that way. Andy, any comments? -- Alexander Kriegisch https://scrum-master.de ___ aspectj-users mailing list aspectj-users@eclipse.org To change your delivery options, retrieve your pa

Re: [aspectj-users] privileged aspects and Load-Time Weaving

2019-06-17 Thread Alexander Kriegisch
te getters and setters for all or some of my beans." And maybe then you find out that you could do that via AspectJ's annotation processing feature or by using another tool such as Lombok or by using Groovy instead of Java or ...) Kind regards-- Alexander Kriegisch https://scrum-master.de   R

Re: [aspectj-users] Upgrade AspectJ Maven plugin to Java 11 (AspectJ 1.9.4)

2019-06-04 Thread Alexander Kriegisch
ll/45 It contains the changed/forked "nickwongdev" version. Best regards -- Alexander Kriegisch https://scrum-master.de Andy Clement schrieb am 05.06.2019 00:31: > Thanks for mentioning that, I keep forgetting it. Wish I had the > cycles to sort that out, but I just can'

[aspectj-users] Upgrade AspectJ Maven plugin to Java 11 (AspectJ 1.9.4)

2019-05-31 Thread Alexander Kriegisch
AFAIK. So if anyone wants to build with JDK 11 they have to use a forked plugin version such as com.nickwongdev:aspectj-maven-plugin:1.12.1. I think this is kinda suboptimal. Maybe someone can take the time to upgrade the plugin. :-) Best regards -- Alexander Kriegisch https://scrum-mast

Re: [aspectj-users] 1.9.4 released

2019-05-31 Thread Alexander Kriegisch
tifact (to 1.9.4 from 1.9.2).   I'll fix that up next time I do an update. Unless someone tells me the IDE fixes aren't in fact in there, in which case it becomes more urgent (and puzzling!)   cheers, Andy On Fri, 31 May 2019 at 05:53, Alexander Kriegisch <alexan...@kriegi

Re: [aspectj-users] 1.9.4 released

2019-05-31 Thread Alexander Kriegisch
> http://download.eclipse.org/tools/ajdt/410/dev/update Somehow in Eclipse 2018-12 the latest update is still based on AspectJ 1.9.2. -- Alexander Kriegisch https://scrum-master.de Andrew Clement schrieb am 13.05.2019 22:19: > AspectJ 1.9.4 has been released. As described in the

Re: [aspectj-users] There is an AspectJ maven build configuration

2019-03-09 Thread Alexander Kriegisch
t running it)and the contents look as expected. Great job! :-) Cheers -- Alexander Kriegisch https://scrum-master.de Andrew Clement schrieb am 05.03.2019 00:21: > Just to add I’ve done some work on the maven build and for me it now runs > clean on windows. I had to do a few things: > >

Re: [aspectj-users] java agent: spring-instrument.jar vs aspectjweaver.jar

2019-03-09 Thread Alexander Kriegisch
://stackoverflow.com/a/25723050/1082681 Sorry I cannot enlighten you more, but I hope this helps anyway. -- Alexander Kriegisch https://scrum-master.de Andrei Ivanov schrieb am 08.03.2019 18:45: > > > Hi, > What's the difference between using spring-instrument.jar as a java agent >

Re: [aspectj-users] AspectJ third-party class is not weaved in weblogic

2019-03-03 Thread Alexander Kriegisch
ing mechanism and transforms the classes while they are being loaded. I hope you can find out how to fix the classloading. Good luck! -- Alexander Kriegisch https://scrum-master.de ___ aspectj-users mailing list aspectj-users@eclipse.org To change you

Re: [aspectj-users] AspectJ third-party class is not weaved in weblogic

2019-03-02 Thread Alexander Kriegisch
Correction, see below: Alexander Kriegisch schrieb am 03.03.2019 10:11: Without an MCVE it is difficult to say anything definitive, but in general you seem to have one of two possible problems: Class visibility issues due to classloader isolation inside your container (application server

Re: [aspectj-users] AspectJ third-party class is not weaved in weblogic

2019-03-02 Thread Alexander Kriegisch
change your configuration in order to address this issue. What to do exactly is beyond my knowledge. Maybe Andy knows more. Maybe it would also help to push an MCVE to GitHub for everyone to reproduce to problem. -- Alexander Kriegisch https://scrum-master.de   yev yev schrieb am 02.03.2019 16:19

Re: [aspectj-users] There is an AspectJ maven build configuration

2019-02-24 Thread Alexander Kriegisch
t is worth looking into that further. Best regards -- Alexander Kriegisch https://scrum-master.de   Andrew Clement schrieb am 13.02.2019 05:37: One question, just in case: Would PRs against the GitHub repo be okay?   Yes, I think so.  But there are some shenanigans necessary to ensure the commit

Re: [aspectj-users] Is there an AJDT version for Eclipse 2018-12?

2019-02-21 Thread Alexander Kriegisch
iled there for the same reason it failed via "install new software": because the source code package was not available for download. -- Alexander Kriegisch https://scrum-master.de Alexander Kriegisch schrieb am 22.02.2019 08:00: > Thanks, Andy. > > Actually errors a

  1   2   3   4   >