Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 327372 - Trace.java has incorrect Level enum
Summary: Trace.java has incorrect Level enum
Status: CLOSED INVALID
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: jst.server (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: Elson Yuen CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-08 19:52 EDT by Scot Meyer CLA
Modified: 2011-04-21 13:55 EDT (History)
1 user (show)

See Also:


Attachments
Correction to Trace leve enumeration (1.41 KB, patch)
2010-10-08 19:52 EDT, Scot Meyer CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Meyer CLA 2010-10-08 19:52:32 EDT
Created attachment 180531 [details]
Correction to Trace leve enumeration

In org.eclipse.jst.server.tomcat.core.internal the Trace.java contains an enum which is incorrectly ordered based on the english written.  This is corroborated in the String Array just beneath it.  Attached is patch to fix this plus change the copyright date to 2010 due to this change.

public static final byte SEVERE = 2;
public static final byte FINEST = 3;
public static final byte FINER = 4;

...
private static final String[] levelNames = new String[] {
	"CONFIG   ", "WARNING  ", "SEVERE   ", "FINER    ", "FINEST   "};

Should switch Finer and Finest values.

public static final byte SEVERE = 2;
public static final byte FINER = 3; 
public static final byte FINEST = 4;
Comment 1 Angel Vera CLA 2011-04-21 13:55:18 EDT
This defect is no longer valid after the new trace work done in bug# 337907