I referred through lots of links and blogs , but could not get a perfect answer to this question . I can use
static {
Test test = new Test();
}
but not
static {
@Inject
Test test;
}
Why is this so?
I referred through lots of links and blogs , but could not get a perfect answer to this question . I can use
static {
Test test = new Test();
}
but not
static {
@Inject
Test test;
}
Why is this so?