https://bz.apache.org/bugzilla/show_bug.cgi?id=66588
Bug ID: 66588
Summary: EchoProperties sorting broken for Oracle JDK9+
Product: Ant
Version: 1.10.13
Hardware: PC
Status: NEW
Severity: enhancement
Priority: P2
Component: Optional Tasks
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
After reading this:
https://stackoverflow.com/questions/10275862/how-to-sort-properties-in-java
it looks like Properties internal store0() switched from keys() to entrySet()
for the enumeration between JDK8 and JDK9. The EchoProperties task "text" sort
is done in saveProperties() with a stream sorted() call for the keys()
override, and a comparator for the entrySet() override. But in entrySet() it
test JavaEnvUtils.isKaffe()
, and this prevents the sorting. Was this meant to be !JavaEnvUtils.isKaffe()
as in they don't support streaming?
--
You are receiving this mail because:
You are the assignee for the bug.