ClojureCLR

Compiler.TryLoadInitType should not catch AssemblyInitializationException

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

From AaronC:
I just found an issue with how exceptions are handled in namespace loading. I see that you put a catch clause for AssemblyInitializationException in Compiler.TryLoadInitType that basically swallows this exception and returns false. I don't think this is desirable. This causes exceptions with loading AOT compiled namespaces to be very difficult to debug. Wouldn't it be better to just let any exceptions thrown by InvokeInitType pass through and be reported? Now I'm getting a FileNotFoundException when really there is an AssemblyInitializationException being thrown and silenced.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: