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

Bug 474352

Summary: Code formatting (ctrl+shift+f) removes {@value} texts from comments for javadoc, in certain circumstances.
Product: [Eclipse Project] JDT Reporter: Erwin Smout <e.smout>
Component: CoreAssignee: Mateusz Matela <mateusz.matela>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, manoj.palat, mateusz.matela
Version: 4.3   
Target Milestone: 4.8 M5   
Hardware: PC   
OS: Linux   
Whiteboard: To be verified for 4.8 M5

Description Erwin Smout CLA 2015-08-05 15:06:02 EDT
As the title says.

Here is a snippet before code formatting :

	/**
	 * {@value} is an interval operator that is equivalent to, in Allen terms, STARTS or DURING or FINISHES or EQUAL. For a detailed definition, see {@link IntervalWithinOperatorImplementation#executeOperator(java.util.LinkedList)}
	 */
	public static final String WITHIN = "WITHIN"; //$NON-NLS-1$

Here is the same snippet after code formatting :

	/**
	 * is an interval operator that is equivalent to, in Allen terms, STARTS or DURING or FINISHES or EQUAL. For a detailed definition, see {@link IntervalWithinOperatorImplementation#executeOperator(java.util.LinkedList)}
	 */
	public static final String WITHIN = "WITHIN"; //$NON-NLS-1$

The leading {@value} construct is removed entirely.
Comment 1 Mateusz Matela CLA 2018-01-20 18:03:38 EST
This problem no longer occurs after the formatter redesign.

*** This bug has been marked as a duplicate of bug 303519 ***
Comment 2 Manoj N Palat CLA 2018-01-22 22:59:24 EST
Verified for Eclipse Photon 4.8 M5 with Build id:  I20180122-0800