Community
Participate
Working Groups
Since for now the 1.7 VMs cannot read the .class files generated with a target 1.7, we should change the target 1.7 (or 7.0) to generate the same class file major/minor version as 1.6 (50.0 instead of 51.0). Once the 1.7 VMs will be able to consume .class file with version 51.0, we should revert this change.
Created attachment 80466 [details] Proposed fix Philippe, please review.
I'd prefer changing the classfile generation to dump 50.0 instead of 51.0 when target is set to 1.7. This would keep the compiler ability to distinguish between 1.6 and 1.7 generation.
pls also create a separate bug to remember to remove the hack once 1.7 VMs do behave correctly (i.e. consume 51.0 classfiles).
Created attachment 80474 [details] Proposed fix Dump 50.0 instead of 51.0. The version change is considered only when the bytes are actually written.
I opened bug 206498 to revert this change once 51.0 is supported.
Released for 3.4M3.
Verified for 3.4M3 using I20071029-0010