Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.