Discussion:
[Xdoclet-devel] [XDoclet-JIRA] Created: (XJD-64) Unable to parse Java files with JDK5 anotated elements (@SuppressWarnings)
n***@atlassian.com
2005-08-17 01:23:59 UTC
Permalink
Message:

A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64

Here is an overview of the issue:
---------------------------------------------------------------------
Key: XJD-64
Summary: Unable to parse Java files with JDK5 anotated elements (@SuppressWarnings)
Type: Bug

Status: Open
Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: XJavaDoc
Components:
Parser

Assignee: xdoclet-devel (Use for new issues)
Reporter: Darryl Miles

Created: Tue, 16 Aug 2005 10:21 PM
Updated: Tue, 16 Aug 2005 10:21 PM

Description:
Java5 supports a feature in the language called "Java Annotations".

XDoclet should accept them and ignore without throwing out the file as an error.


An example annotation:

@SuppressWarnings("serial")


Possibly Helpful Supporting Specification Documents:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html



---------------------------------------------------------------------
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
n***@atlassian.com
2005-08-17 04:41:30 UTC
Permalink
The following comment has been added to this issue:

Author: Andrew Stevens
Created: Wed, 17 Aug 2005 1:39 AM
Body:
Are you using the latest version from CVS? This sounds like a duplicate of XJD-41; there's been a lot of work done to add support for 1.5 syntax since the current release.

---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17151

---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64

Here is an overview of the issue:
---------------------------------------------------------------------
Key: XJD-64
Summary: Unable to parse Java files with JDK5 anotated elements (@SuppressWarnings)
Type: Bug

Status: Open
Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: XJavaDoc
Components:
Parser

Assignee: xdoclet-devel (Use for new issues)
Reporter: Darryl Miles

Created: Tue, 16 Aug 2005 10:21 PM
Updated: Wed, 17 Aug 2005 1:39 AM

Description:
Java5 supports a feature in the language called "Java Annotations".

XDoclet should accept them and ignore without throwing out the file as an error.


An example annotation:

@SuppressWarnings("serial")


Possibly Helpful Supporting Specification Documents:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html



---------------------------------------------------------------------
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
n***@atlassian.com
2005-08-18 17:23:42 UTC
Permalink
The following comment has been added to this issue:

Author: Darryl Miles
Created: Wed, 17 Aug 2005 9:21 PM
Body:
CVS version no, xdoclet 1.2.3.

Happy to test alpha/beta or release versions.

Am happy to wait until a new release is published to close this issue.

---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17161

---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64

Here is an overview of the issue:
---------------------------------------------------------------------
Key: XJD-64
Summary: Unable to parse Java files with JDK5 anotated elements (@SuppressWarnings)
Type: Bug

Status: Open
Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: XJavaDoc
Components:
Parser

Assignee: xdoclet-devel (Use for new issues)
Reporter: Darryl Miles

Created: Tue, 16 Aug 2005 10:21 PM
Updated: Wed, 17 Aug 2005 9:21 PM

Description:
Java5 supports a feature in the language called "Java Annotations".

XDoclet should accept them and ignore without throwing out the file as an error.


An example annotation:

@SuppressWarnings("serial")


Possibly Helpful Supporting Specification Documents:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html



---------------------------------------------------------------------
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
digifork (JIRA)
2005-08-22 19:04:06 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17183 ]

digifork commented on XJD-64:
-----------------------------

I just tried the latest CVS snapshot versions of xjavadoc 1.5 and xdoclet 1.3. I am trying to run xdoclet on the following code:

@SuppressWarnings("unused")
PoolableConnectionFactory poolableConnectionFactory;

I get the following errors:

[webdoclet] Error parsing File DBConnection.java:Parse error at line 472, column 10. Encountered: @
[springdoclet] Error parsing File DBConnection.java:Parse error at line 472, column 10. Encountered: @

For some reason the springdoclet and webdoclet ant calls are ignoring my fileset which excludes this file; so in the meantime I will have to live with this error.

So, I would say this bug has been verified and is still outstanding.
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
Gemig Inteskrap (JIRA)
2005-09-01 04:55:18 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17234 ]

Gemig Inteskrap commented on XJD-64:
------------------------------------

I have a similar issue using enums.

