Uploaded image for project: '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

        Attachments

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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: