[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: japi and public references to non-public types
From: |
Mark Wielaard |
Subject: |
Re: japi and public references to non-public types |
Date: |
Fri, 07 Oct 2005 21:59:26 +0200 |
On Fri, 2005-10-07 at 14:51 -0400, Stuart Ballard wrote:
> On 07 Oct 2005 12:38:03 -0600, Tom Tromey <address@hidden> wrote:
> > Spell-check identifiers. There's at least one bug like this in java.
> > Just today I was looking at code with "primative" all over...
>
> How do you do that though in a way that catches "primative" but
> doesn't catch "Impl" or "Spi" or "Tls" (just found in a quick scan
> through jdk-vs-classpath japi errors)? Hardcode those as exceptions to
> the rule?
That might be hard. But what would be useful is flagging wrongly spelled
overridden public/protected method names (equal -> equals, hascode ->
hashCode, finalise -> finalize) or a void method name that is identical
to a constructor name, or equal to a name of a (future) reserved word
like assert or enum.
Cheers,
Mark
signature.asc
Description: This is a digitally signed message part
- Re: japi and public references to non-public types, (continued)
- Re: japi and public references to non-public types, Mark Wielaard, 2005/10/05
- RE: japi and public references to non-public types, Jeroen Frijters, 2005/10/05
- Message not available
- Re: japi and public references to non-public types, Stuart Ballard, 2005/10/05
- Re: japi and public references to non-public types, Tom Tromey, 2005/10/05
- Re: japi and public references to non-public types, Tom Tromey, 2005/10/07
- Re: japi and public references to non-public types, Stuart Ballard, 2005/10/07
- Re: japi and public references to non-public types, Tom Tromey, 2005/10/07
- Re: japi and public references to non-public types,
Mark Wielaard <=
- Re: japi and public references to non-public types, Tom Tromey, 2005/10/07
RE: japi and public references to non-public types, Jeroen Frijters, 2005/10/05
RE: japi and public references to non-public types, Jeroen Frijters, 2005/10/05