Project

General

Profile

bug #6409

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 almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Start date:
02/03/2017
Due date:
% Done:

100%

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 code Closed 01/21/2017

Associated revisions

Revision 1dd3792c (diff)
Added by Andreas Müller almost 2 years ago

ref #6409 preliminary set Level3 test to @Ignore to avoid infinite loop

Revision 5734eafe (diff)
Added by Andreas Müller over 1 year ago

fix #6409 remove Ignores from ValidationTest, seems to be fixed by removing subclasses

History

#1 Updated by Andreas Müller almost 2 years ago

  • Description updated (diff)
  • Priority changed from New to Highest
  • Parent task set to #6361

#2 Updated by Andreas Müller almost 2 years ago

  • Description updated (diff)
  • Severity changed from normal to major

#3 Updated by Andreas Müller almost 2 years ago

  • Related to task #6362: Remove occurrence of NonViralName in code added

#4 Updated by Andreas Müller over 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#5 Updated by Andreas Müller over 1 year ago

  • % Done changed from 50 to 90

#6 Updated by Andreas Müller over 1 year ago

  • Status changed from Resolved to Closed
  • % Done changed from 90 to 100

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)