This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 70175 - Running Checkstyle on certain Java source files generates an antlr.MismatchedTokenException
Summary: Running Checkstyle on certain Java source files generates an antlr.Mismatched...
Status: RESOLVED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: antlr (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-09 21:24 UTC by cmfriend
Modified: 2009-12-21 07:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NetBeans messages.log file (399.12 KB, text/plain)
2005-12-09 21:40 UTC, cmfriend
Details
A sample Java source that does generate the exception mentioned (12.06 KB, text/plain)
2005-12-09 21:47 UTC, cmfriend
Details

Note You need to log in before you can comment on or make changes to this bug.
Description cmfriend 2005-12-09 21:24:32 UTC
Product Version     = NetBeans IDE 4.1 (Build 200505031930)
Java; VM; Vendor    = 1.5.0_05; Java HotSpot(TM) Client VM 1.5.0_05-b05; Sun
Microsystems Inc.

Observed Behavior:  Running Checkstyle on certain (not all) Java source files
generates an antlr.MismatchedTokenException.  When this occurs, the Checkstyle
output reads as follows

package.html[0]: Missing package documentation file.
XSLElement.java[0]: File does not end with a newline.
XSLElement.java[43]: Got an exception - expecting EOF, found '}'
Done.

I assume the first two lines are not neccessarily problematic, only the third. 
The small red icon with a white minus sign shows up in the lower right hand
corner of the IDE.  Clicking this displays the message that the exception has
occurred and to post the issue.  This exception happens consistently on certain
source files, and consistently does not happen on others.

Expected behavior:  The exception should not be generated, and on several Java
source files it indeed isn't, though other Checkstyle faux pas may be.

Exact steps to reproduce the problem:
1.  Start the IDE
2.  Navigate to the java source file node in the Projects window
3.  Right click the source file node and choose Checkstyle
4.  The error mentioned above is generated in the Output - CheckStyle Results
window for certain source files but not for others

I apologize if this is not the correct forum for this post, or if I've omitted
any required/useful information.  Please let me know if any more information is
needed.

Thanks for looking into this issue.
Comment 1 cmfriend 2005-12-09 21:40:21 UTC
Created attachment 27699 [details]
NetBeans messages.log file
Comment 2 cmfriend 2005-12-09 21:47:22 UTC
Created attachment 27700 [details]
A sample Java source that does generate the exception mentioned
Comment 3 Jiri Prox 2007-09-17 21:48:19 UTC
Obsolete milestone, please reevaluate
Comment 4 Quality Engineering 2009-12-21 07:42:16 UTC
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. 

We apologize for any inconvenience.


Thank you.
The NetBeans Team