Marcelo,
If instead of GenericTestE you replace with e.g. MapE
what I interpret you are saying is that you can't tell
from the (runtime) Map object what type E it is meant to be used
with.
However, the client of such an object *will* know the type, like this:
public MapString,String map1 = new
actually my point was that you can only get the generic type
information in the cases where it is there in compile time
but, for instance, imagine that you had this:
public class GenericTestE {
private ListE list = new ArrayListE();
}
even if you create an instance of GenericTest with
Can you please give an example with some bits of code?
I'm not sure what scenario you are trying to solve (or implying you
can't solve).
What are you going to use a Map?,? instance field for?
(Would this be a Generics way of initialise a field?)
On Nov 10, 10:27 pm, Marcelo Fukushima [EMAIL