Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-124

Make the code in Step 5 on the JCS overview page a full working class that can compile

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • jcs-2.0-beta-1
    • jcs-2.0-beta-2
    • Documentation
    • None
    • Testing

    Description

      Step 5: http://commons.apache.org/proper/commons-jcs/getting_started/intro.html

      Please make this a fully compilable class that can be cut and pasted for a quick success experience for the newby.

      Defaults and examples are extremely powerful and many people never venture further than the defaults and samples they discovered so it is extremely important to show sensible default values and good code.

      In this vein, drop the words "might" and "could" in the comments. It's either a good way to do it or you should not be showing it for it will be copied.

      Please also correct the setCache(c); instruction which doesn't make sense. The example doesn't indicate that it is extending another class where setCache(c) might be defined and isn't defining the method. Is this instruction needed?

      Attachments

        1. diff.txt
          4 kB
          Richard Eigenmann
        2. intro.xml
          10 kB
          Richard Eigenmann

        Activity

          People

            tv Thomas Vandahl
            richardeigenmann Richard Eigenmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: