The following comment has been added to this issue:

     Author: Andrew Stevens
    Created: Thu, 16 Sep 2004 7:45 PM
       Body:
Parser issues should be logged against the xjavadoc project in JIRA; I'm moving this 
issue there.
---------------------------------------------------------------------
View this comment:
  
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1066?page=comments#action_14867

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1066

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-1066
    Summary: Extraneous ";" causes XDoclet Parser to Fail
       Type: Bug

     Status: Open
   Priority: Minor

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             Parser
   Versions:
             1.0.2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Jim Brownfield

    Created: Mon, 13 Sep 2004 5:36 PM
    Updated: Thu, 16 Sep 2004 7:45 PM
Environment: $uname -a
Linux xxxxx.xxxxxx.xxx 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i686 unknown 
unknown GNU/Linux
$ java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)


Description:
Certain circumstances where an extraneous ";" exists in the source code causes XDoclet 
to fail where the java compilers execute properly:

Example:

The code snipped below has an inner static class defined that is terminated by a ";":

public class MyClass {
        public static class RevisionInformation {
                public static String revisionInformation() {
                        return "$Revision: 1.20 $";
                }
        };

...

This will cause XDoclet to fail with an error like:

[webdoclet] Generating web.xml.
[webdoclet] Error parsing File 
/home/xxx/xxx/src/com/xxx/xxx/xxx/MyClass.java:Encountered ";" at line 23, column 10.
[webdoclet] Was expecting one of:
[webdoclet]     "abstract" ...
[webdoclet]     "boolean" ...
[webdoclet]     "byte" ...
[webdoclet]     "char" ...
[webdoclet]     "class" ...
[webdoclet]     "double" ...
[webdoclet]     "final" ...
[webdoclet]     "float" ...
[webdoclet]     "int" ...
[webdoclet]     "interface" ...
[webdoclet]     "long" ...
[webdoclet]     "native" ...
[webdoclet]     "private" ...
[webdoclet]     "protected" ...
[webdoclet]     "public" ...
[webdoclet]     "short" ...
[webdoclet]     "static" ...
[webdoclet]     "synchronized" ...
[webdoclet]     "transient" ...
[webdoclet]     "void" ...
[webdoclet]     "volatile" ...
[webdoclet]     "strictfp" ...
[webdoclet]     <IDENTIFIER> ...
[webdoclet]     "{" ...
[webdoclet]     "}" ...
[webdoclet]




---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to