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 240468 - Long Strings are surrounded with <html><font...>...</font></html> in Variables view.
Summary: Long Strings are surrounded with <html><font...>...</font></html> in Variable...
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-14 17:38 UTC by Martin Entlicher
Modified: 2014-01-16 02:44 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 Martin Entlicher 2014-01-14 17:38:30 UTC
The problem with <html> tags appearing in variable values was already fixed some time ago. But it seems that it keeps appearing specifically for long String values.

To reproduce:

        StringBuilder sb = new StringBuilder();
        int n = 99000;
        int r = Character.MAX_RADIX - 1;
        for (int i = 0; i < n; i++) {
            sb.append(Integer.toString(i % r, r));
        }
        String s = sb.toString();

put a line breakpoint to the last line and debug.
After the debugger is suspended, the value of "sb" is enclosed in <html> tags.
If the String is smaller (n = 100), the tags do not appear.
Comment 1 Martin Entlicher 2014-01-14 17:44:43 UTC
Fixed by changeset:   270544:8ac54730bda3
http://hg.netbeans.org/core-main/rev/8ac54730bda3
Comment 2 Quality Engineering 2014-01-16 02:44:56 UTC
Integrated into 'main-silver', will be available in build *201401160001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8ac54730bda3
User: mentlicher@netbeans.org
Log: #240468: Make the hidden constant a little more visible and increase it's value from ridiculous 2^10 to 2^20.