Fix a few errors and add more javadoc-location package attributes for use in `.adoc` files. See gh-41614