Hi Brad,
Matthias already replied while i was still looking at jdk 8 sources :)
here is the difference
https://docs.oracle.com/javase/8/docs/api/javax/swing/table/DefaultTableModel.html#getDataVector--
https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/javax/swing/table/DefaultTableModel.html#getDataVector()
one is a Vector, the other a Vector<Vector>
you should be able to reproduce the error if you open the module in NB
and set its JDK to 8, then build.
my advice:
revert this particular change, once we drop building on JDK 8 for this
module, we can make this a Vector<Vector>. Making both JDKs happy
without casting probably won't work.
best regards,
-mbien
On 18.02.22 20:28, Brad Walker wrote:
I recently submitted a pull request for a substantial change. The change
simply removes redundant casts from the source.
My problem is that is complies cleanly on my local machine.. But, on the
build server I'm getting an error:
2022-02-18T18:04:36.0095950Z [repeat]
/Users/runner/work/netbeans/netbeans/java/java.api.common/src/org/netbeans/modules/java/api/common/project/ui/customizer/SourceRootsUi.java:443:
error: incompatible types: Object cannot be converted to Vector
2022-02-18T18:04:36.0096440Z [repeat] Vector item =
rootsModel.getDataVector().elementAt(si[i]);
2022-02-18T18:04:36.0096740Z [repeat]
^
Maybe I'm not passing an option or something. But, this error seems so
fundamental that I should have seen it when I compiled locally.
Any help/insight would be appreciated.
-brad w.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists