Bug 83697 [misc] Inline tags are not rendered when in the content of a block tag
Version: 3.1.0 Build id: I20050125-0800 The javadoc manual states that is possible to use inline tags (eg {@link}) in the content of block tags (such as @param). This simple case renders as "foo {@link String bar}" when it should be "foo bar": /** * @param foo {@link String bar} */ public void fred(String foo){}
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/javadoc/JavaDoc2HTMLTextReader.java
private String printBlockTag(String tag, String tagContent) {
		
		if ("@link".equals(tag) || "@linkplain".equals(tag)) { 
			
			char[] contentChars = tagContent.toCharArray();
			boolean inParentheses = false;
			int labelStart= 0;
			
			for (int i = 0; i < contentChars.length; i++) {
				char nextChar = contentChars[i];
				
				
				if (i == 0 && Character.isWhitespace(nextChar)) {
					labelStart= 1;
					continue;
				}
				
				if (nextChar == '(') {
					inParentheses= true;
					continue;
				}
				
				if (nextChar == ')') {
					inParentheses= false;
					continue;
				}
				
				
				if (!inParentheses && Character.isWhitespace(nextChar)) {
					labelStart= i+1;