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 - Array inside of another object isn't properly filled with singleton when deserializing JSON
Summary: Array inside of another object isn't properly filled with singleton when dese...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Html4j (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-14 19:56 UTC by Jaroslav Tulach
Modified: 2015-06-18 03:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.