struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5214] New: - code is wrong in docs example
Date Fri, 30 Nov 2001 20:42:22 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5214>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5214

code is wrong in docs example

           Summary: code is wrong in docs example
           Product: Struts
           Version: Nightly Build
          Platform: Other
               URL: http://jakarta.apache.org/struts/userGuide/building_mode
                    l.html#databases
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Documentation
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: dan.tomalesky@tallan.com


I realize this is rather anal, but I figured I'd report it anyways.  The code
block given in the above section on connecting to a relational db won't compile.
 The declaration of the variable myConnection is in the try block.  Later
close() is called on it in the finally block.  Since in the finally block, it
would be out of scope, it'd get a compiler error.

--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message