You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2010/07/25 20:29:49 UTC
[jira] Created: (DERBY-4756) Silence deprecation warnings for JDBC
4 stubs
Silence deprecation warnings for JDBC 4 stubs
---------------------------------------------
Key: DERBY-4756
URL: https://issues.apache.org/jira/browse/DERBY-4756
Project: Derby
Issue Type: Improvement
Components: Build tools
Reporter: Knut Anders Hatlen
Priority: Trivial
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-4756) Silence deprecation warnings for JDBC
4 stubs
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-4756:
--------------------------------------
Issue & fix info: [Patch Available]
> Silence deprecation warnings for JDBC 4 stubs
> ---------------------------------------------
>
> Key: DERBY-4756
> URL: https://issues.apache.org/jira/browse/DERBY-4756
> Project: Derby
> Issue Type: Improvement
> Components: Build tools
> Reporter: Knut Anders Hatlen
> Priority: Trivial
> Attachments: depr.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (DERBY-4756) Silence deprecation warnings for
JDBC 4 stubs
Posted by "Kristian Waagan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892699#action_12892699 ]
Kristian Waagan commented on DERBY-4756:
----------------------------------------
+1
> Silence deprecation warnings for JDBC 4 stubs
> ---------------------------------------------
>
> Key: DERBY-4756
> URL: https://issues.apache.org/jira/browse/DERBY-4756
> Project: Derby
> Issue Type: Improvement
> Components: Build tools
> Reporter: Knut Anders Hatlen
> Priority: Trivial
> Attachments: depr.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (DERBY-4756) Silence deprecation warnings for JDBC
4 stubs
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen updated DERBY-4756:
--------------------------------------
Attachment: depr.diff
The attached patch depr.diff adds a @Deprecated annotation to the methods that override the deprecated java.util.Date methods. This made the warnings for the JDBC 4 stubs go away.
> Silence deprecation warnings for JDBC 4 stubs
> ---------------------------------------------
>
> Key: DERBY-4756
> URL: https://issues.apache.org/jira/browse/DERBY-4756
> Project: Derby
> Issue Type: Improvement
> Components: Build tools
> Reporter: Knut Anders Hatlen
> Priority: Trivial
> Attachments: depr.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (DERBY-4756) Silence deprecation warnings for JDBC 4
stubs
Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DERBY-4756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Knut Anders Hatlen closed DERBY-4756.
-------------------------------------
Issue & fix info: (was: [Patch Available])
Assignee: Knut Anders Hatlen
Fix Version/s: 10.7.0.0
Resolution: Fixed
Committed revision 980460.
> Silence deprecation warnings for JDBC 4 stubs
> ---------------------------------------------
>
> Key: DERBY-4756
> URL: https://issues.apache.org/jira/browse/DERBY-4756
> Project: Derby
> Issue Type: Improvement
> Components: Build tools
> Reporter: Knut Anders Hatlen
> Assignee: Knut Anders Hatlen
> Priority: Trivial
> Fix For: 10.7.0.0
>
> Attachments: depr.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.