Issue 93 in json-simple: JSONObject produces warning in code

708 views
Skip to first unread message

json-...@googlecode.com

unread,
Dec 16, 2013, 12:15:56 PM12/16/13
to json-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 93 by waynejwe...@gmail.com: JSONObject produces warning in code
http://code.google.com/p/json-simple/issues/detail?id=93

When using JSONObject, we get the following warning:

Type safety: The method put(Object, Object) belongs to the raw type
HashMap. References to generic type HashMap<K,V> should be parameterized

(see
http://stackoverflow.com/q/2646613/344286
http://stackoverflow.com/q/16415436/344286 )

It would be a good thing if JSONObject would implement HashMap<K, V> so we
don't have to wrap code in a warning suppression or write an adapter.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

json-...@googlecode.com

unread,
Dec 18, 2013, 10:26:15 PM12/18/13
to json-...@googlegroups.com
Updates:
Status: Accepted
Labels: -Type-Defect Type-Enhancement

Comment #1 on issue 93 by fangyid...@gmail.com: JSONObject produces warning
in code
http://code.google.com/p/json-simple/issues/detail?id=93

(No comment was entered for this change.)

json-...@googlecode.com

unread,
Mar 11, 2014, 9:25:51 AM3/11/14
to json-...@googlegroups.com

Comment #2 on issue 93 by ja...@jcalfee.info: JSONObject produces warning
in code
http://code.google.com/p/json-simple/issues/detail?id=93

Please include JSONObject, this would fix the bulk of them. There may be
other objects to consider too.

json-...@googlecode.com

unread,
Mar 11, 2014, 9:29:01 AM3/11/14
to json-...@googlegroups.com

Comment #3 on issue 93 by ja...@jcalfee.info: JSONObject produces warning
in code
http://code.google.com/p/json-simple/issues/detail?id=93

Please include JSONArray, this would fix the bulk of them.

json-...@googlecode.com

unread,
Apr 29, 2014, 11:15:52 AM4/29/14
to json-...@googlegroups.com

Comment #4 on issue 93 by edm0...@gmail.com: JSONObject produces warning in
code
http://code.google.com/p/json-simple/issues/detail?id=93

I'm including all of org.json.simple.* and am getting the type safety
warning outlined above.

json-...@googlecode.com

unread,
Apr 29, 2014, 11:16:52 AM4/29/14
to json-...@googlegroups.com

Comment #5 on issue 93 by edm0...@gmail.com: JSONObject produces warning in
code
http://code.google.com/p/json-simple/issues/detail?id=93

I'm including all of org.json.simple.* from the jar (includes
org.json.simple.JSONArray) and am getting the type safety warning outlined

json-...@googlecode.com

unread,
Jan 28, 2015, 10:47:03 PM1/28/15
to json-...@googlegroups.com

Comment #6 on issue 93 by jeetendr...@gmail.com: JSONObject produces
warning in code
https://code.google.com/p/json-simple/issues/detail?id=93

is this fixed ? if yes, then can you please point me to the release version
for same ?
Reply all
Reply to author
Forward
0 new messages