You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2001/11/30 21:42:22 UTC

DO NOT REPLY [Bug 5214] New: - code is wrong in docs example

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>