Campbell Ritchie wrote:That could have shown return this; or return new Test3();
By the way: which section in the JLS?
Campbell Ritchie wrote:You can still write rubbish like...and it will both compile and run with the expected result.
it would have been clearer to just write Animal.staticMethod(...) and be done with it
Ricky Bee wrote:but let me rephrase my previous question (and steer it a little from the inheritance of a static method problem which originated it in the first place):
Ricky Bee wrote:is such a structure a common-place in Java programing? I mean, is it normal to instantiate an object from a superclass and then pass it an object from a subclass?
Junilu Lacar wrote:Campbell is trying to point out an example where a call using a object reference instead of a class reference actually does more than just make the code confusing
Sam Ritter wrote:Sorry about the confusion. It started as what I thought was a simple issue of static methods. It evolved into more details about what I was doing. Responses made it clear my entire approach was wrong (i.e. poor programming practices).
Luke jaryszek wrote:But with this text pane i should have only place for 4 digits. (number from 1 to 100).
Campbell Ritchie wrote:Does that code compile without event -> ?
Scott Eric Catalano wrote:So to re-iterate my question. The JButton and JMenuItem need to call the same Action Listener.
Glen Chamisa wrote:It seems even when I use BI_RLE4, I get the same issue. However, with the other string types, BI_RGB and BI_BITFIELDS the program runs fine. Can someone explain this cos I don't understand the problem.
peter m hayward wrote:can you expand upon the Never do I/O in a renderer