Skip to content

Javadoc rendering issue with JDK API docs and code sections #8963

@nmatt

Description

@nmatt

Apache NetBeans version

Apache NetBeans 27

What happened

Recent versions of the JDK API docs have been adding "Copy" buttons for code sections, like for example here: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/Class.html#newInstance%28%29

These are rendered by NetBeans in a way that overlaps with preceding text, making it unreadable.

Example screenshot (red ellipses highlight the issue):
Image

Language / Project Type / NetBeans Component

Java

How to reproduce

Invoke the javadoc window (e.g. Ctrl+Space) on an invocation of Class.getInstance() (for example).

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows

JDK

21

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Java[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)JavaDoc[ci] enable java/javadoc tests and build-javadoc targetkind:bugBug report or fix

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions