Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2923

PCEnhancer creates deprecated call to new Long(long)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.0
    • 4.0.1
    • Enhance
    • None

    Description

      PCEnhancer creates deprecated call to new Long(long) while generating pcCopyKeyFieldsFromObjectId methods

         public void pcCopyKeyFieldsFromObjectId(FieldConsumer var1, Object var2) {
            super.pcCopyKeyFieldsFromObjectId(var1, var2);
            LongId var3 = (LongId)var2;
            var1.storeObjectField(8 + pcInheritedFieldCount, new Long(var3.getId()));
         }
      
         public void pcCopyKeyFieldsFromObjectId(Object var1) {
            super.pcCopyKeyFieldsFromObjectId(var1);
            LongId var2 = (LongId)var1;
            this.id = new Long(var2.getId());
         }
      

      Attachments

        Activity

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

          People

            solomax Maxim Solodovnik
            solomax Maxim Solodovnik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment