Commit Graph

4 Commits

Author SHA1 Message Date
Vadim Zeitlin c321aca2b4 Fix missing value for first item of enums with trailing comma
The value of the first item of an enum with a trailing comma after its
last item was not correctly initialized to 0 any more after the changes
of 74adaa5738 (see #1515) because "_last"
attribute was not set correctly in this case.

Do set it for the last item when it's followed by a comma too and add
more unit tests checking for this.

Closes #1566.
2019-07-11 17:15:38 +02:00
William S Fulton 1b1dadc9de New default Java enum wrapping approach which uses the type safe enum pattern
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5917 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-24 19:58:10 +00:00
William S Fulton 399e9f5504 Modifications to testcase to test the enums and constants in a separate Java interface.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4662 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-03 12:30:26 +00:00
William S Fulton 3f2ca63453 enum runtime test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4382 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-02-24 23:20:16 +00:00