SourceForge: Modify: 226676 - java-parsing: assertion bug w/ switch-statement

OSDN: Open Source Development Network: Newsletters - Jobs | SEARCH: |  |

Logged In: tim_littlefair
Logout Register New Project Account Maintenance Change My Theme My Personal Page Bookmark this page
Search
Require All Words
Project: C and C++ Code Counter
Project Summary Project Admin
Software
Software Map New Releases Other Site Mirrors Code Snippet Library
SourceForge.net
Site Docs Work for Sourceforge! Discussion Forums Project Help Wanted Top Projects Site Status Contact Support jobs.osdn.com Compile Farm Contact SourceForge.net About SourceForge.net
SourceForge.net Foundries
About Foundries Clustering Distributed Computing Linux on Large Systems Linux Kernel Linux Drivers 3D Games Java Printing Storage
|  | Project: C and C++ Code Counter ## Trackers Summary | Admin | Home Page | Forums | Tracker | Bugs | Support | Lists | Tasks | News | Files | Submit New | Browse | Reporting | Admin ## [ #226676 ] java-parsing: assertion bug w/ switch-statement
(?)
Submitted By: Erik Pischel (`epischel`) | Date Submitted: 2000-12-22 12:51
Data Type: (?) |
Category: (?) (admin) | Group: (?) (admin)
Assigned To: (?) (admin) | Priority: (?)
Status: (?) | Resolution: (?)
Summary: (?)
Hi, while using cccc for a project, the processing of 3 out of 167 java files would be aborted due to cccc: java.cpp:1278: void JParser::ctorDefinition(const class string &, enum Visibility): Zusicherung »className==LT(1)->getText()« nicht erfüllt. Aborted (Zusicherung ~= assertion, nicht erfüllt ~= not fullfilled) I reduced much code of one of those files and here it is: ==================BEGIN================================= public class EwoisErrorHandler { public synchronized void handleError( int fehlertyp ) { String lvTyp = ""; switch (fehlertyp) { case WARNING: lvTyp = "Warnung"; break; case LOGINFO: lvTyp = "LogInfo"; break; } StringBuffer buffer = new StringBuffer(lvTyp); buffer.append("Zeit: ").append(""); } int WARNING = 1; int LOGINFO = 2; } ====================END============================== But when deleting ".append("")" (last line in the method), cccc does not abort (although printing out error messages). Other switching statements are processed w/o abortion. bye, erik
Use Canned Response: (?) (admin) OR Attach A Comment: (?) ### Followups: ### No Followups Have Been Posted
Check to Upload & Attach File: (?) File Description: #### Existing Files:
Delete | Name | Description | Download
No Files Currently Attached
#### Change Log: ### No Changes Have Been Made to This Item

Show Source