Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 472608

Summary: JavaDoc: < and { inside <pre>{@Code
Product: [Eclipse Project] JDT Reporter: Ahmed Ashour <asashour>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 4.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Ahmed Ashour CLA 2015-07-14 07:16:35 EDT
Hi all,

Build id: 20150621-1200

For the below javadoc from the standard java library, Eclipse incorrectly does two things:

- Stops at the angled bracket "<?".
- Shows double last curly brackets "}"

This can be checked against javax.script.ScriptEngineFactory.getProgram(), and its javadoc is fine as shown in [1]


    /**
     * <pre>{@code
     * public String getProgram(String... statements) {
     *      String retval = "<?\n";
     *      int len = statements.length;
     *      for (int i = 0; i < len; i++) {
     *          retval += statements[i] + ";\n";
     *      }
     *      return retval += "?>";
     * }
     * }</pre>
     *
     */


[1] http://docs.oracle.com/javase/8/docs/api/javax/script/ScriptEngineFactory.html#getProgram-java.lang.String...-
Comment 1 Eclipse Genie CLA 2020-04-22 05:54:45 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.