Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4486

No stacktrace or message for exceptions in the main constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.5
    • 1.7.6, 1.8.0
    • None
    • None
    • windows

    Description

      This script should generate a complete stacktrace including the call to "doSomething()" and the message, but it only writes "This script or class was runnable but cold not be run."

      public class Foo implements Runnable
      {
        public Foo()
        {
           doSomething();
        }
      
        public void run()
        {
           println("B");
        }
      
        public doSomething()
        {
           println("A");
           throw new Exception("A specific Error Message");
        }
      }
      

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            ripper234 Ron Gross
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: