Listing 2 contains a program that generates the compilation-time error message that happens when you try to add the wrong type of element to a generic collection - a List in this case.
在尝试向泛型集合(本例中为List)添加错误类型的元素时,清单2中的程序会生成编译时错误消息。
2
This element refers to the trace record type, and includes entry (1), exit (2), data (3), error (4), and fatal error (5).