• Damjan Jovanovic's avatar
    #i127165# Clicking "No" in Java dialog causes abnormal exit on FreeBSD · 275753a7
    Damjan Jovanovic yazdı
    XSingleComponentFactory::createInstanceWithArgumentsAndContext()
    throws an Exception, not a RuntimeException. This was causing
    an abort on FreeBSD when "No" is clicked in the Java dialog,
    as JavaComponentLoader::activate() throws a
    CannotActivateFactoryException which is a subclass of Exception
    but not RuntimeException, and the scripting ProviderCache wrongly
    catches only RuntimeException. The missed CannotActivateFactoryException
    was going to unexpected(), which calls abort()...
    
    Patch by: me
    275753a7
ProviderCache.cxx 7.5 KB