Discussion:
[Xdoclet-devel] [XDoclet-JIRA] Created: (XDT-1698) Parse error on for loop with legal array element declaration
Fred Muhlenberg (JIRA)
2008-08-25 15:51:21 UTC
Permalink
Parse error on for loop with legal array element declaration
------------------------------------------------------------

Key: XDT-1698
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1698
Project: XDoclet
Issue Type: Bug
Components: XDoclet Module
Affects Versions: 1.2.3
Environment: Windows XP SP2
Java 1.5.0_07
xjavadoc-1.5-snapshot050611.jar
Reporter: Fred Muhlenberg
Assignee: xdoclet-devel (Use for new issues)
Priority: Minor


The following Java declaration causes a parse error when running XDoclet

for( Object obj[] : list )

where list is any legal Collections or array element.

XDoclet reports:

Error parsing file F
Parse error at line ### , column ##. Encountered :

The work around is to move the []'s to the class specification, as in:

for( Object[] obj : list )
--
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
Loading...