dpolishuk / atinject

Automatically exported from code.google.com/p/atinject
0 stars 0 forks source link

@Inject on static fields and methods? #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The JavaDoc for @Inject says "Identifies injectable constructors, methods,
and fields. May apply to static as well as instance members" but doesn't
give clear guidance on what injection for static members means.

I would expect different language here, for example "Identifies injectable
constructors, instance methods, and instance fields. <remove sentence
starting with "May apply"; insert rest of first paragraph> Injection for
static members annotated with @Inject is undefined".

Original issue reported on code.google.com by bokowski on 11 Sep 2009 at 3:58

GoogleCodeExporter commented 9 years ago
This change occurred as part of r4. I'm trying to remember who requested it...

Original comment by crazybob...@gmail.com on 11 Sep 2009 at 4:58

GoogleCodeExporter commented 9 years ago
The request came from Oracle. They wanted to remove the sentence entirely. I 
added 
"may" as a compromise. It's not "undefined". It's either supported, or not, but 
the 
remaining rules still apply.

Original comment by crazybob...@gmail.com on 11 Sep 2009 at 5:07