This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | ClassCastException: java.lang.String cannot be cast to org.json.simple.JSONObject | ||
---|---|---|---|
Product: | javascript | Reporter: | thruminds |
Component: | Libraries | Assignee: | Jan Stola <jstola> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | vriha |
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 218856 |
Attachments: | stacktrace |
Description
thruminds
2015-07-30 11:12:14 UTC
Created attachment 155050 [details]
stacktrace
It seems that the CDNJS server returns the data in a different format than it used to return them. I have modified the corresponding code to handle both cases (the old and the current format). Modified file: https://hg.netbeans.org/web-main/rev/f028b440d36c Integrated into release81_beta branch: https://hg.netbeans.org/releases/rev/02fb055cdd47 https://hg.netbeans.org/releases/rev/dec4b27736a3 Integrated into 'main-silver', will be available in build *201507310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f028b440d36c User: Jan Stola <jstola@netbeans.org> Log: #253987: ClassCastException: java.lang.String cannot be cast to org.json.simple.JSONObject Verified in Beta, thank you Product Version: NetBeans IDE 8.1 Beta (Build 201507302201) Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16 System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb) |