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?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/dPjFkvlJ_twJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.