-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
None
-
None
-
generic
-
generic
The snippet `@replace` feature[1] allows parts of the snippet text to be replaced by some placeholder in the snippet presentation. This is mostly useful for parts which are necessary for correctness but not of interest to the user. The copy-to-clipboard feature currently copies the processed version of the snippet text. However, since the purpose of copying snippet text to the clipboard is usually to get working code, it would be more useful to get the unprocessed snippet text.
[1]: https://docs.oracle.com/en/java/javase/19/code-snippet/index.html#modifying-text
[1]: https://docs.oracle.com/en/java/javase/19/code-snippet/index.html#modifying-text
- blocks
-
JDK-8308314 Code snippets in java.nio classes should use @replace for uncompilable content
- Closed
- relates to
-
JDK-8325990 Remove use of snippet @replace annotation in java.base
- Resolved