On Thu, Mar 29, 2012 at 11:28 AM, Dawid Weiss <dawid.we...@cs.put.poznan.pl> wrote: >> the 'help' basetokenstream gives here, that steve mentions, causes the >> problem. >> I bet it catches and rethrows Throwable or something wrapped in a >> RuntimeException? > > That's what it looks like. > >> But if its an assumptionViolatedException... it should ensure it doesnt wrap >> it! > > There should actually be a method to rethrow exceptions without > wrapping them unnecessarily if you don't need such a wrapper. It's a > simple trick and it does the job - I suggest that we simply use it > (attached)? >
maybe just for tests? like it would be ok in test-framework. I think its a little evil to exploit type erasure this way in normal code, confusing people by throwing checked exceptions they don't expect :) -- lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org