google / google/guice

requestStaticInjection should not imply a request for static injection on superclass members

Open
#601 7 comments 0 reactions 0 assignees View on GitHub
imported
Dominant language
Java
Stars
12.7k
Forks
1.7k
Avg merge
11m
Merged PRs (30d)
2

Description

_From [dpb@google.com](https://code.google.com/u/100192069068331572908/) on February 10, 2011 14:31:04_

It is surprising to me that requestStaticInjection on a class implies a request for static injection on its superclass(es).

It means, for instance, that if classes A, B, and C all have injected static members, and B extends A and C extends A, then there is no way to inject the static members of A, B, and C only once; the static members of A will be injected at least twice.

I understand this represents a change to the public API. But I think it's at least worth discussing.

_Original issue: http://code.google.com/p/google-guice/issues/detail?id=601_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.