Skip to content

Commit 794564e

Browse files
committed
Make serialVersionUID final with a predefined value in DynamicHub
1 parent 589134f commit 794564e

File tree

1 file changed

+2
-1
lines changed
  • substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/hub

1 file changed

+2
-1
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/hub/DynamicHub.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ public void setModule(Module module) {
322322
@Substitute @InjectAccessors(AnnotationTypeAccessors.class) //
323323
private AnnotationType annotationType;
324324

325-
@Substitute private static long serialVersionUID;
325+
// This field has a fixed value 3206093459760846163L in java.lang.Class
326+
@Substitute private static final long serialVersionUID = 3206093459760846163L;
326327

327328
@Substitute @InjectAccessors(CachedConstructorAccessors.class) //
328329
private Constructor<?> cachedConstructor;

0 commit comments

Comments
 (0)