1. 场景描述营销活动, 运营同学上传人群名单, 系统读取文件将人群落库, 有行数据混进了空格, 发奖失败.account_no = ‘ 226610000XXXXXXXXXX’more排查代码, 感觉没什么问题,privateCrowdDataInfoconstructCrowdData(CrowdConfigInfocrowdConfigInfo,Stringdata,introwNum){...CrowdDataInfocrowdDataInfo=newCrowdDataInfo();crowdDataInfo.setAccountNo(dataArray[0].trim());crowdDataInfo.setAccountType(crowdConfigInfo.getAccountType());crowdDataInfo.setCrowdNo(crowdConfigInfo.getCrowdNo());...returncrowdDataInfo;}Debug trim() 函数源码, 发现并没有走到判断语句中, 显然,我们应该碰到了假空格!!publicStringtrim(){intlen=value.length;intst=0;char[]val=value;/* avoid getfield opcode */while((st<=' ')){st++;}w
...
继续阅读
(11)