new (java11) style storage construction#6797
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6797 +/- ##
============================================
+ Coverage 10.33% 11.15% +0.81%
- Complexity 6608 7442 +834
============================================
Files 2451 2488 +37
Lines 242340 258961 +16621
Branches 37924 43590 +5666
============================================
+ Hits 25054 28876 +3822
- Misses 214200 226567 +12367
- Partials 3086 3518 +432
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4334 |
| try { | ||
| this._storageMapper.put(info.storagePoolType().toString(), storageAdaptor.newInstance()); | ||
| s_logger.info(String.format("adding storage adaptor for %s", storageAdaptor.getName())); | ||
| this._storageMapper.put(info.storagePoolType().toString(), storageAdaptor.getDeclaredConstructor().newInstance()); |
There was a problem hiding this comment.
@DaanHoogland pardon my ignorance, what does getDeclaredConstructor do?
There was a problem hiding this comment.
getDeclaredConstructor().newInstance() does the same as newInstance() but in a non-deprecated way. I haven´t figured it out yet, but I don´t think this will solve the issue.
|
this has become stale but the change is in line with java deprecation lines, so changing the title and re-testing. |
|
@blueorangutan package |
|
@DaanHoogland a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 6490 |
|
@blueorangutan test |
|
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-7103)
|
Description
This PR unpates the reflective construction of storage adaptors (initiated by #6794, but it does not solve it)
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?