Salut;
Je suis entrain de compiler une fichier .java
mais je n'arrive pas a cause de cette erreur
the method ajs$postclinit() is undefined for this class
voici le code source:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*    */ package com.vidal.merlin.dateofkill;
/*    */ 
/*    */ import com.vidal.merlin.utils.dateofkill.DateOfKillException;
/*    */ import com.vidal.merlin.utils.dateofkill.DateOfKillStatus;
/*    */ import com.vidal.merlin.utils.productline.licencing.LicenceManager;
/*    */ import com.vidal.merlin.utils.productline.licencing.LicenceManagerFactory;
/*    */ import java.util.ResourceBundle;
/*    */ import org.apache.commons.logging.Log;
/*    */ import org.apache.commons.logging.LogFactory;
/*    */ import org.aspectj.lang.NoAspectBoundException;
/*    */ import org.aspectj.lang.ProceedingJoinPoint;
/*    */ import org.aspectj.lang.annotation.Around;
/*    */ import org.aspectj.lang.annotation.Aspect;
/*    */ import org.springframework.stereotype.Component;
/*    */ 
/*    */ @Aspect
/*    */ @Component("businessDateOfKillManager")
/*    */ public class BusinessDateOfKillManager
/*    */ {
/* 23 */   private static final Log LOG = LogFactory.getLog(BusinessDateOfKillManager.class);
/* 24 */   private static final ResourceBundle BUNDLE = ResourceBundle.getBundle("com.vidal.merlin.dateofkill.DateOfKillManager");
/*    */ 
/*    */   static
/*    */   {
/*    */     try
/*    */     {
/* 22 */       ajc$postClinit(); } catch (Throwable localThrowable) { ajc$initFailureCause = localThrowable;
/*    */     }
/*    */   }
/*    */ 
/*    */   @Around(value="bo() && target(callee)", argNames="pjp, callee")
/*    */   public Object around(ProceedingJoinPoint pjp, Object callee)
/*    */     throws Throwable
/*    */   {
/* 32 */     ajc$inlineAccessFieldGet$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$LOG().debug("Starting analysis of dateOfKill policy");
/* 33 */     DateOfKillStatus status = LicenceManagerFactory.getInstance().checkDateOfKillStatus();
/* 34 */     if (status == DateOfKillStatus.KO) {
/* 35 */       ajc$inlineAccessFieldGet$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$LOG().info("Date of kill passed in Bo");
/* 36 */       throw new DateOfKillException(ajc$inlineAccessFieldGet$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$BUNDLE().getString("dateOfKill.exception.msg"));
/*    */     }
/* 38 */     ajc$inlineAccessFieldGet$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$com_vidal_merlin_dateofkill_BusinessDateOfKillManager$LOG().debug("Date of kill OK...");
/* 39 */     return pjp.proceed();
/*    */   }
/*    */ 
/*    */   public static BusinessDateOfKillManager aspectOf()
/*    */   {
/*  1 */     if (ajc$perSingletonInstance == null) throw new NoAspectBoundException("com.vidal.merlin.dateofkill.BusinessDateOfKillManager", ajc$initFailureCause); return ajc$perSingletonInstance; } 
/*  1 */   public static boolean hasAspect() { return ajc$perSingletonInstance != null;
/*    */   }
/*    */ }
 
/* Location:           C:\Documents and Settings\DELL\My Documents\Downloads\merlin-business.jar
 * Qualified Name:     com.vidal.merlin.dateofkill.BusinessDateOfKillManager
 * JD-Core Version:    0.6.0
 */
et voici le command que j'ai utilisé pour compiler:
D:\aspectj1.6\bin\ajc.bat -classpath C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\merlin-utils.jar;D:\aspectj1.6\lib\aspectjrt.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\commons-logging.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-aop.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-asm.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-beans.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-context.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-core.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-expression.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-jdbc.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-orm.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-tx.jar;C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\VIDALD~1\spring-web.jar;D:\aspectj1.6\lib\aspectjtools.jar;D:\aspectj1.6\lib\aspectjweaver.jar;D:\aspectj1.6\lib\org.aspectj.matcher.jar -d C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\MERLIN~1.SRC\com\vidal\merlin\DATEOF~1\ C:\DOCUME~1\DELL\MYDOCU~1\DOWNLO~1\MERLIN~1.SRC\com\vidal\merlin\DATEOF~1\BusinessDateOfKillManager.java



SVP aidez-moi