You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2023/07/11 14:44:00 UTC

[jira] [Commented] (LANG-1701) Where is the difference?

    [ https://issues.apache.org/jira/browse/LANG-1701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17742043#comment-17742043 ] 

Gilles Sadowski commented on LANG-1701:
---------------------------------------

To ensure that no (de)serialization issue, due to the particular (binary) format at hand, is involved in this weird (?) behaviour, I saved the 2 loaded objects to XML (using [{{XMLEncoder}}|https://docs.oracle.com/javase/8/docs/api/java/beans/XMLEncoder.html] from the JDK): The XML outputs (from the two object being compared) show no differences.

Do you agree that this confirms that the [Lang]'s [{{ReflectionDiffBuilder}}|https://commons.apache.org/proper/commons-lang/javadocs/api-release/org/apache/commons/lang3/builder/ReflectionDiffBuilder.html] is buggy, or has major (undocumented) limitations?


> Where is the difference?
> ------------------------
>
>                 Key: LANG-1701
>                 URL: https://issues.apache.org/jira/browse/LANG-1701
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.builder.*
>            Reporter: Gilles Sadowski
>            Priority: Major
>
> This report is a follow-up of [this post|https://markmail.org/message/2gsqo67i6iqkscic] on the "user" ML.
> The following is a very short excerpt of the {{DiffResult}} for my use-case.
> In this particular occurrence, the number of differences was reported to be 3; below is 1 of those 3.
> {noformat}
> [EBElementaryImpl [globalRanking=0.5968429082193868,referenceTime=2284.2000453600494,period=1.171943602656199,periodError=2.4295114805950035E-5,periodSearchInfo=STRING_LENGTH_peakIdx1_freqMultFact1.0,primaryEclPhase=0.6925071490306989,primaryEclPhaseError=0.004962180747017656,primaryEclDuration=0.37648175257319794,primaryEclDurationError=0.03878385329624003,primaryEclDepth=0.5255078446758894,primaryEclDepthError=0.02189999840324586,secondaryEclPhase=0.1930675728191525,secondaryEclPhaseError=0.004611168038876871,secondaryEclDuration=0.4,secondaryEclDurationError=0.0,secondaryEclDepth=0.2201620328425875,secondaryEclDepthError=0.013621938652715037,numDegFreedom=8,issueFlagsOfFit=0,reducedChi2=2.738038313809182,reducedChi2InEclipse=2.178358093408932,numObsInPrimaryEclipse=7,numObsInSecondaryEclipse=17,probGcvsEA=0.0,probGcvsEB=1.0,probGcvsEW=0.0,pojmanskiClassification=null]],
> [EBElementaryImpl [globalRanking=0.5968429082193868,referenceTime=2284.2000453600494,period=1.171943602656199,periodError=2.4295114805950035E-5,periodSearchInfo=STRING_LENGTH_peakIdx1_freqMultFact1.0,primaryEclPhase=0.6925071490306989,primaryEclPhaseError=0.004962180747017656,primaryEclDuration=0.37648175257319794,primaryEclDurationError=0.03878385329624003,primaryEclDepth=0.5255078446758894,primaryEclDepthError=0.02189999840324586,secondaryEclPhase=0.1930675728191525,secondaryEclPhaseError=0.004611168038876871,secondaryEclDuration=0.4,secondaryEclDurationError=0.0,secondaryEclDepth=0.2201620328425875,secondaryEclDepthError=0.013621938652715037,numDegFreedom=8,issueFlagsOfFit=0,reducedChi2=2.738038313809182,reducedChi2InEclipse=2.178358093408932,numObsInPrimaryEclipse=7,numObsInSecondaryEclipse=17,probGcvsEA=0.0,probGcvsEB=1.0,probGcvsEW=0.0,pojmanskiClassification=null]]]
> {noformat}
> But I don't see any difference...
> From another instance, 3 differences (out of 11 reported):
> {noformat}
> [ag: AstroParamImpl [val=0.006,error=NaN,lowerConf=0.0014,upperConf=0.0151,name=ag,gof=NaN,info=null,dummy=0.0],
>      AstroParamImpl [val=0.006,error=NaN,lowerConf=0.0014,upperConf=0.0151,name=ag,gof=NaN,info=null,dummy=0.0]]
> [abp: AstroParamImpl [val=0.0074,error=NaN,lowerConf=0.0018,upperConf=0.0188,name=abp,gof=NaN,info=null,dummy=0.0],
>       AstroParamImpl [val=0.0074,error=NaN,lowerConf=0.0018,upperConf=0.0188,name=abp,gof=NaN,info=null,dummy=0.0]]
> [arp: AstroParamImpl [val=0.0042,error=NaN,lowerConf=0.001,upperConf=0.0106,name=arp,gof=NaN,info=null,dummy=0.0],
>       AstroParamImpl [val=0.0042,error=NaN,lowerConf=0.001,upperConf=0.0106,name=arp,gof=NaN,info=null,dummy=0.0]]
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)