You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/02/04 09:09:06 UTC
DO NOT REPLY [Bug 48678] New: org.apache.catalina.startup.Catalina
incorrectly duplicates super class member
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: dev@tomcat.apache.org
ReportedBy: henning.blohm@gmail.com
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 48678] org.apache.catalina.startup.Catalina
incorrectly duplicates super class member
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48678
--- Comment #2 from Mark Thomas <ma...@apache.org> 2010-02-06 13:35:43 UTC ---
Fixed in trunk and proposed for 6.0.x. Many thanks.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 48678] org.apache.catalina.startup.Catalina
incorrectly duplicates super class member
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48678
Henning Blohm <he...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Platform|PC |All
OS/Version|Linux |All
--- Comment #1 from Henning Blohm <he...@gmail.com> 2010-02-04 00:11:13 UTC ---
updated platform and OS to "All".
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 48678] org.apache.catalina.startup.Catalina
incorrectly duplicates super class member
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48678
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-02-23 22:52:22 UTC ---
This has been fixed in 6.0.x and will be included in 6.0.25 onwards.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org