/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/java/default_constructor_runme.java
23 строки
681 B
William S Fulton
Don't generate constructor wrappers if a base class has a private constructor
07 июл 2015, 22:15
07 июл 2015, 22:15
3718b81
Код
Авторство
О чём код?
import default_constructor.*; public class default_constructor_runme { static { try { System.loadLibrary("default_constructor"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); System.exit(1); } } public static void main(String argv[]) { // calling protected destructor test try { G g = new G(); g.delete(); throw new RuntimeException("Protected destructor exception should have been thrown"); } catch (UnsupportedOperationException e) { } } }