https://issues.apache.org/bugzilla/show_bug.cgi?id=48678

           Summary: org.apache.catalina.startup.Catalina incorrectly
                    duplicates super class member
           Product: Tomcat 6
           Version: 6.0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Catalina declares its own protected member variable "server" and a
corresponding "setServer" method, while Catalina's super class Embedded has a
private member "server" and a "getServer" method, so that Catalina sets its
"service" member, but when asking, will return super.server which is
consistently null.

This means that Catalina cannot be used as Tomcat embedding directly but at
least requires an extension like so:

public class MyCatalina extends Catalina {
        public Server getServer() {
                return this.server;
        }
}

It might have other ramifications though and was most likely not intended.

See also: http://marc.info/?l=tomcat-user&m=126502245412565&w=2

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to