Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#112 Don't work in JDK1.4. json-lib-2.4-jdk13.jar

open
nobody
None
5
2011-02-03
2011-02-03
Anonymous
No

I encountered the error using json-lib-2.4-jdk13.jar run on the JDK1.4 .

java.lang.NoSuchMethodError: java.lang.ThreadLocal.remove()V
at net.sf.json.AbstractJSON.removeInstance(AbstractJSON.java:221)
at net.sf.json.JSONObject._fromBean(JSONObject.java:690)
at net.sf.json.JSONObject.fromObject(JSONObject.java:161)

I think as follows.

CycleSet extends ThreadLocal.
But, ThreadLocal.remove() method is mounted by the JDK1.5.

Discussion


  • Anonymous
    2011-06-06

    Good day.
    I am join to this bug watchers.

    And have other question: why your source json-lib-2.4-jdk13 code and compiled json-lib-2.4-jdk13.jar have major differences (like as: this bug or public JSONArray.length method)? Why don't you use deprecated tag?