clj-commons/seesaw

seesaw.cursor/cursor's type hint should be fully qualified

jafingerhut opened this issue · 0 comments

It is currently ^Cursor, but at least right now Eastwood's source code analyzer, tools.analyzer, crashes when such a partially qualified class name is used as the type hint of a function return value, and that function is called from another namespace where that class has not been imported. Clojure allows this, but according to Nicola Mometto, this is a bug and should be changed in Clojure: http://dev.clojure.org/jira/browse/CLJ-1232

The suggested change is to replace ^Cursor type hint with ^java.awt.Cursor as the return value type hint for fn seesaw.cursor/cursor