Image mosaic may fail to mosaic gray-alpha and RGBA images

Description

This is due to a variable shared in a field, that really should have not, causing different paths in the JAI chain to share the same array of selected bands. In case of non uniform inputs, the values contained in the array are obviously not going work for all images (but may or may not throw exceptions, depending on which order the images are loaded)

Environment

None

Assignee

Andrea Aime

Reporter

Andrea Aime

Triage

None

Components

Fix versions

Priority

Medium
Configure