Community
Participate
Working Groups
I20021210 When used in Extract Constant in the case described in bug #28242, involving the code below, the parser gives the CastExpression node a length of 3, which is incorrect. public class Test { public Test() { int a= 2; int b= (int) (3.14f * a); } }
It is a bug in the parenthesized expression check. I am investigating a fix.
Fixed and released in 2.1 stream. Regression tests added in ConverterTest2.test0454
I cannot test if the fix allows you to extract the constant, because self-hosting workspaces don't run in my workspace for no reason. I will double-check on Monday.
Verified.