seasonouc / protostuff

Automatically exported from code.google.com/p/protostuff
Apache License 2.0
0 stars 0 forks source link

NumericIdStrategy fails to use the enum ids when the field is an enum array #111

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The problem arises on complex enums (has methods).
E.g

    public interface HasType
    {
        int getType(); 
    }

    public enum Size implements HasType
    {
        SMALL
        {
            public int getType()
            {
                return 1;
            }
        }
        ,
        MEDIUM
        {
            public int getType()
            {
                return 2;
            }
        }
        ,
        LARGE
        {
            public int getType()
            {
                return 3;
            }
        }
        ;
    }

Original issue reported on code.google.com by david.yu...@gmail.com on 11 Apr 2012 at 7:11

GoogleCodeExporter commented 8 years ago
fixed @ rev 1491

Original comment by david.yu...@gmail.com on 11 Apr 2012 at 7:20