Project

General

Profile

bug #6409

Updated by Andreas Müller about 7 years ago

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 

 ~~~ java 
 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

Back