Samuel Åslund

Show:

What's happening?

  • External Javascript in ServletUnit?

    Hi all, I'm trying out Servlet unit to get some tests on a legacy application. I have got it running on a simple page but all our pages includes external javascript files, <script language=javascript src="../includes/Title.js"> and I can not find out how to tell the ServletRunner where to find them. I get (not very surprising)...

    2009-02-05 11:53:34 UTC in httpunit

  • Comment: Method might ignore exception, yes I know !

    I wanted to use this tool on a legacy codebase. Most things I expect FindBugs to find someone will have found out about the hard way. I do expect this kind of error to exist, and I think it has bitten me before. Wading through loads of old code and making changes to it for the single purpose of getting a tool to work is not a viable solution. I know of a few comments that are used in "empty"...

    2008-12-18 09:29:48 UTC in FindBugs

  • Method might ignore exception, yes I know !

    I did not find any way to tag "// Ignore" as "I know what I'm doing here." String masterBS = "Some default"; try { masterBS = someCall.thatMightThrowException(); } catch (Exception e) { // Ignore, use default. }.

    2008-12-03 12:45:43 UTC in FindBugs

  • Method may fail to close database resource, generates noice.

    The below function triggers the "Method may fail to close database resource" message. Note the returned ResultSet. At least in java 1.4 closing the Statement will Close the Resultset also. The Statement is reachable from the Resultset so it is not lost. I was _so_ happy when I first saw the message, and only three of them. Getting control of where my predecessor have left these...

    2008-12-03 12:05:58 UTC in FindBugs

About Me

  • 2002-08-27 (7 years ago)
  • 601646
  • saas2813 (My Site)
  • Samuel Åslund

Send me a message