Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

export.properties sorted differenty #4586

drdt ·

We have a job that exports configurations from QB for upload to Perforce, and the imports them. We use this to save our configurations for posterity, and also to migrate between servers.

Since upgrading to use JDK 21 (from 1.8), we are seeing a change in the format of the export.properties file, shown below. We think this is caused by a change to the default behavior of the array.sort() method in Java (or Groovy). But it is causing strife because it is creating unnecessary diffs in our Perforce history, and causing merge conflicts.

Can this be fixed?

*** 1,4 ****
! #Thu Jun 13 11:06:10 EDT 2024
  version=13.0.49
- recursive=false
- id=1
--- 1,4 ----
! #Fri Jul 26 19:02:16 EDT 2024
! id=1
! recursive=false
  version=13.0.49
  • replies 3
  • views 156
  • stars 0
robinshen ADMIN ·
drdt ·

I just tried this with newly-downloaded 14.0.17 and got the same result :sweat:

*** 1,4 ****
! #Thu Jun 13 13:06:32 EDT 2024
! version=13.0.49
  recursive=false
! id=999
--- 1,4 ----
! #Mon Aug 05 13:32:44 EDT 2024
! id=999
  recursive=false
! version=14.0.17
robinshen ADMIN ·

It will always sort by key since 14.0.16. So after this version, the version will not change any more.