[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-47?page=all ]

Heiko W. Rupp updated XJD-47:
-----------------------------

    Assign To: xdoclet-devel (Use for new issues)  (was: Heiko W. Rupp)

> Extraneous ";" causes XDoclet Parser to Fail
> --------------------------------------------
>
>          Key: XJD-47
>          URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-47
>      Project: XJavaDoc
>         Type: Bug
>   Components: Parser
>     Versions: 1.0.2
>  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)
>     Reporter: Jim Brownfield
>     Assignee: xdoclet-devel (Use for new issues)
>     Priority: Minor
>      Fix For: 1.5

>
>
> 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]

-- 
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: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to