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

Bug 327372

Summary: Trace.java has incorrect Level enum
Product: [WebTools] WTP ServerTools Reporter: Scot Meyer <meyer_scot>
Component: jst.serverAssignee: Elson Yuen <eyuen7>
Status: CLOSED INVALID QA Contact: Angel Vera <arvera>
Severity: trivial    
Priority: P3 CC: ccc
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Correction to Trace leve enumeration none

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