Project

General

Profile

Actions

Task #2619

closed

Data.setName, etc. do not copy the object

Added by Anonymous over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Start date:
03/05/2015
Due date:
% Done:

0%

Estimated time:

Description

The API doc for Data.setName, etc. say that the method copies the object: http://named-data.net/doc/ndn-ccl-api/data.html#data-setname-method

But Data.setName and setMetaInfo don't copy the object. https://github.com/named-data/jndn/blob/fe2cd6647fdb295778466f5b0cf1c2fe1c404288/src/net/named_data/jndn/Data.java#L252

Should fix to copy the object as in the other libraries. Likewise need to fix Sha256WithRsaSignature.setKeyLocator and setPublisherPublicKeyDigest, Sha256WithEcdsaSignature.setKeyLocator, KeyLocator.setKeyName.

Actions

Also available in: Atom PDF