JDK-8157711 : add tests for immutable collections implementations of toString()
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Affected Version: 9
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2016-05-24
  • Updated: 2018-09-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Description
The immutable collections all extend AbstractList/Set/Map and so inherit their toString() behaviors. It's unclear whether MOAT tests toString() well enough. Some tests should be added, in the case where the collections no longer extend their Abstract superclass. (Or perhaps toString tests should be added to MOAT.)
Comments
MOAT was my early attempt to solve the problem of NxM testing for many collection implementations and many things to test. It's still a hard problem how to do this well. If you try to create a framework for this kind of problem, you end up with lots of configury, like "CollectionTestBuilderFeatures", which I think guava does some of. Another effort of mine ended up in e.g. test/java/util/concurrent/tck/Collection8Test.java
24-05-2016