Always me !
With JVM 1.4, and an
aop.xml file without any declared aspect, it seems that the file aop.xml is not
read, the ConcreteAspect coded by hand is automatically woven!!
Is-it a bug ?
Cordialement / Best regards

Jean-Louis Pasturel
De : Jean-Louis
PASTUREL [mailto:jeanlouis.pasturel@xxxxxxxxxxxxx]
Envoyé : mardi 4 décembre
2007 11:34
À : 'aspectj-users@xxxxxxxxxxx'
Objet : RE: [aspectj-users]
JVM 1.4 LTW with concrete-aspect
For information,
extending the Abstract aspect to a concrete aspect and using tag <aspect
name=’’nameOf ConcreteAspect’’/> in oap.xml
It runs fine with JVM 1.4
Does Aspect with JVM 1.4
support <concrete-aspect> tag in aop.xml ?
Cordialement / Best regards
Jean-Louis Pasturel
De : Jean-Louis
PASTUREL [mailto:jeanlouis.pasturel@xxxxxxxxxxxxx]
Envoyé : mardi 4 décembre
2007 10:32
À : 'aspectj-users@xxxxxxxxxxx'
Objet : RE: [aspectj-users]
JVM 1.4 LTW with concrete-aspect
Oops ;
I * can not run* with a
1.4 JVM … sorry
De :
aspectj-users-bounces@xxxxxxxxxxx [mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Jean-Louis PASTUREL
Envoyé : mardi 4 décembre
2007 09:49
À : aspectj-users@xxxxxxxxxxx
Objet : [aspectj-users] JVM
1.4 LTW with concrete-aspect
It is perhaps a FAQ, but i don’t find the
answer …
I run perfectly AspectJ on a small demo app with a
JVM 1.5 and the javaagent.
But I can run this weaving in JVM 1.4 Sun HotSpot (
Aspect and app are compiled in target byte code 1.4).
Here is my modified aj.bat :
REM @echo off
REM This file generated by AspectJ installer
REM Created on Sat Nov 11 19:24:10 CET 2006 by
JEYP5516
set JAVA_HOME=C:\Program Files\Java\j2re1.4.2_13
SET ASPECTJ_HOME=C:\opt\perfStats
if "%JAVA_HOME%" == "" set
JAVA_HOME=C:\Program Files\Java\j2re1.4.2_13
if "%ASPECTJ_HOME%" == "" set
ASPECTJ_HOME=c:\aspectj1.5
SET ASPECTPATH=C:\opt\perfStats\perfAspects.jar
SET PERFSTAT_ROOT=C:\opt\perfStats
SET
CLASSPATH=C:\opt\perfStats;C:\opt\perfStats\exemple1.jar;C:\opt\perfStats\perfAspects.jar;
if exist "%JAVA_HOME%\bin\java.exe" goto
haveJava
if exist "%JAVA_HOME%\bin\java.bat" goto
haveJava
if exist "%JAVA_HOME%\bin\java" goto
haveJava
echo java does not exist as %JAVA_HOME%\bin\java
echo please fix the JAVA_HOME environment variable
:haveJava
"%JAVA_HOME%\bin\java" -classpath
"%ASPECTJ_HOME%\lib\aspectjweaver.jar"
"-Djava.system.class.loader=org.aspectj.weaver.loadtime.WeavingURLClassLoader"
"-Daj.class.path=%ASPECTPATH%;%CLASSPATH%" -DrootPerfStat=%PERFSTAT_ROOT%
"-Daj.aspect.path=%ASPECTPATH%" %*
And my aop.xml ( located in :
C:\opt\perfStats\META-INF\aop.xml in the classpath)
<?xml version="1.0"
encoding="ISO-8859-1"?>
<aspectj>
<aspects>
<concrete-aspect name="iep.perf.jvm14.IntrospectionClass14"
extends="iep.perf.jvm14.AbstractIntrospectionClass14">
<pointcut name="introspection"
_expression_="within(jlp..*) AND call(public * jlp..*(..))" />
</concrete-aspect>
<!-- aspect name="iep.perf.ConcreteDurationMethod"/-->
</aspects>
<weaver options="-verbose">
<include within="jlp..*"/>
<include within="iep..*"/>
</weaver>
</aspectj>
With JVM 1.4 , app is launched without weaving with
no error , it seam that the System Classloader is not override by
-Djava.system.class.loader
What did I miss ?
Cordialement / Best regards
Jean-Louis Pasturel
ft/rosi/dps/iep/p-m
Expertise WAS tél. 05 61 30 83 39 mob: 06 75 96 34 98
jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx