propagating throws clauses...

I've had to do this a number of times and each time I think "there's got to be a way to do this quickly in IDEA"

My problem is that I have introduced a new checked exception in a low level method and I want to be able to add it to the throws clause of every method in its call hierarchy until it's caught.

Can this be done? If it can't currently be done, could it be an intention or, in general, is it considered too dangerous a thing to do automatically?

alan

2 comments

Hello Alan,

It's not possible yet, but there's hope. :)

Check http://www.intellij.net/tracker/idea/viewSCR?publicId=37684 for some comments related to this thing (not sure what the ID for the mentioned deep signature change refactoring is, though).

HTH,
Andrei

ab> I've had to do this a number of times and each time I think "there's
ab> got to be a way to do this quickly in IDEA"
ab>
ab> My problem is that I have introduced a new checked exception in a
ab> low level method and I want to be able to add it to the throws
ab> clause of every method in its call hierarchy until it's caught.
ab>
ab> Can this be done? If it can't currently be done, could it be an
ab> intention or, in general, is it considered too dangerous a thing to
ab> do automatically?
ab>
ab> alan
ab>

0

Please sign in to leave a comment.