src/main/java/org/jboss/net/protocol/file/FileURLConnection.java
public OutputStream getOutputStream() throws IOException
   {
      connect();
      
      SecurityManager sm = System.getSecurityManager();
      if (sm != null)
      {
         // Check for write access
         FilePermission p = new FilePermission(file.getPath(), "write");
         sm.checkPermission(p);
      }
      return new FileOutputStream(file);
   }
public OutputStream getOutputStream() throws IOException
   {
      connect();
      
      SecurityManager sm = System.getSecurityManager();
      if (sm != null)
      {
         // Check for write access
         FilePermission p = new FilePermission(file.getPath(), "write");
         sm.checkPermission(p);
      }
      return new FileOutputStream(file);
   }
public OutputStream getOutputStream ( ) throws IOException { connect ( ) ; SecurityManager sm = System . getSecurityManager ( ) ; if ( sm != null ) { // Check for write access FilePermission p = new FilePermission ( file . getPath ( ) , "write" ) ; sm . checkPermission ( p ) ; } return new FileOutputStream ( file ) ; }
We should probably disallow this?
We should probably disallow this?