Hi Brad, Am Freitag, dem 18.02.2022 um 12:28 -0700 schrieb Brad Walker: > 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.
I think what you see is, that you compiled with JDK 11 and the failing bots are building on JDK 8. The difference can be found in the DefaultTableModel: public Vector getDataVector() vs. public Vector<Vector> getDataVector() So with JDK 11 this is a redundant cast, but with JDK 8 the case is required. I assume the rest of the problems is similar. HTH Matthias --------------------------------------------------------------------- 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
