- 
    Type:
Enhancement
 - 
    Resolution: Duplicate
 - 
    Priority:
  P4                     
     - 
    None
 - 
    Affects Version/s: 9
 - 
    Component/s: core-libs
 
                    The zip provider's newOutputStream method uses a ByteArrayOutputStream and so will not cope with files greater than 2GB, maybe less when the ByteArrayOutputStream cannot grow. It would be desirable if the useTempFile behavior kicked in automatically after a certain threshold so avoid OOME or to avoid applications needing to specify the useTempFile property in the environment.
            
- duplicates
 - 
                    
JDK-8190753 (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream
-         
     - Closed
 
 -