Closed mbrowne closed 8 years ago
Thanks, the original error is gone, but now I'm getting a new error when running the same code (regardless of what the event parameter is named):
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: info.fulloo.trygve.run_time.RTExpression$RTMessage$RTPostReturnProcessing cannot be cast to info.fulloo.trygve.run_time.RTObject
at info.fulloo.trygve.graphics.GraphicsPanel.handleEventProgrammatically(GraphicsPanel.java:142)
at info.fulloo.trygve.graphics.GraphicsPanel.handleEvent(GraphicsPanel.java:324)
at java.awt.Component.postEvent(Component.java:5171)
at java.awt.Component.dispatchEventImpl(Component.java:4888)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4698)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:740)
at java.awt.EventQueue.access$300(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:699)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:713)
at java.awt.EventQueue$4.run(EventQueue.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:710)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Fixed (again), I think.
Den 26/04/2016 kl. 15.15 skrev Matt Browne notifications@github.com:
Thanks, the original error is gone, but now I'm getting a new error when running the same code (regardless of what the event parameter is named):
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: info.fulloo.trygve.run_time.RTExpression$RTMessage$RTPostReturnProcessing cannot be cast to info.fulloo.trygve.run_time.RTObject at info.fulloo.trygve.graphics.GraphicsPanel.handleEventProgrammatically(GraphicsPanel.java:142) at info.fulloo.trygve.graphics.GraphicsPanel.handleEvent(GraphicsPanel.java:324) at java.awt.Component.postEvent(Component.java:5171) at java.awt.Component.dispatchEventImpl(Component.java:4888) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4698) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:740) at java.awt.EventQueue.access$300(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:699) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:713) at java.awt.EventQueue$4.run(EventQueue.java:711) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:710) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91) — You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/jcoplien/trygve/issues/105#issuecomment-214737054
Confirmed fixed. Thanks.
Thanks for your patience, Matt.
Den 27/04/2016 kl. 23.57 skrev Matt Browne notifications@github.com:
Closed #105 https://github.com/jcoplien/trygve/issues/105.
— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/jcoplien/trygve/issues/105#event-643555381
When I run the code below, I get:
But if I name the parameter of the handleEvent()
event
, then the error goes away. Naming it anything other thanevent
causes the error to occur.