Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Duplicate Eclipse classes in aspectjtools.jar ?!
Duplicate Eclipse classes in aspectjtools.jar ?! [message #39843] Fri, 06 August 2004 14:59 Go to next message
Eclipse UserFriend
Originally posted by: thierryDOTmonneyATurbanetDOTch.dummy.net

Hi all !

We are having a strange problem using AJDT.

We are writing an aspect that crosscuts the org.eclipse.jdt.core.dom.AST class and needs to access
the AST.JLS2 and CompilationUnit.IMPORTS_PROPERTY constants. But we get an error that these
constants are not declared in the AST class.

When investigating to find where this error came from, we discovered that many Eclipse classes were
duplicated in the aspectjtools.jar file. One of them is precisely the AST class. The problem is that
this one does not declare our needed constants !

So here are our questions :

1) Why do you need to duplicate all these classes ?

2) If you need to (as we suppose, since you would not have done this just for fun :-)), why did you
not duplicate the constants as well ?

We suppose that you just copied the classes from other jars which were updated since then, so that
yours are not up to date...

If you did not modify the contents of these classes, we should be able to replace the AST class in
the aspectjtools.jar file, right ?

We really need these constants in our code...

Thanks for your help !

P.S. Thanks for the great tool...
P.P.S. We are looking forward to seeing Lancaster released !

Thierry Monney & al.
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #39878 is a reply to message #39843] Fri, 06 August 2004 15:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: adrian_colyer.uk.ibm.com

On Fri, 06 Aug 2004 16:59:28 +0200, Thierry Monney
<thierryDOTmonneyATurbanetDOTch@dummy.net> wrote:

> Hi all !
>
> We are having a strange problem using AJDT.
>
> We are writing an aspect that crosscuts the org.eclipse.jdt.core.dom.AST
> class and needs to access the AST.JLS2 and
> CompilationUnit.IMPORTS_PROPERTY constants. But we get an error that
> these constants are not declared in the AST class.
>
> When investigating to find where this error came from, we discovered
> that many Eclipse classes were duplicated in the aspectjtools.jar file.
> One of them is precisely the AST class. The problem is that this one
> does not declare our needed constants !
>
> So here are our questions :
>
> 1) Why do you need to duplicate all these classes ?

Timely question, I wrote a blog entry last week on what's going on here
that should explain things:
http://www.aspectprogrammer.org/blogs/adrian/2004/07/engine_ stripdow.html.

>
> 2) If you need to (as we suppose, since you would not have done this
> just for fun :-)), why did you not duplicate the constants as well ?
>
> We suppose that you just copied the classes from other jars which were
> updated since then, so that yours are not up to date...

Prior to the update of the compiler classes discussed in the aformentioned
blog entry, the classes inside the jar were based on the JDT 3.0 M6
codebase. They've now been upgraded to the 3.0 final versions - and this
is what will be included in AJDT 1.1.12.

>
> If you did not modify the contents of these classes, we should be able
> to replace the AST class in the aspectjtools.jar file, right ?
>
> We really need these constants in our code...

All the above said, you should be able to pass a classpath to the AspectJ
compiler that does not include aspectjtools.jar and pick up any version of
the classes you need. ajc -classpath .....

>
> Thanks for your help !
>
> P.S. Thanks for the great tool...
> P.P.S. We are looking forward to seeing Lancaster released !
>
> Thierry Monney & al.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #39909 is a reply to message #39878] Fri, 06 August 2004 16:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thierryDOTmonneyATurbanetDOTch.dummy.net

Adrian Colyer wrote:

>
> Prior to the update of the compiler classes discussed in the
> aformentioned blog entry, the classes inside the jar were based on the
> JDT 3.0 M6 codebase. They've now been upgraded to the 3.0 final
> versions - and this is what will be included in AJDT 1.1.12.

That's great news ! Do you know when AJDT 1.1.12 will be released ? I quickly had a look at the
website but could not find any schedule.

