Re: Java static analysis tool (JavaChecker) has been released

"Sander Vesik" <sander@haldjas.folklore.ee>
1 Dec 2002 23:00:56 -0500

          From comp.compilers

Related articles
Java static analysis tool (JavaChecker) has been released ronih@luukku.com (Roni Hursti) (2002-11-17)
Re: Java static analysis tool (JavaChecker) has been released sander@haldjas.folklore.ee (Sander Vesik) (2002-12-01)
Re: Java static analysis tool (JavaChecker) has been released joachim_d@gmx.de (Joachim Durchholz) (2002-12-03)
| List of all articles for this month |
From: "Sander Vesik" <sander@haldjas.folklore.ee>
Newsgroups: comp.compilers
Date: 1 Dec 2002 23:00:56 -0500
Organization: ERA/EKI FO
References: 02-11-090
Keywords: optimize, Java, comment
Posted-Date: 01 Dec 2002 23:00:56 EST

Roni Hursti <ronih@luukku.com> wrote:
> Hi!
>
> I've released Java static analysis tool (JavaChecker) in
> (<http://javachecker.sourceforge.net/>).
>
> JavaChecker checks for the following things in Java source files:
>
> - It warns if function name equals constructor name
> - It warns if default constructor is not found in the class
> - It warns if multiply or divide operator is used instead
> of shift operator for two's power


Why? Using shift instead of multiply or divide is nice optimisation
(though one you'd expect the compiler to make) but also one that
doesn't improve readability. Not something I would expect a checker to
flag...
--
Sander
[Right shifting three bits is not the same as dividing by 8. That's a
famous optimizer bug from way back. -John]


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.