Polymorphic recursion occurs when a generic class instantiates itself in its own body. For example, consider the following devious example.
当泛型类在其自己的主体中实例化其本身时,发生多态递归。
Because the class is not a parameterized type, no signature is added to the binary class representation for the class itself.
由于类并非参数化类型,所以未为该类本身的二进制类表示添加任何签名。
It's also the identifier for the loaded class itself — you can have multiple copies of the same binary class loaded in a JVM, each with its own class instance.
它还是已装入类本身的标识—对于装入到JVM的同一个二进制类,可以有多个副本,每个副本都有其自己的Class实例。
应用推荐