Announcement Announcement Module
Collapse
No announcement yet.
idea of remove all try catch(){...} block Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • idea of remove all try catch(){...} block

    After using the ThrowsAdvice, all the "try" and "catch () {....}" in the other classes need to be removed. There are hundreds of “try …catch …” blocks

    Have any fast way or tools let the job done?
    :idea:

  • #2
    You could use AspectJ. You can write an aspect that will produce a compile-time error or warning on a given usage. You could then compile your code with AJC until you remove all the code you don't want.

    Comment


    • #3
      Originally posted by Rod Johnson
      You could use AspectJ. You can write an aspect that will produce a compile-time error or warning on a given usage. You could then compile your code with AJC until you remove all the code you don't want.
      Great idea. Thanks Rod. I will try it.

      Comment

      Working...
      X