modify patch

This commit is contained in:
daidai_is_here 2020-02-28 16:23:04 +08:00
parent 41e3be9f94
commit 8ce6d56f1a
2 changed files with 8 additions and 4 deletions

View File

@ -34,7 +34,9 @@ index 3264008..e937a66 100644
+ } catch(NoSuchFieldException ex) {
+ Class<?> clazz = object.getClass();
+ Field found = null;
+ while (clazz != null && method.getDeclaringClass().isAssignableFrom(clazz)) { + try { + found = clazz.getDeclaredField(fieldName);
+ while (clazz != null && method.getDeclaringClass().isAssignableFrom(clazz)) {
+ try {
+ found = clazz.getDeclaredField(fieldName);
+ } catch (NoSuchFieldException nfex) {
+ // ignore
+ }
@ -55,5 +57,4 @@ index 3264008..e937a66 100644
}
return result;
--
2.7.4
2.7.4

View File

@ -1,6 +1,6 @@
Name: beust-jcommander
Version: 1.71
Release: 6
Release: 7
Summary: Java framework for parsing command line parameters
License: ASL 2.0
URL: http://jcommander.org/
@ -44,5 +44,8 @@ sed -i 's/@VERSION@/%{version}/g' pom.xml
%files help -f .mfiles-javadoc
%changelog
* Fri Feb 28 2020 daiqianwen <daiqianwen@huawei.com> - 1.71-7
- Modify patch
* Wed Feb 12 2020 Shuaishuai Song <songshuaishuai2@huawei.com> - 1.71-6
- Package init