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.
To analyze later work to improve accuracy of code model we need statistics of such problems. I.e. problems could be like: - included file is not found - lexer failed on regognizing symbol - parser failed on recognizing token - resolver doesn't resolve names correctly ...
Integrated changes: statistics is turned on with cnd.modelimpl.stat.level property. Level 0: - no statistics Level 1 - summary about first and last problems during file parsing - summary about lexer problems - summary about parser problems - summary about failed or recursive inclusions Level 2 - *** All from Level 1 *** - datailes about first/last found lexer/parser problem - detailes about the similar parser/lexer problems - datailes about inclusions (where was included from and how many times) Level 3 - *** All from Level 2 *** - detailes of stack trace for lexer/parser problems To use statistics from test harness: if (Diagnostic.getStatisticsLevel() == 0) { // need to set the default level Diagnostic.setStatisticsLevel(DEFAULT_TRACEMODEL_STATISTICS_LEVEL); } Diagnostic.initFileStatistics(file.getAbsolutePath()); ... Diagnostic.dumpFileStatistics(dumpFile);
no more critical after resolving 3 of 4 statistics
Downgrading in accordance with comment above
task was already fixed