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

@Synchronized should be disallowed on an abstract method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.6, 2.4.0-beta-2
    • 2.3.7, 2.4.0-beta-3
    • xforms
    • None

    Description

      class Foo {
        @groovy.transform.Synchronized
        abstract void bar()
      }
      

      fails compilation with:

      BUG! exception in phase 'class generation' in source unit 'ConsoleScript22' unexpected NullpointerException
      

      Instead it should fail with a proper compiler error.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: