Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-4756

Silence deprecation warnings for JDBC 4 stubs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.7.1.1
    • Component/s: Build tools
    • Labels:
      None

      Description

      Many warnings are printed when the java.sql.Date and java.sql.Time JDBC 4 stubs are compiled, because they override deprecated methods in java.util.Date. Example:

      [javac] /code/derby/trunk1/java/stubs/jdbc4/java/sql/Date.java:25: warning: [deprecation] getHours() in java.util.Date has been deprecated
      [javac] public int getHours()

      { return 0; }

      [javac] ^

      We should silence these warnings to make it easier to distinguish signal from noise.

        Attachments

        1. depr.diff
          2 kB
          Knut Anders Hatlen

          Activity

            People

            • Assignee:
              knutanders Knut Anders Hatlen
              Reporter:
              knutanders Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: