Update "get-task-object" function in task.clj
Update "get-task-object" function in task.clj

Update "get-task-object" function, change the type of first param "topology" from ^TopologyContext to ^StormTopology. the "get-task-object" function in task.clj,the type of first param "topology" should be ^StormTopology not ^TopologyContext.

the "get-task-object" is called by "mk-task-data" function in task.clj, "mk-task-data" is defined as following:

(defn mk-task-data [executor-data task-id]
  (recursive-map
    :executor-data executor-data
    :task-id task-id
    :system-context (system-topology-context (:worker executor-data) executor-data task-id)
    :user-context (user-topology-context (:worker executor-data) executor-data task-id)
    :builtin-metrics (builtin-metrics/make-data (:type executor-data))
    :tasks-fn (mk-tasks-fn <>)
    :object (get-task-object (.getRawTopology ^TopologyContext (:system-context <>)) (:component-id executor-data))))

(:system-context <>) return TopologyContext instance, TopologyContext extends GeneralTopologyContext, the TopologyContext instance has StormTopology _topology. “getRawTopology” method of TopologyContext must return StormTopology _topology. (.getRawTopology ^TopologyContext (:system-context <>) return StormTopology instance not TopologyContext instance. so the type of param topology is StormTopology not TopologyContext.

at the same time, "get-task-object" call "get_spouts" and "get_bolts" of the param topology. you can find the "get_spouts" and "get_bolts" function are only defined in StormTopology, and StormTopology is not a subclass of TopologyContext. so i think the type of param topology is StormTopology not TopologyContext.
erikdw/storm,hmcc/storm,Crim/storm,F30/storm,ujfjhz/storm,srishtyagrawal/storm,roshannaik/storm,ujfjhz/storm,adityasharad/storm,carl34/storm,erikdw/storm,hmcl/storm-apache,kevinconaway/storm,kishorvpatil/incubator-storm,kevinconaway/storm,raviperi/storm,ujfjhz/storm,Crim/storm,raviperi/storm,0x726d77/storm,erikdw/storm,Crim/storm,srdo/storm,kamleshbhatt/storm,0x726d77/storm,Crim/storm,srishtyagrawal/storm,pczb/storm,kevinconaway/storm,Crim/storm,0x726d77/storm,kevpeek/storm,adityasharad/storm,knusbaum/incubator-storm,kishorvpatil/incubator-storm,carl34/storm,pczb/storm,srishtyagrawal/storm,raviperi/storm,pczb/storm,kevpeek/storm,cluo512/storm,cluo512/storm,kishorvpatil/incubator-storm,kishorvpatil/incubator-storm,0x726d77/storm,srdo/storm,kevpeek/storm,raviperi/storm,kamleshbhatt/storm,knusbaum/incubator-storm,hmcc/storm,kamleshbhatt/storm,kevinconaway/storm,sakanaou/storm,kevpeek/storm,knusbaum/incubator-storm,pczb/storm,hmcl/storm-apache,erikdw/storm,hmcc/storm,roshannaik/storm,srdo/storm,raviperi/storm,kishorvpatil/incubator-storm,carl34/storm,carl34/storm,roshannaik/storm,sakanaou/storm,srishtyagrawal/storm,carl34/storm,knusbaum/incubator-storm,kevpeek/storm,hmcl/storm-apache,F30/storm,srdo/storm,kevinconaway/storm,ujfjhz/storm,kevpeek/storm,adityasharad/storm,ujfjhz/storm,kamleshbhatt/storm,kevinconaway/storm,erikdw/storm,cluo512/storm,cluo512/storm,carl34/storm,hmcl/storm-apache,srishtyagrawal/storm,hmcc/storm,erikdw/storm,0x726d77/storm,sakanaou/storm,cluo512/storm,cluo512/storm,roshannaik/storm,F30/storm,F30/storm,hmcc/storm,F30/storm,roshannaik/storm,adityasharad/storm,ujfjhz/storm,kamleshbhatt/storm,srdo/storm,kamleshbhatt/storm,hmcl/storm-apache,srishtyagrawal/storm,Crim/storm,adityasharad/storm,raviperi/storm,carl34/storm,F30/storm,adityasharad/storm,pczb/storm,ujfjhz/storm,Crim/storm,kevpeek/storm,F30/storm,srdo/storm,hmcc/storm,sakanaou/storm,pczb/storm,raviperi/storm,kishorvpatil/incubator-storm,kamleshbhatt/storm,kevinconaway/storm,erikdw/storm,knusbaum/incubator-storm,kishorvpatil/incubator-storm,roshannaik/storm,hmcl/storm-apache,knusbaum/incubator-storm,0x726d77/storm,roshannaik/storm,sakanaou/storm,srdo/storm,hmcl/storm-apache,sakanaou/storm,sakanaou/storm,knusbaum/incubator-storm,pczb/storm,cluo512/storm,0x726d77/storm,hmcc/storm,adityasharad/storm,srishtyagrawal/storm