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

Summary: XML gets formatted as HTML in Variables view
Product: debugger Reporter: kimsp <kimsp>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
screendump

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]
screendump

Please see screen dump
Comment 3 Martin Entlicher 2014-01-20 12:26:00 UTC
This is fixed by http://hg.netbeans.org/core-main/rev/8ac54730bda3