public enum LogLevel implements Serializable {
FATAL(LogLevel.FATAL_INT), ERROR(LogLevel.ERROR_INT), WARN(LogLevel.WARN_INT), INFO(LogLevel.INFO_INT), DEBUG(
LogLevel.DEBUG_INT);
public static final int FATAL_INT = 32;
public static final int ERROR_INT = 16;
public static final int WARN_INT = 8;
public static final int INFO_INT = 4;
public static final int DEBUG_INT = 2;
LogLevel() {
priority = -1;
}
LogLevel(int priority) {
this.priority = priority;
}
public int getPriority() {
return priority;
}
private final int priority;
}
Gives the following error:
Checking rule <generate-with class='com.allen_sauer.gwt.log.rebind.LogMessageFormatterGenerator'/>
[ERROR] Errors in 'file:/.../LogLevel.java'
[ERROR] Line 11: Cannot reference a field before it is defined
[ERROR] Line 11: Cannot reference a field before it is defined
[ERROR] Line 11: Cannot reference a field before it is defined
[ERROR] Line 11: Cannot reference a field before it is defined
[ERROR] Line 11: Cannot reference a field before it is defined
On Sunday, July 22, 2012 10:10:25 PM UTC-4, Patrick Tucker wrote:
Code sample?