APIdia Launch Partner
Top Description Methods
jdk.internal

public @Interface RequiresIdentity

extends Annotation
Annotations
@Retention:RUNTIME
@Target:PARAMETER, TYPE_PARAMETER
Imports
java.lang.annotation.Retention, .RetentionPolicy, .Target

Indicates that the annotated parameter or type parameter is not expected to be a Value Based class. Using a parameter or type parameter of a value-based classes should produce warnings about behavior that is inconsistent with identity based semantics. Note this internal annotation is handled specially by the javac compiler. To work properly with --release older-release, it requires special handling in make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java and src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java.
Since
25

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString