Skip to content

Commit 3487e67

Browse files
committed
[GR-38677] Make serialVersionUID final with a predefined value in DynamicHub
PullRequest: graal/11771
2 parents fc9a9e6 + 794564e commit 3487e67

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
@@ -325,7 +325,8 @@ public void setModule(Module module) {
325325
@Substitute @InjectAccessors(AnnotationTypeAccessors.class) //
326326
private AnnotationType annotationType;
327327

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

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

0 commit comments

Comments
 (0)