Skip to content

Conversation

@TimReset
Copy link

@TimReset TimReset commented Apr 1, 2015

Otherwise List<?> will call JSONArray(Object array) but is not right.

Example:
List<?> list = new ArraysList();
JSONArray array = new JSONArray(list);

With old code this call JSONArray(Object array) and then throw exception ( throw new JSONException("JSONArray initial value should be a string or collection or array.");) But is not right! JSONArray(Collection collection) will be call! With wildcard that be work.

P.S. Sorry for my English.

Otherwise List<?> will call  JSONArray(Object array) but is not right.
@stleary
Copy link
Owner

stleary commented Apr 2, 2015

Evaluating, will get back to you soon. No worries on the English. Thanks, Sean

@stleary
Copy link
Owner

stleary commented Apr 21, 2015

Please see pull requests 111 and 112, which proposed a similar implementation.

@stleary stleary closed this Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants