Re: [Mibble-users] SizeConstaint.isCompatible( mibValue) doesn't check the size of mibValue.. why not?

2007-01-08 Thread Paul Faid
Thanks for the quick response. Your solution worked fine. Regards Paul On 1/8/07, Per Cederberg [EMAIL PROTECTED] wrote: Right. Never send code without compiling it first. Here is a more syntactically correct version: public boolean isCompatible(MibValue value) { Integer

Re: [Mibble-users] SizeConstaint.isCompatible( mibValue) doesn't check the size of mibValue.. why not?

2007-01-07 Thread Per Cederberg
Right. Never send code without compiling it first. Here is a more syntactically correct version: public boolean isCompatible(MibValue value) { Integer size; if (value instanceof StringValue) { size = new Integer(value.toString().length()); return