Minecraft wiki entry for Development_versions, associated text: Worlds last opened before Java Edition 1.2 can no longer be opened.
These worlds must be opened in a version prior to 21w37a (preferably between Java Edition 1.2 and Java Edition 1.6.4).
An error will be shown when attempting to open these worlds.