[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Why are you using LTW?
- From: Ramnivas Laddad <ramnivas@xxxxxxxxxxxxxxx>
- Date: Tue, 10 Feb 2009 16:36:29 -0500
- Delivered-to: firstname.lastname@example.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=RtL6qz2qeswKsim1BhnD04RT93s6zHU+wN++D/WrQos=; b=peXA+XrziPaZGUI4y4pIj+lwePeL4RApq80ZgrFL8QAzBxGjM59adtoNVCvhe/+Hvf 0I028ZgE3QPqBVQ9tLfPABT8kp19lg5G43tNG1DzHHzE1JmO93NanUEs5fT+CUWkxI9m mDVkG8j7dF9sr5bRMz6EOTuELkXfL9no5sq+U=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=AD8mTTKcDxi9X2AgExMd4ERCFRc8cevbu9ZzISjs98fdugoXRpyu7hduqthQx5s0XA 3sifZ5E73nN/Q0+q/n7RUIwsz9FDxE8cORm77Iha+EOhGp4D1J+tH4snR73q8dDrPFvC d3HT682oGa2wGrSSCGyHTAhGEfy2jkQv9Qj8s=
Most use LTW as an easy way to get started with AspectJ (no build
script modifications). A few also need to weave into container classes
and LTW seems easier than performing offline binary weaving and
replacing original jars with woven jars. If that is not required, many
eventually move over to compile-time weaving.
I wouldn't worry about "official" compiler issue, since in the end the
VM sees essentially the same byte code regardless of the utilized
On Tue, Feb 10, 2009 at 1:40 PM, Wim Deblauwe <wim.deblauwe@xxxxxxxxx> wrote:
> I was wondering why other people use LTW (Load Time Weaving) instead of
> compile time?
> The main reason for me would be that with compile time you are not using the
> 'official' compiler of Java. Is this something I should worry about or is it
> just paranoia on my side?
> Another reason is that it seems attractive to be able to disable aspects
> when not needed, but so far I never felt the need to disable them.
> I am now thinking on switching to compile time, mainly to be able to do
> 'declare warning' and 'declare error', because I like to be able to lay down
> custom rules like this that are very specific to the project, but are easily
> enforced this way.
> aspectj-users mailing list