Incoherent getNames() and getFeatureSource() behavior in AppSchemaDataAccess

Description

The method AppSchemaDataAccess.getFeatureSource(Name) may fail to return a feature source for any name returned by AppSchemaDataAccess.getNames().

This is due to the fact that getNames() returns either the target element or the mapping name (if it is defined), while getFeatureSource() only looks up mappings by target element.

To reproduce the issue, add this unit test to GeologicUnitTest.java:

See related discussion on ML.

Environment

None

Status

Assignee

Stefano Costa

Reporter

Stefano Costa

Triage

None

Components

Fix versions

Priority

Medium
Configure