Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8015340

Documentation error in java.sql.PreparedStatement#setObject since 1.6 not 1.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 8
    • 7
    • core-libs
    • b108

      FULL PRODUCT VERSION :
      java version " 1.7.0_07 "
      Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
      Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      The javadoc for this method:
      http://docs.oracle.com/javase/7/docs/api/java/sql/PreparedStatement.html#setObject%28int,%20java.lang.Object,%20int,%20int%29

      Is incorrect, it states @since 1.6, but a method with the same signature existed in 1.5, so should have @since 1.5, (or no @since annotation at all)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      java documentation issue

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      @since 1.5
      ACTUAL -
      @since 1.6

      REPRODUCIBILITY :
      This bug can be reproduced always.

            lancea Lance Andersen
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: