Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-362

Improve error reporting

    XMLWordPrintable

Details

    Description

      When creating a new Byteman helper class I had for whatever reason use "final" for my class:

      ...
      public final class MyHelper extends Helper {
      ...

      When using bmcheck to check the related rules using this class I got this error:

      ...
      Compiler.createHelperAdapter : exception creating compiled helper adapter for ...
      ...

      This made it pretty hard to find out what's wrong, I added some debug output printing in the method printing this which then gave me the needed clue:

      ...
      java.lang.VerifyError: Cannot inherit from final class
      ...

      So I'm suggesting to add a bit more helpful exception message at least into this particular method but perhaps also check are there similar methods nearby (which I'm unaware of) that might benefit from similar treatment. Thanks.

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            myllynen Marko Myllynen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: