Compile results I get when commenting out the line with the var
declaration, using the attached LZX file, after running
?lzt=clearcache, with the following revision:
Last Changed Rev: 18816
Last Changed Date: 2011-03-06 14:28:06 +0100 (Sun, 06 Mar 2011)


SWF10/no-debug:
Compilation Errors
org.openlaszlo.sc.CompilerError: mixins/draggable/dragmanager.lzx: 7:
Error: Type was not found or was not a compile-time constant:
$lzc$class_draggable, in line: static var displayName = "<anonymous
extends='node'>";static var __LZCSSTagSelectors = ["node",
"Instance"];static var attributes = new
LzInheritedHash(LzNode.attributes);var dragging;var ondragging;var
__dragviews;function $lzc$set_dragging ($0:$lzc$class_draggable) {
mixins/draggable/dragmanager.lzx: 86: Error: Type was not found or was
not a compile-time constant: $lzc$class_droppable, in line: var
dragover;var ondragover;function $lzc$set_dragover
($0:$lzc$class_droppable) {
mixins/draggable/dragmanager.lzx: 107: Error: Type was not found or
was not a compile-time constant: $lzc$class_droppable, in line: var
__droppable;function __add ($0:$lzc$class_droppable) {
mixins/draggable/dragmanager.lzx: 115: Error: Type was not found or
was not a compile-time constant: $lzc$class_droppable, in line:
function __remove ($0:$lzc$class_droppable) {

SWF10/debug
Compilation Errors

org.openlaszlo.sc.CompilerError: mixins/draggable/dragmanager.lzx: 7:
Error: Type was not found or was not a compile-time constant:
$lzc$class_draggable, in line: public static var displayName =
"<anonymous extends='node'>";public static var __LZCSSTagSelectors =
["node", "Instance"];public static var attributes = new
LzInheritedHash(LzNode.attributes);public var dragging;public var
ondragging;public var __dragviews;public function $lzc$set_dragging
(view_$0:$lzc$class_draggable) {
mixins/draggable/dragmanager.lzx: 86: Error: Type was not found or was
not a compile-time constant: $lzc$class_droppable, in line: public var
dragover;public var ondragover;public function $lzc$set_dragover
(view_$0:$lzc$class_droppable) {
mixins/draggable/dragmanager.lzx: 107: Error: Type was not found or
was not a compile-time constant: $lzc$class_droppable, in line: public
var __droppable;public function __add (view_$0:$lzc$class_droppable) {
mixins/draggable/dragmanager.lzx: 115: Error: Type was not found or
was not a compile-time constant: $lzc$class_droppable, in line: public
function __remove (view_$0:$lzc$class_droppable) {

DHTML/no-debug:
No error

DHTML/debug
No error

For SWF10, commenting out that line doesn't help.

On 3/8/11, P T Withington <[email protected]> wrote:
> Max seems to have put this there, with some comment that he needed it for
> debugging.  It seems like we should just remove it?
>
> On 2011-03-08, at 10:32, Raju Bitter wrote:
>
>> Including mixins/draggable/dragmanager.lzx throws a compile error:
>> mixins/draggable/dragmanager.lzx:2:13:
>> org.openlaszlo.sc.CompilerError: dragmanager: variable declared twice
>> with different initializers: "null" and "void 0
>>
>> The error is thrown within
>> org.openlaszlo.sc.SWF9Generator.java#checkGlobalValue
>>
>> Why do you have to declare dragmanager here as a global var? Shouldn't
>> there be an automatism? And where else is the variable declared?
>>
>> On Tue, Mar 8, 2011 at 4:29 PM, Raju Bitter
>> <[email protected]> wrote:
>>> I ran into this compiler error yesterday:
>>> http://jira.openlaszlo.org/jira/browse/LPP-9807
>>>
>>> The declaration
>>>
>>> var dragmanager;
>>>
>>> causes a compiler error with OL 5.0 trunk.
>>>
>
>

Reply via email to