Menu

#2 varhigh doesn't recognize "correct" static-var syntax

open
nobody
None
5
2005-04-04
2005-04-04
Martin Jost
No

varhigh doesn't recognize "correct" static-var syntax
(Classname.Varname)
The variable in that case, doesn't get highlighted.

see example below:
----------------------- snip, snip -----------------------
package varhigh;

public class staticvar
{
public staticvar()
{
varhigh = 5; // detected
this.varhigh = 6; // dubious syntax, but detected
nevertheless ;-)
staticvar.varhigh=7; // correct syntax, NOT
detected !!!!
}

private static int varhigh;
}

----------------------- snip, snip -----------------------

Discussion


Log in to post a comment.

MongoDB Logo MongoDB