The current loader constraint message in linkResolver::check_field_loader_constraints() prints the selected class as the referring class in the message. It should print the current class as the referring class.
JDK-8204720loader constraint message for fields specifies incorrect referring class
JDK-8217512Message of LinkageError: use 'class' etc. instead of 'type'