Catch UnsupportedOperationException thrown by Resource.getUrl()
This commit is contained in:
		
							parent
							
								
									fdf3915d9e
								
							
						
					
					
						commit
						48489e8200
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -147,7 +147,11 @@ public final class TypeManager {
 | 
			
		|||
            if (name.endsWith(".jar")) {
 | 
			
		||||
                if (!jarfiles.contains(name)) {
 | 
			
		||||
                    jarfiles.add(name);
 | 
			
		||||
                    loader.addURL(resource.getUrl());
 | 
			
		||||
                    try {
 | 
			
		||||
                        loader.addURL(resource.getUrl());
 | 
			
		||||
                    } catch (UnsupportedOperationException x) {
 | 
			
		||||
                        // not implemented by all kinds of resources
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue