Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-810

Fix Java 9 warnings

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JDO 3.2
    • JDO 3.2.1
    • api, tck
    • None

    Description

      Fix warnings from Java 9, especially cponstructor calls on primitive Wrappers such as "Integer(5)" or "Long(2)" (note that AccessControler and SecurityManager warnings are fixed in a separate issue: JDO-808 ):

      [WARNING] [options] bootstrap class path not set in conjunction with -source 8
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\spi\JDOImplHelper.java:[781,32] [removal] Integer(int) in Integer has been deprecated and marked for removal
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\spi\I18NHelper.java:[357,25] [removal] Integer(int) in Integer has been deprecated and marked for removal
      
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\PersistenceManager.java:[566,36] [unchecked] Possible heap pollution from parameterized vararg type T
        where T is a type-variable:
          T extends Object declared in method <T>makePersistentAll(T...)
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\PersistenceManager.java:[1096,32] [unchecked] Possible heap pollution from parameterized vararg type T
        where T is a type-variable:
          T extends Object declared in method <T>detachCopyAll(T...)
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\identity\IntIdentity.java:[131,15] [removal] Integer(int) in Integer has been deprecated and marked for removal
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\identity\CharIdentity.java:[142,15] [removal] Character(char) in Character has been deprecated and marked for removal
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\identity\ShortIdentity.java:[131,15] [removal] Short(short) in Short has been deprecated and marked for removal
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\identity\LongIdentity.java:[141,15] [removal] Long(long) in Long has been deprecated and marked for removal
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\identity\ByteIdentity.java:[134,15] [removal] Byte(byte) in Byte has been deprecated and marked for removal
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\JDOHelper.java:[1529,20] [removal] Integer(int) in Integer has been deprecated and marked for removal
      [WARNING] C:\work\github\db-jdo\api\src\main\java\javax\jdo\JDOHelper.java:[1530,20] [removal] Integer(int) in Integer has been deprecated and marked for removal
      ...
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tilmannz Tilmann Zäschke
            tilmannz Tilmann Zäschke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment