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

@Synchronized should be disallowed on an abstract method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.6, 2.4.0-beta-2
    • Fix Version/s: 2.3.7, 2.4.0-beta-3
    • Component/s: xforms
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: