2012-01-08 83 views
0

我想測試一些最新的功能位於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

回答

0

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

0

這是一個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