Results 1 to 4 of 4

Thread: Mistake in documentation

Hybrid View

  1. #1

    Default Mistake in documentation

    I think I spotted a mistake in Spring's documentation. Is there a formalized way of reporting document errors, e.g. via JIRA?

    The mistake is located in "13.4.3 Batch operations with multiple batches" - http://static.springsource.org/sprin...bc-batch-multi

    The given example currently reads
    Code:
    ...
     int[][] updateCounts = jdbcTemplate.batchUpdate(
                    "update t_actor set first_name = ?, last_name = ? where id = ?",
                    actors,
                    100,
                    new ParameterizedPreparedStatementSetter<Actor>() {
    ...
    but probably should read
    Code:
    ...
     int[][] updateCounts = jdbcTemplate.batchUpdate(
                    "update t_actor set first_name = ?, last_name = ? where id = ?",
                    batch,
                    100,
                    new ParameterizedPreparedStatementSetter<Actor>() {
    ...
    Notice "actors" vs. "batch". Compare to the method's Javadoc at http://static.springsource.org/sprin...atementSetter)

    In case there currently is no way of reporting document errors, what about establishing such a thing?

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    In case there currently is no way of reporting document errors, what about establishing such a thing?
    There already is, it is called JIRA... Please create a JIRA issue so that it can be picked up...

    Actually the documentation is correct only the for loop is pretty much useless...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3

    Default

    In the meantime, I found some more documentation mistakes. Could someone clarify to which Jira project one should post "bugs" to?

  4. #4
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,624

    Default

    The project the documentation belongs to... So in this case that (judging by your first post) would be Spring Framework.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •