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

Tomcat webapp cannot access to inherited property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.5
    • Component/s: Groovlet / GSP
    • Labels:
      None
    • Environment:
      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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: