This issue occurs with WebDSL included in Eclipse plugin: webdsl.editor_1.0.0.201003111256

given an application and the following init{} section in that application:

init {
var x : Date := today();
var y : Date := today();	
}

upon running ant clean-all build the following java compilation error occurs:

compile:
[javac] Compiling 115 source files to /home/vladvergu/workspace_webdsl/calendar/.servletapp/bin/WEB-INF/classes
[javac] /home/vladvergu/workspace_webdsl/calendar/.servletapp/src-generated/utils/GlobalInit.java:74: d is already defined in initActions()
[javac]     java.util.Date d = new java.util.Date();
[javac]                    ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error

This error does not occur if in the init section we use now() instead of today, i.e.:

init {
var x : Date := now();
var y : Date := now();

}
Submitted by Vlad Vergu on 17 March 2010 at 14:12

On 18 March 2010 at 12:16 Vlad Vergu commented:

this issue is fixed in WebDSL editor 1.0.9.201003171455

Log in to post comments