Roedy Green said:
I would rather it did something more useful with its list of errors,
sorting them by severity and grouping them so you can easily tell if
you pared it down sufficiently for your current purpose.
I definitely would like to see you be able to specify a severity level
for each warning, and then sort by that. I might be persuaded to turn
back on the unchecked cast warnings if this were the case. I could set
them to a lower priority because they are often impossible to solve; and
they would no longer prevent me from seeing real, important warnings
such as unused variables or assignments with no effect.
Even better, yacc used to have (and probably still has) a warning that
was impossible to get rid of in many situations, and the tool provided a
mechanism to acknowledge the issue so that it would stop issuing the
warning again until something changed. I didn't like the details of the
situation with yacc (it used the number of warnings, which was
dangerous), but the idea was great. I would love to be able to tell the
compiler (Eclipse, in this case) that I know I have an unchecked cast
and it's okay with me... and then it would shut up until I actually
changed something in that logical area of code -- such as any change to
that line, or a change that modifies the type of the expression that is
assigned or the type of the variable being assigned to.
A feature like that would essentially bail Sun out of the tar pit they
have created with generics. I'd rather avoid a language feature because
I still hope Sun comes to its senses and fixes generics to eliminate
type erasure some time soon.
--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation