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

Documentation error in code sample of PreparedStatement

XMLWordPrintable

    • b08

      A DESCRIPTION OF THE PROBLEM :
      The Javadoc of interface PreparedStatement contains sample code.
      In here the pstmt.setBigDecimal(1, 153833.00) is wrong.
      The value 153833.00 is of type double and cannot be converted to BigDecimal.



      FREQUENCY : always


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

              Created:
              Updated:
              Resolved: