dragome/dragome-sdk

false0 bug

Closed this issue · 1 comments

The generator is putting a "false0" to the variable inside many equal methods. This is a old bug because I checked some olders webapp.js and its there also.

Example in "com_badlogic_gdx_graphics_g3d_environment_DirectionalLight"

$equals___java_lang_Object$boolean: function (arg0)
{
var _0;
	L1: {
		L2: {
			if ((dragomeJs.isInstanceof (arg0, com_badlogic_gdx_graphics_g3d_environment_DirectionalLight)) == 0) {
				break L2;
			}
			_0 = this.$equals___com_badlogic_gdx_graphics_g3d_environment_DirectionalLight$boolean(arg0);
			break L1;
		}
		_0 = false0;
	}
	return _0;
}

Java

@Override
	public boolean equals (Object arg0) {
		return (arg0 instanceof DirectionalLight) ? equals((DirectionalLight)arg0) : false;
	}

@fpetrola could it be something is wrong in xmlvm2js, pass1.java or somewhere else ?