它还是已装入类本身的标识—对于装入到JVM的同一个二进制类,可以有多个副本,每个副本都有其自己的Class实例。
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.
虽然避免类装入器约束违反的最简单方法是在系统中只有类的一个副本,但有时拥有多个版本也是有必要的。
While the simplest way to avoid class loader constraint violations is to only have one copy of a class in the system, it is sometimes necessary to have multiple versions.
解决这个问题的最简单方法是确保在系统中只有类的一个副本——也就是说,类只出现在一个类装入器的类路径中。
The easiest way to resolve this problem is to ensure that there is only one copy of a class in the system — that is, that the class only appears in the classpath of one loader.
应用推荐