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

Bug 341711

Summary: Doc entry for Color.YELLOW and Color.yellow are switched.
Product: [Eclipse Project] JDT Reporter: nerd_rage
Component: DocAssignee: JDT-Doc-Inbox <jdt-doc-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: trivial    
Priority: P3 CC: daniel_megert
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description nerd_rage CLA 2011-04-03 01:42:09 EDT
Build Identifier: 20110218-0911

The doc entry for Color.YELLOW and Color.yellow have been switched.
Code:

import java.applet.Applet;
import java.awt.*;

public class App extends Applet{
	public void paint(Graphics page) {
		setBackground(Color.white);

		page.setColor(Color.);
	}
}

Reproducible: Always

Steps to Reproduce:
1. Go to http://pastie.org/1749636 or the code in the details. 
2. Ctrl+Space at line 6, column 29.
3. Scroll down to the two entries for yellow. Click one. Read.
Comment 1 Dani Megert CLA 2011-04-04 04:07:38 EDT
This looks good to me using Eclipse 3.7 M6 with JRE 1.6. The only difference in the Javadoc is that 'YELLOW' has an additional "@since 1.4".