Bug #3086
closedError with kepler20080122.zip version (PTII?)
0%
Description
The nightly zipped version (kepler20080122) ends up having a recurring error shown in the terminal when the cursor is moved over the workflow display area.
The error appears in diva.canvas.BasicZList (see below) when executed using kepler.bat (Windows) or kepler.sh (Mac). Kepler seems to work OK, but error keeps appearing. Does not occur in keplwe20080118 so maybe a recent change in Ptolemy code?
Exception in thread "AWT-EventQueue-0" java.util.NoSuchElementException: Can't g
et 0'th element from BasicZList of size 0
at diva.canvas.BasicZList$GSet$1.hasNext(BasicZList.java:253)
at diva.canvas.CanvasUtilities.pick(CanvasUtilities.java:432)
at diva.canvas.FigureLayer.pick(FigureLayer.java:423)
at diva.canvas.FigureLayer.getFigure(FigureLayer.java:634)
at diva.canvas.FigureLayer.processLayerMotionEvent(FigureLayer.java:778)
at diva.canvas.FigureLayer.dispatchEvent(FigureLayer.java:209)
at diva.canvas.CanvasPane.processLayerEvent(CanvasPane.java:280)
at diva.canvas.CanvasPane.dispatchEvent(CanvasPane.java:89)
at diva.canvas.JCanvas.internalProcessMouseEvent(JCanvas.java:465)
at diva.canvas.JCanvas.processMouseEvent(JCanvas.java:419)
Updated by Christopher Brooks almost 17 years ago
My bad. I was fixing FindBugs warnings.
Man-kit (Jackie) Leung fixed this in the
Ptolemy II tree.
I just checked in new diva.jar.
Updated by Dan Higgins almost 17 years ago
There was a change in diva.canvas.BasicZList.java (in PTII) on Jan 22 that is the apparent cause.
'throws NoSuchElementException' added on line 251