My code looks like this:
--------------------------------------------------------------------------------------------------
public class ParseErrorException extends Exception {

public enum Code {
EXAMPLE ("Example text");
String text = "";

Code(String t) {
this.text = t;
}

public String getText() {
return this.text;
}
}

private Code errorCode;

public ParseErrorException(Code ec) {
errorCode = ec;
}

public Code getErrorCode() {
return this.errorCode;
}

public String getMessage() {
return this.errorCode.getText();
}

}
--------------------------------------------------------------------------------------------------

Which generates the following error:
--------------------------------------------------------------------------------------------------
[ejbdoclet] Error parsing File [some long path]\ParseErrorException.java:Encountered "{" at line 38, column 26.
[ejbdoclet] Was expecting one of:
[ejbdoclet] "[" ...
[ejbdoclet] ";" ...
[ejbdoclet] "," ...
[ejbdoclet] "=" ...
[ejbdoclet] "(" ...
--------------------------------------------------------------------------------------------------

Since I used xdoclet-1.2.1.jar and friends (as provided in Eclipse 3.1) I realise this report is of limited use.
Sorry.
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
Anton Adamansky (JIRA)
2005-09-02 05:08:30 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17239 ]

Anton Adamansky commented on XJD-64:
------------------------------------

Please use the _latest_ CVS version of xjavadoc.
Your issues have been not confirmed by test cases.
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
Anton Adamansky (JIRA)
2005-09-02 05:10:19 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=all ]

Anton Adamansky closed XJD-64:
------------------------------

Resolution: Cannot Reproduce

not confirmed issue
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
Anton Adamansky (JIRA)
2005-09-02 08:12:15 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17242 ]

Anton Adamansky commented on XJD-64:
------------------------------------

CVS COMMIT LOG:
SUBJECT: [Xdoclet-devel] CVS: xjavadoc/junit/xjavadoc XJavaDocTestJ15.java,1.2,1.3
Test cases concerning XJD-64
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
Anton Adamansky (JIRA)
2005-09-02 08:13:08 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17243 ]

Anton Adamansky commented on XJD-64:
------------------------------------

CVS COMMIT LOG:
SUBJECT: [Xdoclet-devel] CVS: xjavadoc/test XJD64Part2.java,NONE,1.1 XJD64part1.java,NONE,1.1
Test cases concerning XJD-64
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
digifork (JIRA)
2005-10-17 13:51:49 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=comments#action_17321 ]

digifork commented on XJD-64:
-----------------------------

I see that this issue is closed, but it is still happening with the lastest CVS version of xjavadoc that I checked out and built this morning.

What do you need in order to reproduce this error?
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
Anton Adamansky (JIRA)
2005-10-31 16:41:28 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=all ]

Anton Adamansky reopened XJD-64:
--------------------------------


May be this issue can't be reproduced but
But 'Didifork' Please provide the runnable code to reproduce this problem. Thanks.
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
digifork (JIRA)
2005-11-03 13:05:31 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=all ]

digifork updated XJD-64:
------------------------

Attachment: ann_error.tar.gz
ant
Buildfile: build.xml

compile:
[javac] Compiling 1 source file to /home/djshinto/dev/repo

generate:
[webdoclet] (XDocletMain.start 47 ) Running <deploymentdescriptor/>
[webdoclet] Generating web.xml.
[webdoclet] Error parsing File /home/djshinto/dev/repo/AnnError.java:Parse error at line 3, column 9. Encountered: @
[springdoclet] (XDocletMain.start 47 ) Running <springxml/>
[springdoclet] Generating spring.xml.
[springdoclet] Error parsing File /home/djshinto/dev/repo/AnnError.java:Parse error at line 3, column 9. Encountered: @

BUILD SUCCESSFUL
Total time: 12 seconds
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Attachments: ann_error.tar.gz
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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
Jon Schewe (JIRA)
2010-02-20 22:37:03 UTC
Permalink
[ http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17920#action_17920 ]

Jon Schewe commented on XJD-64:
-------------------------------

I see this error as well, however my web.xml file is generated correctly.
--------------------------------------------------------------------------
Key: XJD-64
URL: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-64
Project: XJavaDoc
Issue Type: Bug
Components: Parser
Reporter: Darryl Miles
Assignee: xdoclet-devel (Use for new issues)
Attachments: ann_error.tar.gz
Java5 supports a feature in the language called "Java Annotations".
XDoclet should accept them and ignore without throwing out the file as an error.
@SuppressWarnings("serial")
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/SuppressWarnings.html
--
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...