On 10/13/2015 08:18 AM, Erik De Rijcke wrote:

Because Java is not C/C++. In Java, enum values are unique by instance
alone. It does not have user 'defined' value(s) that make it unique. It
*can* have user defined properties (like any object) in addition to
  implicit compiler generated enum type specific properties. One of
those properties is it's "ordinal". Change the order of the enums and
the ordinal property will change, which can cause undefined behavior.
Now you need to wonder no more. :)

The language binding should sort the enum by numerical value and use that to determine the ordinal number. Ie it is based on the numerical value, not on the location in the xml file.

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to