You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jdeparser/SOURCES/0001-Fixed-the-build-failur...

35 lines
1.1 KiB

From ba54939f91df70a046c19c73f52f4e0d3ed7dc0b Mon Sep 17 00:00:00 2001
From: Sergey Cherevko <s.cherevko@msvsphere-os.ru>
Date: Mon, 4 Dec 2023 13:37:20 +0300
Subject: [PATCH] Fixed the build failure
---
src/main/java/org/jboss/jdeparser/Assertions.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/jboss/jdeparser/Assertions.java b/src/main/java/org/jboss/jdeparser/Assertions.java
index 017c645..ca9b1a1 100644
--- a/src/main/java/org/jboss/jdeparser/Assertions.java
+++ b/src/main/java/org/jboss/jdeparser/Assertions.java
@@ -18,7 +18,7 @@
package org.jboss.jdeparser;
-import sun.reflect.Reflection;
+//import sun.reflect.Reflection;
/**
* @author <a href="mailto:david.lloyd@redhat.com">David M. Lloyd</a>
@@ -26,7 +26,7 @@ import sun.reflect.Reflection;
class Assertions {
static boolean callerIs(Class<?> clazz) {
try {
- return Reflection.getCallerClass(3) == clazz;
+ // return Reflection.getCallerClass(3) == clazz;
} catch (Throwable ignored) {}
// dunno
return true;
--
2.39.3