|
Re: ITDed method refers to missing type [message #73340 is a reply to message #73303] |
Mon, 23 February 2009 18:56 |
Eclipse User |
|
|
|
Originally posted by: andrew.eisenberg.springsource.com
In the past, there was a bug that if ITDs were not fully qualified *or* the
target type did not import the referenced classes, there would be the editor
error that you mentioned below. I thought that this had been addressed in
recent releases of AJDT, but apparently not.
In the short term, you can try fully-qualifying the ITDs (ie- java.util.List
MyClass.doSomething(java.util.Set set) { ... } ). See if that addresses
your problem.
Can you send the offending ITDs to me. Would be great if you can include
the full aspect and target type. If you don't want to send to the
newsgroup, you can send to me directly.
On 23/02/09 8:38 AM, in article
cf011e0db94ad43550a8e692342f0894$1@www.eclipse.org, "Filip Croes"
<filip.croes@cronos.be> wrote:
> While playing along with AJDT and AspectJ Inter Type Declarations I came
> across the following annoyance:
>
> When I create an Aspect with an ITD method that returns a custom class
> object (from an included dependency) and declare the necessary import
> statements in my Aspect, those imports are not automatically weaved in. It
> gives me the error "The method ... from the type ... refers to the missing
> type ..." in my client application, without an Eclipse quick fix
> suggestion :|
>
> When I add the imports manually, everything compiles correctly...
> but! a CTRL-SHIFT-F will remove the import again :(
>
> Since we have a team rule to always format the code before committing, I
> expect a lot of problems here!
>
>
>
|
|
|
|
|
Re: ITDed method refers to missing type [message #599699 is a reply to message #73303] |
Mon, 23 February 2009 18:56 |
Andrew Eisenberg Messages: 77 Registered: July 2009 |
Member |
|
|
In the past, there was a bug that if ITDs were not fully qualified *or* the
target type did not import the referenced classes, there would be the editor
error that you mentioned below. I thought that this had been addressed in
recent releases of AJDT, but apparently not.
In the short term, you can try fully-qualifying the ITDs (ie- java.util.List
MyClass.doSomething(java.util.Set set) { ... } ). See if that addresses
your problem.
Can you send the offending ITDs to me. Would be great if you can include
the full aspect and target type. If you don't want to send to the
newsgroup, you can send to me directly.
On 23/02/09 8:38 AM, in article
cf011e0db94ad43550a8e692342f0894$1@www.eclipse.org, "Filip Croes"
<filip.croes@cronos.be> wrote:
> While playing along with AJDT and AspectJ Inter Type Declarations I came
> across the following annoyance:
>
> When I create an Aspect with an ITD method that returns a custom class
> object (from an included dependency) and declare the necessary import
> statements in my Aspect, those imports are not automatically weaved in. It
> gives me the error "The method ... from the type ... refers to the missing
> type ..." in my client application, without an Eclipse quick fix
> suggestion :|
>
> When I add the imports manually, everything compiles correctly...
> but! a CTRL-SHIFT-F will remove the import again :(
>
> Since we have a team rule to always format the code before committing, I
> expect a lot of problems here!
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04363 seconds