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

Stub compile fails for Groovy class extending Java class with private getProperty method

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.11, 2.4.3
    • None
    • None
    • OSX 10.8.5, JDK 1.8.0_40-b25

    Description

      See this Gradle project: https://github.com/emosesSfdc/groovyBugReproCase.

      LibraryTestBase is a Java class with a private method
      String getProperty(String)

      LibraryTest is a Groovy test that extends LibraryTestBase.

      When a Java stub is generated for LibraryTest, it doesn't have an implmentation of getProperty (from the GroovyObject interface), so java compilation of the stub fails.

      I first saw this when I updated a project from Gradle 2.3 to Gradle 2.4; I have a test class which extends org.glassfish.jersey.test.JerseyTest (in jersey-test-framework-core:2.12), which has a private getProperty method. There was a change which made in Gradle is so that now, Java stubs are generated in circumstances where they weren't before, and my compilation fails.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            emilles Eric Milles
            emosesSfdc Evan Moses
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment