错误编译Netty最新(主)版本

问题描述:

我想测试一些最新的功能位于github的netty主分支。 (git://github.com/netty/netty.git错误编译Netty最新(主)版本

我做以下步骤:

  1. 打开新的空目录,我的本地机器上
  2. 类型git init
  3. 类型git pull git://github.com/netty/netty.git
  4. 编译的pom.xml使用maven作为如下:mvn clean package

我现在得到以下的编码错误:

[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 13.855s 
[INFO] Finished at: Sun Jan 08 12:14:21 IST 2012 
[INFO] Final Memory: 16M/176M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project netty: Compilation failure: Compilation 
failure: 
[ERROR] \tradair\tools\netty\src\main\java\io\netty\util\internal\LegacyLinkedTransferQueue.java:[655,61] type parameters of <E>E cannot be determined; no uniqu 
e maximal instance exists for type variable E with upper bounds E,java.lang.Object 
[ERROR] \tradair\tools\netty\src\main\java\io\netty\util\internal\LegacyLinkedTransferQueue.java:[739,53] type parameters of <E>E cannot be determined; no uniqu 
e maximal instance exists for type variable E with upper bounds E,java.lang.Object 
[ERROR] \tradair\tools\netty\src\main\java\io\netty\util\internal\LegacyLinkedTransferQueue.java:[827,57] type parameters of <E>E cannot be determined; no uniqu 
e maximal instance exists for type variable E with upper bounds E,java.lang.Object 
[ERROR] \tradair\tools\netty\src\main\java\io\netty\util\internal\LegacyLinkedTransferQueue.java:[880,65] type parameters of <E>E cannot be determined; no uniqu 
e maximal instance exists for type variable E with upper bounds E,java.lang.Object 

您能否请告知我做错了什么。

+0

我没有看到这样的错误,当我尝试它。它以失败告终,但不是因为编译错误,因为在你的情况下。我看到的失败在_unit tests_中。我使用Maven 3.0.3和Java 6.一个小方面的注意事项:下载和构建netty的惯用方法是简单地:'git clone git:// github.com/netty/netty.git'。你不必'git init'和'git pull'。 – 2012-01-08 11:41:47

+0

你对git是正确的!关于如何编译最新版本的任何其他想法? – 2012-01-08 13:06:15

LinkedTransferQueue背移植在主最近做,所以你最好使用JDK 6的最新版本试试,(> = 1.6.0_25,a compiler bug?

+0

与jdk1.6.0_30很好的工作,但现在我得到另一个错误'an 9,2012 1:49:20 PM io.netty.handler.ssl.AbstractSocketSslEchoTest ARNING:来自客户端的意外异常 ava.net.SocketException:软件导致连接中止:recv failed'任何想法现在该做什么? – 2012-01-09 13:08:00

这是一个java的bug(我以前也打)。升级到最新的jdk,它会工作。我不记得究竟是什么版本的Java给出了问题

+0

与jdk1.6.0_30很好的工作,但现在我得到另一个错误9,2012 1:49:20 PM io.netty.handler.ssl.AbstractSocketSslEchoTest ARNING:来自客户端的意外异常ava.net.SocketException:软件导致连接中止:recv没有任何想法下一步。 – 2012-01-09 13:08:52