jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60534] New: Fix error prone warning about http://errorprone.info/bugpattern/DefaultCharset rule in src\core\org\apache\jmeter\samplers\SampleResult.java file
Date Fri, 30 Dec 2016 11:22:54 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60534

            Bug ID: 60534
           Summary: Fix error prone warning about
                    http://errorprone.info/bugpattern/DefaultCharset rule
                    in
                    src\core\org\apache\jmeter\samplers\SampleResult.java
                    file
           Product: JMeter
           Version: 3.1
          Hardware: PC
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: ra0077@gmail.com
  Target Milestone: ---

Hi,

I have run http://errorprone.info tool into JMeter code and it detect some
warning

I have 3 warnings in src\core\org\apache\jmeter\samplers\SampleResult.java file

    [javac]
C:\Util\0_perso\JMeterSVN\jmeter\src\core\org\apache\jmeter\samplers\SampleResult.java:714:
warning: [DefaultCharset] Implicit use of the platform default charset, which
can result in e.g. non-ASCII characters being silently replaced with '?' in
many environments
    [javac]             responseData = response.getBytes(); // N.B. default
charset is used deliberately here
    [javac]                                             ^
    [javac]     (see http://errorprone.info/bugpattern/DefaultCharset)
    [javac]   Did you mean 'responseData = response.getBytes(UTF_8);' or
'responseData = response.getBytes(Charset.defaultCharset());'?


Antonio

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message