> All the above said, you should be able to pass a classpath to the
> AspectJ compiler that does not include aspectjtools.jar and pick up any
> version of the classes you need. ajc -classpath .....

We will try !

Thanks for the fast answer !
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #39940 is a reply to message #39909] Fri, 06 August 2004 23:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mchapman.uk.ibm.com

On Fri, 06 Aug 2004 18:47:19 +0200, Thierry Monney wrote:
> That's great news ! Do you know when AJDT 1.1.12 will be released ? I
> quickly had a look at the website but could not find any schedule.

It's difficult mapping out realistic schedules too far in advance because
we can't always predict how many people are going to contribute, and how
many bugs are going to come in etc. But I can say that 1.1.12 is
progressing at quite a pace, so you should expect it within a couple of
weeks. It's not going to be as big a release as 1.1.11, but will contain a
few enhancements and a number of bug fixes.

Regards,

Matt.
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #40037 is a reply to message #39940] Mon, 09 August 2004 07:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: thierryDOTmonneyATurbanetDOTch.dummy.net

Matt Chapman wrote:
> On Fri, 06 Aug 2004 18:47:19 +0200, Thierry Monney wrote:
>
>>That's great news ! Do you know when AJDT 1.1.12 will be released ? I
>>quickly had a look at the website but could not find any schedule.
>
>
> It's difficult mapping out realistic schedules too far in advance because
> we can't always predict how many people are going to contribute, and how
> many bugs are going to come in etc. But I can say that 1.1.12 is
> progressing at quite a pace, so you should expect it within a couple of
> weeks. It's not going to be as big a release as 1.1.11, but will contain a
> few enhancements and a number of bug fixes.
>
> Regards,
>
> Matt.

A couple of weeks ? Sounds quite good ! We will be waiting eagerly !

Thank you again for the good work !

All the best.

Thierry
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #40544 is a reply to message #39878] Tue, 07 September 2004 12:36 Go to previous message
Eclipse UserFriend
Originally posted by: thierryDOTmonneyATurbanetDOTch.dummy.net

Adrian Colyer wrote:
> Prior to the update of the compiler classes discussed in the
> aformentioned blog entry, the classes inside the jar were based on the
> JDT 3.0 M6 codebase. They've now been upgraded to the 3.0 final
> versions - and this is what will be included in AJDT 1.1.12.
>
Yep ! This version fixed our problem ! Thank you again !
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #582579 is a reply to message #39843] Fri, 06 August 2004 15:53 Go to previous message
Adrian Colyer is currently offline Adrian ColyerFriend
Messages: 61
Registered: July 2009
Member
On Fri, 06 Aug 2004 16:59:28 +0200, Thierry Monney
<thierryDOTmonneyATurbanetDOTch@dummy.net> wrote:

> Hi all !
>
> We are having a strange problem using AJDT.
>
> We are writing an aspect that crosscuts the org.eclipse.jdt.core.dom.AST
> class and needs to access the AST.JLS2 and
> CompilationUnit.IMPORTS_PROPERTY constants. But we get an error that
> these constants are not declared in the AST class.
>
> When investigating to find where this error came from, we discovered
> that many Eclipse classes were duplicated in the aspectjtools.jar file.
> One of them is precisely the AST class. The problem is that this one
> does not declare our needed constants !
>
> So here are our questions :
>
> 1) Why do you need to duplicate all these classes ?

Timely question, I wrote a blog entry last week on what's going on here
that should explain things:
http://www.aspectprogrammer.org/blogs/adrian/2004/07/engine_ stripdow.html

>
> 2) If you need to (as we suppose, since you would not have done this
> just for fun :-)), why did you not duplicate the constants as well ?
>
> We suppose that you just copied the classes from other jars which were
> updated since then, so that yours are not up to date...

Prior to the update of the compiler classes discussed in the aformentioned
blog entry, the classes inside the jar were based on the JDT 3.0 M6
codebase. They've now been upgraded to the 3.0 final versions - and this
is what will be included in AJDT 1.1.12.

