com.sun.javatest.TestResult has code tuned for JDK1.1 which could be optimized

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • jt6.0
    • Affects Version/s: jt6.0
    • Component/s: tools
    • None

      com.sun.javatest.TestResult

      contains the following blocks

                              // JDK 1.1--start
                              String s = output.toString();
                              output = new StringBuffer(s.substring(0, overflowStart) + s.substring(output.length() - overflowEnd));
                              // JDK 1.1--end

                              // JDK 1.1--start
                              String s = output.toString();
                              output = new StringBuffer(s.substring(0, overflowStart) + OVERFLOW_MESSAGE + s.substring(overflowEnd));
                              // JDK 1.1--end


      JTHarness is JDK8 baselined, so this code could and should be optimized

            Assignee:
            Dmitry Bessonov
            Reporter:
            Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: