|Re: Recommender questions [message #807702 is a reply to message #807656]
||Sun, 26 February 2012 22:47
| Marcel Bruch
Registered: July 2009
regarding the getDisplay issue. Could you please open a bug report? The system proposes getFont since it *had learned* that this is the most likely method to call. The fact that you actually need a display should override the relevance of getFont here. Here, our current relevance ranking system just falls too short...
The fact that is offers getFont at all is, however, correct and wanted since there might be other paths that might take you to a Display which cannot be foreseen by completion engine (yet). For example "(Display) parent.getFont().getDevice()" *may* (although unlikely) work here too. Filtering completions solely on return type would too often eliminate required proposals from the list. However, in the scenario you mentioned there should be a clear preference to getDisplay over getFont.
I think , we don't need more info than your example above to reproduce and fix the scoring system.
[Updated on: Sun, 26 February 2012 22:49]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.05655 seconds