On Aug 26, 2012, at 11:29 PM, Mahesh Pujari <[email protected]> 
wrote:

> Hi,
>  Trying to build openJDK (http://hg.openjdk.java.net/jdk8/jdk8) using new 
> build infra. Getting compiler error in 
> "jdk\src\share\classes\java\lang\invoke\AdapterMethodHandle.java"

This class and others have been removed in JDK 8 with the new JSR 292 
implementation.  I'm not exactly sure which repository you are trying to build: 
 jdk8/jdk8 or build-infra/jdk8

But it seems there is a mismatch somewhere.

-- Chris

> 
> Some system config:
> OS = Windows XP (ver 5.1)
> boot jdk=jdk1.7.0-u2
>  Please find some details as below and have attached complete build.log as 
> well.
> ----------------------------------------------------
> e:\dev\jdk8\jdk8-b\jdk\src\share\classes\java\lang\invoke\AdapterMethodHandle.java:41:
>  error: AdapterMethodHandle is not abstract and does not override abstract 
> method cloneExtendD(MethodType,LambdaForm,double) in BoundMethodHandle
> class AdapterMethodHandle extends BoundMethodHandle {
> ^
> e:\dev\jdk8\jdk8-b\jdk\src\share\classes\java\lang\invoke\AdapterMethodHandle.java:51:
>  error: constructor BoundMethodHandle in class BoundMethodHandle cannot be 
> applied to given types;
>         super(newType, convArg, 
> newType.parameterSlotDepth(1+convArgPos(conv)));
>         ^
>   required: MethodType,LambdaForm
>   found: MethodType,Object,int
>   reason: actual and formal argument lists differ in length
> e:\dev\jdk8\jdk8-b\jdk\src\share\classes\java\lang\invoke\AdapterMethodHandle.java:54:
>  error: method init in class MethodHandleNatives cannot be applied to given 
> types;
>         MethodHandleNatives.init(this, target, convArgPos(conv));
>                            
> ^----------------------------------------------------
> 
> 
> thanks and regards,
> Mahesh Pujari

Reply via email to