Bug 240699

Summary: XML gets formatted as HTML in Variables view
Product: debugger Reporter: kimsp <kimsp>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED QA Contact: issues <issues.netbeans.org>
Priority: P3    
Version: 8.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Issue Type: DEFECT Exception Report:
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
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo