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.

Bug 252987

Summary: Array inside of another object isn't properly filled with singleton when deserializing JSON
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: Html4jAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Jaroslav Tulach 2015-06-14 19:56:50 UTC
Small tweak to test introduced in http://hg.netbeans.org/html4j/rev/c76ea8b1af46 yields an error:

--- Base (BASE)
+++ Locally Modified (Based On LOCAL)
@@ -271,7 +271,7 @@
     @KOTest
     public void parseFiveElementsAsAnArray() throws Exception {
         final BrwsrCtx c = newContext();
-        final InputStream o = createIS(false, false, 5);
+        final InputStream o = createIS(false, false, -1);
         SequenceInputStream is = new SequenceInputStream(
             new ByteArrayInputStream("{ \"info\" : ".getBytes("UTF-8")),
             new SequenceInputStream(
@@ -293,7 +293,7 @@
             cnt++;
         }
 
-        assertEquals(cnt, 5, "Fives people found in info");
+        assertEquals(cnt, 1, "Person found in info");
     }
     
     @KOTest
Comment 1 Jaroslav Tulach 2015-06-18 03:23:55 UTC
http://hg.netbeans.org/html4j/rev/aca916b876cf

Should be part of 1.2 release.