Community
Participate
Working Groups
In a team class that imports a type foo.bar.Object a mysterious error "Cannot cast Class<T> to Object" is reported against the team class (position is the class header). Simple workaround until this is fixed: do not import any type of name "Object" but always use its fully qualified name.
Created attachment 188192 [details] test Test case witnessing the issue.
Created attachment 188363 [details] test & fix The fix is to internally use the qualified name even for java.lang.Object inside synthetic code (here: reflection methods).
Committed as r1289, r1290.
Verified using build 201106070730.