Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 258706 - [javadoc] parser does not support brace counting inside{@code} tags.
Summary: [javadoc] parser does not support brace counting inside{@code} tags.
Status: RESOLVED DUPLICATE of bug 206345
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-12 17:09 EST by Robert Konigsberg CLA
Modified: 2014-03-30 20:40 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Konigsberg CLA 2008-12-12 17:09:34 EST
Build ID: I20080617-2000

Steps To Reproduce:
Create javadoc that looks like this:

/**
 * Class javadoc. Blah blah blah
 * <pre>{@code
 * {}}</pre> */

This generates a warning: "Javadoc: Missing closing brace for inline tag" No warning should be generated.

More information:
The example I give above not a practical piece of javadoc, but is the [almost] smallest case you need. A more practical case can be found here, in java.util.Random#nextBytes:

    /**
     * Generates random bytes and places them into a user-supplied
     * byte array.  The number of random bytes produced is equal to
     * the length of the byte array.
     *
     * <p>The method {@code nextBytes} is implemented by class {@code Random}
     * as if by:
     *  <pre> {@code
     * public void nextBytes(byte[] bytes) {
     *   for (int i = 0; i < bytes.length; )
     *     for (int rnd = nextInt(), n = Math.min(bytes.length - i, 4);
     *          n-- > 0; rnd >>= 8)
     *       bytes[i++] = (byte)rnd;
     * }}</pre>
     *
     * @param  bytes the byte array to fill with random bytes
     * @throws NullPointerException if the byte array is null
     * @since  1.1
     */
Comment 1 Frederic Fusier CLA 2008-12-13 02:42:21 EST

*** This bug has been marked as a duplicate of bug 206319 ***
Comment 2 Markus Keller CLA 2014-03-30 20:40:36 EDT

*** This bug has been marked as a duplicate of bug 206345 ***