From be13e10fad7093325c5cbc40aa0977040f627993 Mon Sep 17 00:00:00 2001 From: Paullo612 Date: Thu, 25 May 2023 23:31:10 +0300 Subject: [PATCH] Do not use API from som.sun.* packages in compiler implementation Using those packages may cause illegal access errors with modularized javac. Task-number: #31 --- .../mlfx/compiler/elements/IdentifiableFXMLElement.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/compiler-core/src/main/java/io/github/paullo612/mlfx/compiler/elements/IdentifiableFXMLElement.java b/compiler/compiler-core/src/main/java/io/github/paullo612/mlfx/compiler/elements/IdentifiableFXMLElement.java index c03e858..a3172d9 100644 --- a/compiler/compiler-core/src/main/java/io/github/paullo612/mlfx/compiler/elements/IdentifiableFXMLElement.java +++ b/compiler/compiler-core/src/main/java/io/github/paullo612/mlfx/compiler/elements/IdentifiableFXMLElement.java @@ -15,7 +15,6 @@ */ package io.github.paullo612.mlfx.compiler.elements; -import com.sun.javafx.beans.IDProperty; import io.github.paullo612.mlfx.compiler.CompilerContext; import io.github.paullo612.mlfx.compiler.ProcessingInstructions; import io.github.paullo612.mlfx.expression.ExpressionContext; @@ -77,10 +76,10 @@ private void doSetIdProperty(CompilerContext context, String id, MethodElement s private void setIdProperty(CompilerContext context, String id) { ClassElement classElement = getClassElement(); - AnnotationValue annotation = classElement.getAnnotation(IDProperty.class); + AnnotationValue annotation = classElement.getAnnotation("com.sun.javafx.beans.IDProperty"); if (annotation == null) { - // No ID property present, noting to do here. + // No ID property present, nothing to do here. return; }