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

Problem with net.sf,json.JSONException

Help
2012-07-19
2013-04-29
  • Daniele Nardi
    Daniele Nardi
    2012-07-19

    public static net.sf.json.JSONObject getAsJSONObject() throws net.sf.json.JSONException {

    This line is the declaration of a member function on my project: NetBeans highlights it with the error

    Incompatible types
    Required: java.lang.Throwable
    Found: net.sf.json.JSONException

    Why does it happens?