-
Bug
-
Resolution: Unresolved
-
P4
-
8
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
When creating an instance of type ArrayList with specific type, for example, String or Integer, Java can not distinguish it is an instance of the built in class ArrayList. I understand the generic class can not distinguish its objects because the type is KTEV and Java removes its type when it compiles the program, but when the type is specified it should be able to distinguish it because the objects belong to the class with specific type, so the remove type function should not work in this case.
When creating an instance of type ArrayList with specific type, for example, String or Integer, Java can not distinguish it is an instance of the built in class ArrayList. I understand the generic class can not distinguish its objects because the type is KTEV and Java removes its type when it compiles the program, but when the type is specified it should be able to distinguish it because the objects belong to the class with specific type, so the remove type function should not work in this case.