SmartClient Version: v13.0p_2023-04-25/PowerEdition Deployment (built 2023-04-25)
Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
Version: 2023-03 (4.27.0)
Build id: 20230309-1520
We recently updated our source control to the latest GiT release. We were having interaction problems between the standard (i.e. old) eclipse Photon version (2018) and this GiT, so we downloaded the latest eclipse release 2023-03.
The new eclipse is the ONLY change in this environment.
We have several apps that we build on SmartClient and each app shares this same error in different code. Here is a code example of the error indicated in eclipse while running from eclipse:
I have removed extraneous ( I believe ) lines of code from this example.
The error eclipse posts at the line: tagField.setValues((Object[])(array)); is:
The type java.lang.invoke.VarHandle cannot be resolved. It is indirectly referenced from required .class files
Another example of the same error in another piece of code in another eclipse project is:
This code is attempting to nullify or clear, the values that are in the "Blocks" key of the MultiComboBoxItem.
Is this an incompatibility between our standard Java 8 version and the Java version required (?) by eclipse. A Google search indicates eclipse should work with a minimum Java version of eclipse of 5 (?) so version 8 should be good on all released versions of eclipse ? There appears to be a single reference to this issue found here. But the reference seems to not offer a viable solution for us.
Another form of the question is: are we initializing the MultiComboBoxItem.setValues() api correctly (although seems to work), and that is the code that needs to change?
?
Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
Version: 2023-03 (4.27.0)
Build id: 20230309-1520
We recently updated our source control to the latest GiT release. We were having interaction problems between the standard (i.e. old) eclipse Photon version (2018) and this GiT, so we downloaded the latest eclipse release 2023-03.
The new eclipse is the ONLY change in this environment.
We have several apps that we build on SmartClient and each app shares this same error in different code. Here is a code example of the error indicated in eclipse while running from eclipse:
Code:
tagField = new MultiComboBoxItem("TagName"); ..... List<String> tagSelectVal = (List<String>)viewState.get("tagSelectItem"); ..... if (tagSelectVal != null) { String[] array = tagSelectVal.toArray(new String[tagSelectVal.size()]); tagField.setValues((Object[])(array)); }
The error eclipse posts at the line: tagField.setValues((Object[])(array)); is:
The type java.lang.invoke.VarHandle cannot be resolved. It is indirectly referenced from required .class files
Another example of the same error in another piece of code in another eclipse project is:
Code:
((MultiComboBoxItem) getItem("Blocks")).setValues(new Object[] {});
Is this an incompatibility between our standard Java 8 version and the Java version required (?) by eclipse. A Google search indicates eclipse should work with a minimum Java version of eclipse of 5 (?) so version 8 should be good on all released versions of eclipse ? There appears to be a single reference to this issue found here. But the reference seems to not offer a viable solution for us.
Another form of the question is: are we initializing the MultiComboBoxItem.setValues() api correctly (although seems to work), and that is the code that needs to change?
void | setValues(java.lang.Object... values) |
?
Comment