4
donuts
5y

It's interesting when I go back to old code that I haven't touched in awhile that calls an external library, I have new questions like "why can't it ..." then discover that it can... Just that the original usage was incorrect.

Sometimes generalising to interfaces is the problem...

Comments
  • 0
    @SevenDeadlyBugs I didn't create the interface but yea had to cast the object back to the raw type to realize that it actually had the setter that I needed.
  • 0
    @SevenDeadlyBugs I wrote some code that accepted Sheet x which is an interface in the lib.

    I needed setColor() which it didn't have. But SheetImpl does but I don't know it till I just looked.
Add Comment