Project

General

Profile

Actions

Bug #3207

closed

Invalid test about Zip lead to error with JDK 1.7

Added by François ARMAND almost 12 years ago. Updated almost 12 years ago.

Status:
Released
Priority:
1 (highest)
Category:
Architecture - Code maintenance
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

common/utils contains a unit test about Zip extraction order that fails in JDK 7
utils/src/test/scala/com/normation/utils/TestZipUtils.scala => Building zippable from a directory should::create the list of names in order

The cause is the use of "listFile", that does not garante any specific order:

There is no guarantee that the name strings in the resulting array
  * will appear in any specific order; they are not, in particular,
  * guaranteed to appear in alphabetical order.
Actions

Also available in: Atom PDF