I am trying to insert annotation {@code} in Javadoc comments using Netbeans 8.0 and it is not working properly.
I saw other questions about this before (i.e. how can you escape the @ character in javadoc? ), But html escape @ and {@literal @} both do not work.
My comment looks like this (using both methods as an example):
/** * blah blah blah * <p> * For example: * <pre> * {@code * {@literal @}begin_specification * ... * @end_specification * } * </pre> */
I can click Run -> Generate Javadoc , and everything works fine, without errors, but I see this when I look at the result in the browser:
{@literal @}begin_specification ... &
What is not the desired result ... Any suggestions / ideas?
I am new to Java, but used things like Doxygen in C / C ++ before. Am I something wrong here? I am using NetBeans 8.0 (Build 201403101706) with Java 1.8.0_05 x64.
java java-8 escaping netbeans javadoc
Txag98
source share