My background is in Unix C programming, so bear with me...
When I get error messages such as:
"Cannot make a static reference to the non-static field <xyz>"
I am able to move things around and make the program work. I do have a
rough idea about the issues involved, but I would like to take a
deeper dive into it, and reach a level at which I can predict the
above class of compilation problems before they I introduce them in my
code. Is there any concise, specific explanation around?
-Ramon
Roedy Green - 11 Nov 2007 07:34 GMT
On Sat, 10 Nov 2007 23:18:58 -0800, Ramon F Herrera
<ramon@conexus.net> wrote, quoted or indirectly quoted someone who
said :
> "Cannot make a static reference to the non-static field <xyz>"
see
http://mindprod.com/jgloss/compileerrormessages.html#CANTMAKESTATICREF
http://mindprod.com/jgloss/static.html
http://mindprod.com/jgloss/instance.html
http://mindprod.com/jgloss/final.html
etc. Just look up the word of interest in the Java glossary and
follow the links.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com