Closed GoogleCodeExporter closed 9 years ago
((Button)c).setText( "daniel"); is the correct syntax. The original syntax cast
the result from set text (which is void) to Button which wouldn't compile.
Original comment by shai.almog
on 21 Aug 2012 at 1:30
So why the "compilation" say that is ok?
It should work the same.
Original comment by dan...@gmail.com
on 21 Aug 2012 at 1:45
I usually don't use Eclipse so I can't say for sure but it does have its own
slightly incompatible compiler so that might cause issues.
Original comment by shai.almog
on 21 Aug 2012 at 6:58
Original issue reported on code.google.com by
dan...@gmail.com
on 21 Aug 2012 at 12:31