对于动态模组,一定会启用类别载入。
如果您的类别包含静态栏位,请提供在类别载入时会将其初始化的静态建构函式。
If your class contains static fields, provide a static constructor that initializes them when the class is loaded.
例如,在系统类别载入器类别空间中的类别,不应当指向孩子或子孙类别载入器的类别空间中的类别。
For instance, classes in the system class loader class space should not refer to classes in the class space of a child or a descendant class loader.
应用推荐