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 240699 - XML gets formatted as HTML in Variables view
Summary: XML gets formatted as HTML in Variables view
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Martin Entlicher
Depends on:
Reported: 2014-01-20 12:14 UTC by kimsp
Modified: 2014-01-20 12:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:

IDE log (270.78 KB, text/plain)
2014-01-20 12:14 UTC, kimsp
screendump (3.22 KB, image/gif)
2014-01-20 12:14 UTC, kimsp

Note You need to log in before you can comment on or make changes to this bug.
Description kimsp 2014-01-20 12:14:02 UTC
Product Version = NetBeans IDE 8.0 Beta (Build 201401141042)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) Client VM 24.45-b08

When debugging, if a variable contains XML it is displayed with <html><font.... in the Value column in the Variables view if it a long XML text. 

Test program:

    public static void main(String[] args) {
        String tooLong = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><test><test><test><test><test><test><test><test></test></test></test></test></test></test></test><test><test><test><test><test><test><test><test></test></test></test></test></test></test></test></test><test><test><test><test><test><test><test><test></test></test></test></test></test></test></test></test><test><test><test><test><test><test><test><test></test></test></test></test></test></test></test></test><test><test><test><test><test><test><test><test></test></test></test></test></test></test></test></test></test>";
        String ok = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><test><test>";
        System.err.println(tooLong  + " " + ok);

In the Variables view tooLong is displayed as startning with <html>font color=".... ok is not.
Comment 1 kimsp 2014-01-20 12:14:05 UTC
Created attachment 144146 [details]
IDE log
Comment 2 kimsp 2014-01-20 12:14:51 UTC
Created attachment 144147 [details]

Please see screen dump
Comment 3 Martin Entlicher 2014-01-20 12:26:00 UTC
This is fixed by