Allow rule to specify that a class cannot have statics
Brought to you by:
barredijkstra,
melquiades
Hi Paul,
I am very excited about using your 'Macker' tool, and would
like to suggest a filtering change which would be very
useful.
Essentially, I would like to use Macker to prevent the use of
the 'static' keyword in certain classes. This will allow Macker
to detect when inexperienced developers create static
references in shared/pooled classes on an app server.
So you would have a rule which says no class matching
com.employer.connectionpool.* may contain static
references, each instance must keep its data separate.
Thanks for a great tool.
cheers,
Richard
Richard Scarrott
Logged In: YES
user_id=41726
Should be handled by combination of planned features:
-- "all X must match Y" rules
-- patterns which match classes with/without certain kinds of
members