Not able to build jdk8/jdk8 (GenStubs.java:204: error)

Kelly Ohair kelly.ohair at oracle.com
Mon Jul 2 08:00:24 PDT 2012


try the jdk8/build forest


Sent from my iPhone

On Jul 2, 2012, at 6:13, Mahesh Pujari <pujarimahesh_kumar at yahoo.com> wrote:

> Hi,
>  I tried to build jdk8/jdk8 (with latest update, platform windows, build using cygwin), and I ended up with below compilation error:
> 
> --------------------------CONSOLE START----------------------------------
> 
> Building OpenJDK for target 'all' in configuration 'windows-ia32-normal-clientANDserver-release'
> 
> 
> ########################################################################
> ########################################################################
> ##### Entering langtools for target(s) all                         #####
> ########################################################################
> 
> Compiling 2 files in batch BUILD_TOOLS
> e:\dev\jdk8\jdk8-b\langtools\make\tools\genstubs\GenStubs.java:204: error: incompatible types; no instance(s) of type variable(s) K,V exist so that Map<K,V> conforms to DocCommentTable
>             tree.docComments = Collections.emptyMap();
>                                                    ^
>   required: DocCommentTable
>   found:    <K,V>Map<K,V>
>   where K,V are type-variables:
>     K extends Object declared in method <K,V>emptyMap()
>     V extends Object declared in method <K,V>emptyMap()
> 1 error
> make[1]: *** No rule to make target `all', needed by `default'.  Stop.
> Makefile:217: recipe for target `langtools' failed
> make: *** [langtools] Error 2
> --------------------------CONSOLE END----------------------------------
> 
> Seems like its coding error, I had to assign tree.docComment to null to make a successful build.
> 
> 
> thanks and regards,
> Mahesh Pujari
> 


More information about the jdk8-dev mailing list