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

RFE: java.sql classes using bad non-short-circuited & in valueOf method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • core-libs
    • b91
    • x86
    • windows_xp
    • Verified

      Name: js151677 Date: 08/02/2004


      FULL PRODUCT VERSION :
      java version "1.5.0-beta2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
      Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)


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

      A DESCRIPTION OF THE PROBLEM :
      In java.sql.Date, java.sql.Time, and java.sql.Timestamp the valueOf(String) method uses non short circuited ands for no apparent reason.

      as in:

      if ((firstDash > 0) & (secondDash > 0) & (secondDash < s.length()-1)) {


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Incident Review ID: 290503)
      ======================================================================

            ahandasunw Amit Handa (Inactive)
            jssunw Jitender S (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: