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: | web | Reporter: | Vladimir Riha <vriha> |
Component: | Inspection | Assignee: | Jan Stola <jstola> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P1 | ||
Version: | 8.0.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 209196 |
Attachments: | stacktrace |
Description
Vladimir Riha
2014-04-22 06:05:57 UTC
Created attachment 146872 [details]
stacktrace
Thank you for catching this. It is a consequence of the fix of issue 241098. The exception shows that "selectorList" property is present in given CSS Rule, it has "selectors" sub-property but its type is array of Strings. Unfortunately, I have tested this on the latest version of Chrome (where the type of "selectors" is array of JSONObjects) and Embedded Browser from JDK 7 (where "selectorList" is not present). I overlooked that there is another version of the protocol (used by Embedded Browser in JDK 8). For the sake of completeness, there are the mentioned changes in Chrome: Introduction of "selectorList" (with an array of Strings): http://src.chromium.org/viewvc/blink/trunk/Source/devtools/Inspector-1.1.json?r1=129469&r2=129470& Replacement of the array of Strings by an array of Selectors (JSONObjects): http://src.chromium.org/viewvc/blink/trunk/Source/devtools/protocol.json?r1=159732&r2=159733& Verified, thank you Product Version: NetBeans IDE Dev (Build 201406040001) Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13 System: Linux version 3.13.0-27-generic running on i386; UTF-8; en_US (nb) User directory: /home/vriha/.netbeans/dev Cache directory: /home/vriha/.cache/netbeans/dev |