Actions
Bug #16133
closed2.5 --> 2.6: backwards incompatible change in MalformedCSVError
    Bug #16133:
    2.5 --> 2.6: backwards incompatible change in MalformedCSVError
  
Description
In Ruby 2.5, CSV::MalformedCSVError simply inherited from RuntimeError. In 2.6, it defines its own #new, taking 2 arguments (as opposed to the single argument of RuntimeError).
Code explicitly raising new errors of this class outside of the CSV library implementation itself breaks since it doesn't include the second argument (a line number).
        
           Updated by nobu (Nobuyoshi Nakada) about 6 years ago
          Updated by nobu (Nobuyoshi Nakada) about 6 years ago
          
          
        
        
      
      - Status changed from Open to Third Party's Issue
Please report it at https://github.com/ruby/csv.
        
           Updated by Spakman (Mark Somerville) about 6 years ago
          Updated by Spakman (Mark Somerville) about 6 years ago
          
          
        
        
      
      I'll do that.
        
           Updated by mifrill (Aleksey Strizhak) about 6 years ago
          Updated by mifrill (Aleksey Strizhak) about 6 years ago
          
          
        
        
      
      may close with Won't resolve probably, coz of this:
https://github.com/ruby/csv/issues/104
        
           Updated by kou (Kouhei Sutou) about 6 years ago
          Updated by kou (Kouhei Sutou) about 6 years ago
          
          
        
        
      
      This is already closed.
"Third Party's Issue" is one of the close statuses.
Actions