[
http://opensource.atlassian.com/projects/xdoclet/browse/XJD-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17890#action_17890
]
Nick Brachet commented on XJD-41:
---------------------------------
Here's a patch to support nested annotations:
--- javacc/Java1.5x.orig 2005-06-10 20:08:50.000000000 -0400
+++ javacc/Java1.5x.jjt 2009-01-26 13:21:01.000000000 -0500
@@ -2636,11 +2636,23 @@
{
"@" "interface" name=<IDENTIFIER>
{
+ if (sourceClass.isInner()) {
+
+ if (log.isDebugEnabled()) log.debug("Inner sourceClass.setName=" +
name.image);
+ sourceClass.setName(name.image);
+ sourceClass.setInterface(true);
+ _xJavaDoc.addPackageMaybe( _packageName ).addClass(sourceClass);
+ _xJavaDoc.addSourceClass( sourceClass );
+
+ } else {
+
+ if (log.isDebugEnabled()) log.debug("sourceClass.setQName=" +
Util.getQualifiedNameFor(_packageName, name.image));
sourceClass.setQualifiedName(Util.getQualifiedNameFor(_packageName,
name.image));
sourceClass.setInterface(true);
_xJavaDoc.addPackageMaybe( _packageName ).addClass(sourceClass);
_xJavaDoc.addSourceClass(sourceClass);
}
+ }
AnnotationTypeBody()
> Support Java 1.5 Syntax ?
> -------------------------
>
> Key: XJD-41
> URL:
> http://opensource.atlassian.com/projects/xdoclet/browse/XJD-41
> Project: XJavaDoc
> Issue Type: Improvement
> Components: Parser
> Affects Versions: 1.0.2
> Reporter: Hao Chen
> Assignee: xdoclet-devel (Use for new issues)
> Priority: Critical
> Fix For: 1.5
>
> Attachments: xjavadoc-1.1-j5-src.zip, xjavadoc-1.1-j5-v2.jar,
> xjavadoc-1.1-j5-v3.jar, xjavadoc-1.1-j5-v4.jar, xjavadoc-1.1-j5.zip,
> xjavadoc-jdk15-patch.diff, xjavadoc-src-1.1-j5-v4.zip
>
> Time Spent: 1 hour, 30 minutes
> Remaining Estimate: 0 minutes
>
> Is there any plan to upgrade the parser to support Java 1.5 syntax?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel