hg: lambda/lambda/langtools: Object methods are not dispatched correctly by the ProxyHelper class (part three - last I hope ; -)).

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Aug 26 02:55:04 PDT 2010


On 26/08/10 10:26, Howard Lovatt wrote:
> My ant line is:
>
> howard-lovatts-computer-3:make lov080$ ant
> -Dboot.java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.7.0_2010_07_30/Home
> -Dtarget.java.home=/System/Library/Frameworks/JavaVM.framework/Versions/1.7.0_2010_07_30/Home
> build-all-tools
>    
Thanks, as i suspected, there's a build problem when your boot.java is 
set to a JDK 7 build - the build process ends up trying to compile JDK 7 
classes with the -source 6 option. As a short-trem fix, I will change 
ProxyHelper to be JDK 6 friendly, and, in the meanwhile, I will work so 
that this underlying build problem is fixed in baseline javac.

Thanks
Maurizio
>   -- Howard.
>
> On 26 August 2010 18:05, Maurizio Cimadamore
> <maurizio.cimadamore at oracle.com>  wrote:
>    
>> On 26/08/10 08:00, Howard Lovatt wrote:
>>      
>>> @Maurizio,
>>>
>>> I can't compile the latest push.
>>>
>>> build-bootstrap-javac:
>>>      [javac] Compiling 1 source file to
>>> /Users/lov080/Dropbox/Personal/Java/JDK7/langtools/build/bootstrap/classes
>>>      [javac]
>>> /Users/lov080/Dropbox/Personal/Java/JDK7/langtools/src/share/classes/com/sun/runtime/ProxyHelper.java:66:
>>> strings in switch are not supported in -source 1.6
>>>      [javac]                 switch(method.getName()) {
>>>      [javac]                                      ^
>>>      [javac]   (use -source 7 or higher to enable strings in switch)
>>>      [javac] 1 error
>>>
>>>        
>> This is a bit weird - of course I can update the code in no time so that it
>> compiles against JDK 6, however the compiler build is supposed to compile
>> that bit against the target JDK which is supposed to be a JDK 7 repo... what
>> are the env variables you are passing to ant?
>>
>> Thanks
>> Maurizio
>>      
>>> BUILD FAILED
>>> /Users/lov080/Dropbox/Personal/Java/JDK7/langtools/make/build.xml:412:
>>> The following error occurred while executing this line:
>>> /Users/lov080/Dropbox/Personal/Java/JDK7/langtools/make/build.xml:775:
>>> Compile failed; see the compiler error output for details.
>>>
>>>
>>>
>>> Cheers,
>>>
>>>    -- Howard.
>>>
>>>        
>>
>>      
>
>
>    



More information about the lambda-dev mailing list