Community
Participate
Working Groups
Using latest, the following code returns: ---------- 1. ERROR in c:\tests_sources\X.java (at line 3) System.out.println(boolean.class == Boolean.TYPE); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Incompatible operand types Class<boolean> and Class<Boolean> ---------- 1 problem (1 error) The test case is: public class X { public static void main(String argv[]) { System.out.println(boolean.class == Boolean.TYPE); } } The result should be: true.
Created attachment 14630 [details] Apply on HEAD on the class ClassLiteralAccess Pössible patch.
Went along the same line, added Scope.boxing/unboxing primitives. Fixed in latest, added regression test: GenericTypeTest#test299
Verified for 3.1 M2 with build I200409231635.