>
> If you did not modify the contents of these classes, we should be able
> to replace the AST class in the aspectjtools.jar file, right ?
>
> We really need these constants in our code...

All the above said, you should be able to pass a classpath to the AspectJ
compiler that does not include aspectjtools.jar and pick up any version of
the classes you need. ajc -classpath .....

>
> Thanks for your help !
>
> P.S. Thanks for the great tool...
> P.P.S. We are looking forward to seeing Lancaster released !
>
> Thierry Monney & al.



--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #582601 is a reply to message #39878] Fri, 06 August 2004 16:47 Go to previous message
Thierry Monney is currently offline Thierry MonneyFriend
Messages: 10
Registered: July 2009
Junior Member
Adrian Colyer wrote:

>
> Prior to the update of the compiler classes discussed in the
> aformentioned blog entry, the classes inside the jar were based on the
> JDT 3.0 M6 codebase. They've now been upgraded to the 3.0 final
> versions - and this is what will be included in AJDT 1.1.12.

That's great news ! Do you know when AJDT 1.1.12 will be released ? I quickly had a look at the
website but could not find any schedule.

> All the above said, you should be able to pass a classpath to the
> AspectJ compiler that does not include aspectjtools.jar and pick up any
> version of the classes you need. ajc -classpath .....

We will try !

Thanks for the fast answer !
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #582620 is a reply to message #39909] Fri, 06 August 2004 23:09 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
On Fri, 06 Aug 2004 18:47:19 +0200, Thierry Monney wrote:
> That's great news ! Do you know when AJDT 1.1.12 will be released ? I
> quickly had a look at the website but could not find any schedule.

It's difficult mapping out realistic schedules too far in advance because
we can't always predict how many people are going to contribute, and how
many bugs are going to come in etc. But I can say that 1.1.12 is
progressing at quite a pace, so you should expect it within a couple of
weeks. It's not going to be as big a release as 1.1.11, but will contain a
few enhancements and a number of bug fixes.

Regards,

Matt.
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #582685 is a reply to message #39940] Mon, 09 August 2004 07:06 Go to previous message
Thierry Monney is currently offline Thierry MonneyFriend
Messages: 10
Registered: July 2009
Junior Member
Matt Chapman wrote:
> On Fri, 06 Aug 2004 18:47:19 +0200, Thierry Monney wrote:
>
>>That's great news ! Do you know when AJDT 1.1.12 will be released ? I
>>quickly had a look at the website but could not find any schedule.
>
>
> It's difficult mapping out realistic schedules too far in advance because
> we can't always predict how many people are going to contribute, and how
> many bugs are going to come in etc. But I can say that 1.1.12 is
> progressing at quite a pace, so you should expect it within a couple of
> weeks. It's not going to be as big a release as 1.1.11, but will contain a
> few enhancements and a number of bug fixes.
>
> Regards,
>
> Matt.

A couple of weeks ? Sounds quite good ! We will be waiting eagerly !

Thank you again for the good work !

All the best.

Thierry
Re: Duplicate Eclipse classes in aspectjtools.jar ?! [message #583031 is a reply to message #39878] Tue, 07 September 2004 12:36 Go to previous message
Thierry Monney is currently offline Thierry MonneyFriend
Messages: 10
Registered: July 2009
Junior Member
Adrian Colyer wrote:
> Prior to the update of the compiler classes discussed in the
> aformentioned blog entry, the classes inside the jar were based on the
> JDT 3.0 M6 codebase. They've now been upgraded to the 3.0 final
> versions - and this is what will be included in AJDT 1.1.12.
>
Yep ! This version fixed our problem ! Thank you again !
Previous Topic:Why is weaving in aspects from another project not working?
Next Topic:Eclipse 3.1M1 and JDK 1.5
Goto Forum:
  


Current Time: Thu Mar 28 10:42:32 GMT 2024

Powered by FUDForum. Page generated in 0.03064 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top