From b3e6d9639fd914a18d7104fb71361e07719f8d39 Mon Sep 17 00:00:00 2001 From: Marten Lohstroh Date: Thu, 28 Sep 2023 08:36:59 -0700 Subject: [PATCH] Fix conflict --- core/src/main/java/org/lflang/TargetProperty.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/lflang/TargetProperty.java b/core/src/main/java/org/lflang/TargetProperty.java index 508a6332ec..7740516559 100644 --- a/core/src/main/java/org/lflang/TargetProperty.java +++ b/core/src/main/java/org/lflang/TargetProperty.java @@ -25,6 +25,7 @@ package org.lflang; +import java.lang.reflect.InvocationTargetException; import java.nio.file.Path; import java.util.Arrays; import java.util.LinkedList; @@ -283,8 +284,8 @@ public String getKey() { public static TargetPropertyConfig getPropertyInstance(TargetProperty p) { try { - return p.propertyClass.newInstance(); - } catch (InstantiationException | IllegalAccessException e) { + return p.propertyClass.getDeclaredConstructor().newInstance(); + } catch (ReflectiveOperationException e) { throw new RuntimeException(e); } }