Project

General

Profile

Actions

bug #6409

closed

feature request #6361: [MASTER] Merge all TaxonName classes into 1 class

Fix failing Level3 validation in ValidationTest introduced by removing TaxonNameBase subclasses

Added by Andreas Müller about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
major
Found in Version:
Tags:

Description

method is testLevel3ValidationWithValidName was set to @Ignore

The problem occurs in org.hibernate.validator.internal.util.TypeHelper.normalize and is an infinite loop.

There is a comment that this might happen

private static <K, V> Map<K, V> normalize(Map<K, V> map) {
        // TODO: will this cause an infinite loop with recursive bounds?

        for ( Entry<K, V> entry : map.entrySet() ) {
            K key = entry.getKey();
            V value = entry.getValue();

            while ( map.containsKey( value ) ) {
                value = map.get( value );
            }

            map.put( key, value );
        }

        return map;
    }

so maybe it is fixed in the meanwhile

The problem was introduced with commit c1118b450acd3f36d8351910accbd15b923e1140 (2017-02-03) in cdmlib (related to #6362)


Related issues

Related to EDIT - task #6362: Remove occurrence of NonViralName in codeClosedAndreas Müller

Actions
Actions

Also available in: Atom PDF