Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2011
    Posts
    1
    Rep Power
    0

    Default error when compiling a file

    Hello;
    i try to compile a .java class but i get this error:
    the method ajs$postclinit() is undefined for this class
    this is the source code:

    Java Code:
    /*    */ 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
     */
    please help

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,789
    Rep Power
    25

    Default Re: error when compiling a file

    You are working with the output of a decompiler. It doesn't do a good job with inner classes (the $)
    You need to go to the author of the program and ask for the source.

Similar Threads

  1. Compiling error
    By efth in forum New To Java
    Replies: 8
    Last Post: 04-10-2011, 05:14 PM
  2. compiling error
    By Adeline in forum AWT / Swing
    Replies: 3
    Last Post: 12-03-2010, 08:19 PM
  3. Compiling error
    By robbierut in forum Java Applets
    Replies: 4
    Last Post: 11-24-2010, 06:00 PM
  4. Compiling error
    By lawksalih in forum New To Java
    Replies: 6
    Last Post: 01-29-2008, 08:26 PM
  5. Error while compiling
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 07-01-2007, 12:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •