[aspectwerkz-dev] [jira] Deleted: (AW-114) AspectC sees java.lang.Object as an aspect
| Newsgroups | gmane.comp.java.aspectwerkz.devel |
|---|---|
| Message-ID | <[email protected]> |
[ http://jira.codehaus.org/browse/AW-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
[email protected] deleted AW-114:
---------------------------------
> AspectC sees java.lang.Object as an aspect
> ------------------------------------------
>
> Key: AW-114
> URL: http://jira.codehaus.org/browse/AW-114
> Project: AspectWerkz
> Issue Type: Bug
> Reporter: Jonas Boner
> Assignee: Alexandre Vasseur
>
> From Vincent:
> Hi Alex,
> Some more information (after debugging). The code in AspectC that
> produces the java.lang.Object is:
> final QDoxParser qdoxParser = new QDoxParser(sourcePath);
> After debugging QDox 1.3, I can see it comes from the following piece of
> code in QDox's JavaClass.java:
> public void setJavaClassCache(JavaClassCache javaClassCache) {
> this.javaClassCache = javaClassCache;
> // reassign OBJECT. This will make it have a "source" too,
> // causing Type.getJavaClass() to return a JavaClass, instead
> // of null.
> OBJECT =
> javaClassCache.getClassByName("java.lang.Object").asType();
> }
> Thus java.lang.Object gets added to the list of classes in QDox Parser
> and qdoxParser.getAllClassNames() returns it:
> final QDoxParser qdoxParser = new QDoxParser(sourcePath);
> String[] classNames = qdoxParser.getAllClassNames();
> It then gets enhanced by AspectC (lines 99-114 of AspectC.java).
> Thus it seems a "normal" thing to me that the java.lang.Object class is
> generated in the output dir of AspectC.
> I'm curious to know why you don't get it :-) Maybe you're using an older
> version of QDox (i.e. < 1.3)?
> Any idea?
> AFAICS, we should have a check in AspectC not to enhance
> java.lang.Object.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email