[BLUEJ-255] Code completion does not always resolve classes correctly
The "balls" project from chapter 5 has a Canvas class. It also has a BallDemo class that imports java.awt.* and declares "Canvas myCanvas;". This should resolve to the local Canvas class, not java.awt.Canvas. However, if you invoke code completion on "myCanvas.", it only offers methods from java.awt.Canvas, instead of those from the local Canvas class. This also affects suggestions when you get a method name wrong.
Issue metadata
- Issue type: Bug
- Priority: Medium
- Fix versions: 3.0.1