OpenHFT / Chronicle-Values

http://chronicle.software
Other
104 stars 37 forks source link

Generated classes with more than one enum were failing to compile #12

Closed JerrySheaB4 closed 8 years ago

JerrySheaB4 commented 8 years ago

If an interface had more than one enum then some methods e.g. readMarshallable were being generated with duplicate variable names. An example error being:

xxxx.java:llll: error: variable ordinal is already defined in method         
readMarshallable(net.openhft.chronicle.bytes.BytesIn)
    int ordinal = (int) bytes.readStopBit();