Summary: | Compiler generates way too many errors | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philipe Mulet <philippe_mulet> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | erich_gamma |
Version: | 2.0 | ||
Target Milestone: | 2.0 M6 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Philipe Mulet
2002-05-07 07:52:35 EDT
If avoiding reporting similar errors on the same reference context (method/type/unit), the error count drops down to 754 for this scenario, almost cut by half. Can bring the number down to 738 if issuing same errors for invalid types, invalid argument types, field types and exception types. Here is a simpler heuristic to reduce the problem count down to a reasonable number (<= 50 per unit). If there are too many problems, we sort them, and keep the first 50 of them. Sorting is done using priorities, computed as follows: - base priority is 1000 - problem line number (if belows 0, then it is 0). - if problem is error: priority += 10000 - if problem is outside method: priority += 3000 - if problem is inside static method: priority +=1000 - if problem is first inside its context priority += 1000 Released heuristic into HEAD. Fixed |