Derby
  1. Derby
  2. DERBY-5519

Update code in JVMInfo#derbyVMLevel to give correct results for Java 7 and provisionally for 8.

    Details

    • Issue & fix info:
      Known fix
    • Bug behavior facts:
      Deviation from standard

      Description

      The method derbyVMLevel gives correct result only up to and including Java 6, cf. this snippet:

      public static String derbyVMLevel()
      {
      switch (JDK_ID)

      { case J2SE_14: return J2ME ? "J2ME - JDBC for CDC/FP 1.1" : "J2SE 1.4 - JDBC 3.0"; case J2SE_142: return "J2SE 1.4.2 - JDBC 3.0"; case J2SE_15: return "J2SE 5.0 - JDBC 3.0"; case J2SE_16: return "Java SE 6 - JDBC 4.0"; default: return "?-?"; }

      }

      This is exposed through our MBean implementation in org.apache.derby.jdbc.JDBC#getDriverLevel

      1. derby-5519.diff
        0.9 kB
        Dag H. Wanvik

        Issue Links

          Activity

          Knut Anders Hatlen made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Gavin made changes -
          Workflow jira [ 12644417 ] Default workflow, editable Closed status [ 12801907 ]
          Kathey Marsden made changes -
          Labels newbie derby_backport_reject_10_8 newbie
          Dag H. Wanvik made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Dag H. Wanvik made changes -
          Fix Version/s 10.9.0.0 [ 12316344 ]
          Issue & fix info Patch Available,Known fix [ 10102,10426 ] Known fix [ 10426 ]
          Dag H. Wanvik made changes -
          Issue & fix info Known fix [ 10426 ] Known fix,Patch Available [ 10426,10102 ]
          Dag H. Wanvik made changes -
          Link This issue is related to DERBY-5521 [ DERBY-5521 ]
          Dag H. Wanvik made changes -
          Attachment derby-5519.diff [ 12506127 ]
          Dag H. Wanvik made changes -
          Field Original Value New Value
          Assignee Dag H. Wanvik [ dagw ]
          Dag H. Wanvik created issue -

            People

            • Assignee:
              Dag H. Wanvik
              Reporter:
              Dag H. Wanvik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development