Community
Participate
Working Groups
I20061212-0010 Have: public class Bug { void foo() { new Bug() { void fooBar() { } }.fooBar(); } } Using the 'Convert anonymous to nested class' quick assist forces me to 1. use final 2. not use static I have to manually fix this up each time to match my desired default signature.
You could argue that this is an enhancement but the way it currently works I probably wouldn't use that feature and go for the refactoring.
The inner class should be created static if possible. Final makes sense too. But note that static will be the exception, most anonymous classes reference instance methods. I believe having a dialog is nicer than manually changing modifiers, but of course that's a matter of taste.
hm, I wanted to say 'takes more time than'
>hm, I wanted to say 'takes more time than' How's that related to previous comments?
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.