Summary: | code assist suggests uninitialized temps | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> |
Component: | Core | Assignee: | David Audel <david_audel> |
Status: | RESOLVED WORKSFORME | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 2.1 | ||
Target Milestone: | 3.0 M7 | ||
Hardware: | PC | ||
OS: | Windows 2000 | ||
Whiteboard: |
Description
Adam Kiezun
2003-05-15 13:15:01 EDT
int number = number = 0; This is legal code. On the right-hand side, 'number' should not be proposed as the best match though. David - pls verify. it's especially annoying in scenarios like this (which i stuble upon over and over): void foo(Bar[] bars){ for(int i= 0; i < bars.length; i++){ Bar bar= b<CODE ASSSIST> } } it suggests 'bar' as first, while i clearly want 'bars' to be the first on that list We could give an higher relevance for an array variable ("bars"). We could give the smallest relevance for the initialized variable ("bar"). Last suggestion got implemented and does the trick. |