[ASYNC-28] try/catch inside go block may cause a reflection warning - 0.1.222.0-83d0c2-alpha Created: 08/Oct/13 Updated: 23/Jun/14 Resolved: 23/Jun/14
|Reporter:||Howard Lewis Ship||Assignee:||Unassigned|
I have this code:
I get a reflection warning: reference to field getMessage can't be resolved.
This does not occur if the same code is moved outside the go block.
My assumption is that an implicit type hint (t is of type Throwable) is lost in the process of converting the block to a state machine.
Adding an explicit type hint does not fix the problem.
Further, the warning is associated with the line containing the go symbol, not the catch symbol. See ASYNC-27.
|Comment by Alex Miller [ 23/Jun/14 11:04 AM ]|
I tried this on the latest (0.1.303.0-886421-alpha) and saw no reflection warnings.
If you still see this, please provide an example that is reproducible, thanks!