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

Tomcat webapp cannot access to inherited property

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.5
    • Groovlet / GSP
    • None
    • Apache Tomcat 6.0.14 on Windows XP

    Description

      I've created a Tomcat webapp with the normal directory layout and two classes, say A and B, under the <webapp>/WEB-INF/groovy/<package> directory:

      (A.groovy)

      package <package>

      class A {
      int id
      /* ... */
      }

      (B.groovy)

      package <package>

      class B extends A {
      /* ... */
      }

      On the Groovlet i wrote something like this:

      def obj = new B( id: 1 )

      and obtained this error :

      groovy.lang.MissingPropertyException: No such property: id for class: <package>.B

      Attachments

        Activity

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

          People

            blackdrag Jochen Theodorou
            apicetti@hotmail.com Alejandro Picetti
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment