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

Bug 488078

Summary: Incorrect JavaDoc /** + Enter autocomplete when method contains "*/"
Product: [Eclipse Project] JDT Reporter: Boris van Katwijk <bvkatwijk>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: gautier.desaintmartinlacaze
Version: 4.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug

Description Boris van Katwijk CLA 2016-02-19 04:07:15 EST
If a method contains the string "*/", like:

	public static String getJavadocEndTag() {
		return "*/";
	}

 typing [/** + Enter] to generate JavaDoc will generate:

	/**
	 * 
	public static String getJavadocEndTag() {
		return "*/";
	}

It does not seem to matter where the "*/" occurs in the method.

Note: when using the "generate comment" shortcut (Alt+Shift+J), the JavaDoc generation works fine.

Tested in Luna (4.4.0) and Mars (5.4.1)
Comment 1 Eclipse Genie CLA 2020-03-19 14:23:38 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.