You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Mike Dusseault <md...@home.com> on 1999/10/11 21:12:44 UTC
mod_jserv/5126: Missing available() method in inner class JServInputStream
>Number: 5126
>Category: mod_jserv
>Synopsis: Missing available() method in inner class JServInputStream
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jserv
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Mon Oct 11 12:20:00 PDT 1999
>Last-Modified:
>Originator: mdusseault@home.com
>Organization:
apache
>Release: Apache 1.3.9
>Environment:
Linux 2.2.12 + Java 1.1.7b
>Description:
The JServInputStream class is missing a method. Since it's based on
the InputStream class, it *must* override the available method. Otherwise,
the default implementation merely returns a 0.
Not incidentally, I already submitted this bug last week and it &&^%@#
and now I can't find it anywhere. So it looks like this program lost my
bug report. Not good...
>How-To-Repeat:
That should be obvious by now. Call the method and see what I mean.
>Fix:
Add this method:
public int available()
{
return( (int)available );
}
Since the method definition in InputStream returns an int, you probably want
to make the internal available variable an int also to avoid the ugly cast.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]