Skip to content

Commit b9bc31f

Browse files
author
Doug Simon
committedMar 11, 2024
8327790: Improve javadoc for ResolvedJavaType.hasFinalizableSubclass
Reviewed-by: gdub, never
1 parent 18de932 commit b9bc31f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/meta/ResolvedJavaType.java

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2009, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -40,10 +40,12 @@ public interface ResolvedJavaType extends JavaType, ModifiersProvider, Annotated
4040
boolean hasFinalizer();
4141

4242
/**
43-
* Checks whether this type has any finalizable subclasses so far. Any decisions based on this
44-
* information require the registration of a dependency, since this information may change.
43+
* Checks whether this type might have finalizable subclasses. Any decisions based on a
44+
* negative answer require the registration of a dependency, since this information may change.
45+
* For example, dynamic class loading can later load a finalizable subclass.
4546
*
46-
* @return {@code true} if this class has any subclasses with finalizers
47+
* @return an {@link AssumptionResult} specifying if this class may have any subclasses with
48+
* finalizers along with any assumptions under which this answer holds
4749
*/
4850
AssumptionResult<Boolean> hasFinalizableSubclass();
4951

0 commit comments

Comments
 (0)