Fixed the build failure

i8 changed/i8/jdeparser-2.0.0-5.el8.inferit
Sergey Cherevko 1 year ago
parent 8e90785ff0
commit 0b3d9d8bad
Signed by: scherevko
GPG Key ID: D87CBBC16D2E4A72

@ -0,0 +1,34 @@
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

@ -3,12 +3,14 @@
Name: jdeparser
Version: 2.0.0
Release: 5%{?dist}
Release: 5%{?dist}.inferit
Summary: Source generator library for Java
License: ASL 2.0
URL: https://github.com/jdeparser/jdeparser2
# old repos https://github.com/jdeparser/jdeparser
Source0: https://github.com/jdeparser/jdeparser2/archive/%{namedversion}.tar.gz
# MSVSphere
Patch100: 0001-Fixed-the-build-failure.patch
BuildArch: noarch
BuildRequires: maven-local
@ -29,10 +31,11 @@ This package contains the API documentation for %{name}.
%prep
%setup -q -n jdeparser2-%{namedversion}
%patch100 -p1
%pom_remove_plugin :maven-javadoc-plugin
%build
%mvn_build
%mvn_build -f
%install
%mvn_install
@ -44,7 +47,8 @@ This package contains the API documentation for %{name}.
%license LICENSE.txt
%changelog
* Wed Jul 26 2023 MSVSphere Packaging Team <packager@msvsphere.ru> - 2.0.0-5
* Mon Dec 04 2023 Sergey Cherevko <s.cherevko@msvsphere-os.ru> - 2.0.0-5.inferit
- Fixed the build failure
- Rebuilt for MSVSphere 8.8
* Wed May 30 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.0.0-5

Loading…
Cancel
Save