Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » type is not exposed to the weaver???
type is not exposed to the weaver??? [message #41964] Mon, 04 October 2004 15:15 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
I am trying to implement a simplistic "copyright" feature, i.e. each
and every class should provide a variable or method (to be decided
later) to ask it for the copyright. The relevant snippet from my
aspect reads

----------------
.....
declare parents: (<path>..*) // all classes in and under that
package
implements Copyright;
.....
----------------

Strange enough, for three (at least for me apparently randomly chosen
classes) out of my 100+ classes I am getting the following warning
message:

----------------
Severity Description Resource In Folder Location Creation Time
1 this affected : <path.ClassName
here>[Xlint:typeNotExposedToWeaver] <filename>.aj <project>/<rel.path>
line 58 October 4, 2004 5:06:40 PM

----------------

I can't make any sense out of this warning nor do have I any clue what
I could do to fix this. Could some kind soul elaborate a bit on this,
what this means or what AJDT is trying to tell me here and what I
could possible do about this?

Thanks,
Michael
Re: type is not exposed to the weaver??? [message #41995 is a reply to message #41964] Mon, 04 October 2004 15:24 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
Maybe I should add here, that one of the three classes listed is the
Copyright-interface, which currently is still empty. Here I can
understand, that the "weaver" has nothing to add to.

But the other two classes are "normal" classes, that both contain
quite a number of methods. One of them extends the other, but other
than that, they don't appear to be in any sense special (no "final
class ..." or "static class ..." or whatever).

So these two really puzzle me, why they should not be "exposed to the
weaver"...

Michael
Re: type is not exposed to the weaver??? [message #42026 is a reply to message #41995] Mon, 04 October 2004 15:34 Go to previous message
Eclipse UserFriend
Originally posted by: adrian_colyer.uk.ibm.com

Michael Moser wrote:

> Maybe I should add here, that one of the three classes listed is the
> Copyright-interface, which currently is still empty. Here I can
> understand, that the "weaver" has nothing to add to.

> But the other two classes are "normal" classes, that both contain
> quite a number of methods. One of them extends the other, but other
> than that, they don't appear to be in any sense special (no "final
> class ..." or "static class ..." or whatever).

> So these two really puzzle me, why they should not be "exposed to the
> weaver"...

> Michael

"Type not exposed to weaver" messages can occur for a number of reasons.
One common cause is having needed types on the *classpath*, but not on the
*inpath*. Only types compiled from source, or class files in directories
and jars placed on the inpath are available to the weaver for linking with
aspects. Classes simply on the classpath are unchanged by the weaving
process. A second common reason for this message is that one of the types
*referred to* by a class or aspect has not been provided (in general, the
AspectJ compiler likes a complete 'world' in order to do its work). We're
working on improving the 'type not exposed' messages to give more
accurative and informative messages in such situations...
Re: type is not exposed to the weaver??? [message #583734 is a reply to message #41964] Mon, 04 October 2004 15:24 Go to previous message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
Maybe I should add here, that one of the three classes listed is the
Copyright-interface, which currently is still empty. Here I can
understand, that the "weaver" has nothing to add to.

But the other two classes are "normal" classes, that both contain
quite a number of methods. One of them extends the other, but other
than that, they don't appear to be in any sense special (no "final
class ..." or "static class ..." or whatever).

So these two really puzzle me, why they should not be "exposed to the
weaver"...

Michael
Re: type is not exposed to the weaver??? [message #583753 is a reply to message #41995] Mon, 04 October 2004 15:34 Go to previous message
Adrian Colyer is currently offline Adrian ColyerFriend
Messages: 61
Registered: July 2009
Member
Michael Moser wrote:

> Maybe I should add here, that one of the three classes listed is the
> Copyright-interface, which currently is still empty. Here I can
> understand, that the "weaver" has nothing to add to.

> But the other two classes are "normal" classes, that both contain
> quite a number of methods. One of them extends the other, but other
> than that, they don't appear to be in any sense special (no "final
> class ..." or "static class ..." or whatever).

> So these two really puzzle me, why they should not be "exposed to the
> weaver"...

> Michael

"Type not exposed to weaver" messages can occur for a number of reasons.
One common cause is having needed types on the *classpath*, but not on the
*inpath*. Only types compiled from source, or class files in directories
and jars placed on the inpath are available to the weaver for linking with
aspects. Classes simply on the classpath are unchanged by the weaving
process. A second common reason for this message is that one of the types
*referred to* by a class or aspect has not been provided (in general, the
AspectJ compiler likes a complete 'world' in order to do its work). We're
working on improving the 'type not exposed' messages to give more
accurative and informative messages in such situations...
Previous Topic:type is not exposed to the weaver???
Next Topic:aspects across eclipse projects?
Goto Forum:
  


Current Time: Fri Apr 19 02:16:51 GMT 2024

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

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

Back to the top