Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 16.11.01
    • Component/s: framework
    • Labels:
      None
    • Sprint:
      Community Day 2 - 2015, Community Day 3 - 2015, Re-Factor Sprint 1

      Description

      When extending/implementing a class/interface, where methods in the parent have been marked deprecated, sub-instances also get deprecation warnings. The fix here is to also mark the sub-instances deprecated(with @Deprecated or /** @deprecated */

        Activity

        Hide
        doogie Adam Heath added a comment -

        [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1197: warning: [deprecation] setYear(int) in Date has been deprecated
        [javac17] public void setYear(int year) {
        [javac17] ^
        [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1202: warning: [deprecation] setMonth(int) in Date has been deprecated
        [javac17] public void setMonth(int month) {
        [javac17] ^
        [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1207: warning: [deprecation] setDate(int) in Date has been deprecated
        [javac17] public void setDate(int date) {
        [javac17] ^
        [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1212: warning: [deprecation] setHours(int) in Date has been deprecated
        [javac17] public void setHours(int hours) {
        [javac17] ^
        [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1217: warning: [deprecation] setMinutes(int) in Date has been deprecated
        [javac17] public void setMinutes(int minutes) {
        [javac17] ^
        [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1222: warning: [deprecation] setSeconds(int) in Date has been deprecated
        [javac17] public void setSeconds(int seconds) {
        [javac17] ^

        Show
        doogie Adam Heath added a comment - [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1197: warning: [deprecation] setYear(int) in Date has been deprecated [javac17] public void setYear(int year) { [javac17] ^ [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1202: warning: [deprecation] setMonth(int) in Date has been deprecated [javac17] public void setMonth(int month) { [javac17] ^ [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1207: warning: [deprecation] setDate(int) in Date has been deprecated [javac17] public void setDate(int date) { [javac17] ^ [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1212: warning: [deprecation] setHours(int) in Date has been deprecated [javac17] public void setHours(int hours) { [javac17] ^ [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1217: warning: [deprecation] setMinutes(int) in Date has been deprecated [javac17] public void setMinutes(int minutes) { [javac17] ^ [javac17] /srv/ofbiz/apache-git/framework/base/src/org/ofbiz/base/util/UtilDateTime.java:1222: warning: [deprecation] setSeconds(int) in Date has been deprecated [javac17] public void setSeconds(int seconds) { [javac17] ^
        Hide
        doogie Adam Heath added a comment -

        Fixed in branch OFBIZ-6275, r1675462

        Show
        doogie Adam Heath added a comment - Fixed in branch OFBIZ-6275 , r1675462
        Hide
        deepak.dixit Deepak Dixit added a comment -

        This has been merged at trunk at r#1731385

        Show
        deepak.dixit Deepak Dixit added a comment - This has been merged at trunk at r#1731385

          People

          • Assignee:
            deepak.dixit Deepak Dixit
            Reporter:
            doogie Adam Heath
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development

                Agile