【问题标题】:Error Compiling Netty latest (Master) version编译 Netty 最新(主)版本时出错
【发布时间】:2012-01-09 03:12:07
【问题描述】:

我想测试一些位于 github 的 netty Master 分支中的最新功能。 (git://github.com/netty/netty.git)

我正在执行以下步骤:

  1. 在我的本地机器上打开新的空目录
  2. 输入git init
  3. 输入git pull git://github.com/netty/netty.git
  4. 使用maven编译pom.xml如下: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

你能告诉我我做错了什么吗?

【问题讨论】:

  • 我尝试的时候没有看到这样的错误。它以失败告终,但不是因为您的情况下的编译错误。我看到的失败是在 单元测试 中。我正在使用带有 Java 6 的 Maven 3.0.3。一个小提示:下载和构建 netty 的惯用方法是:git clone git://github.com/netty/netty.git。您不必git initgit pull
  • 你对 git 的看法是正确的!!!关于如何编译最新版本的任何其他想法?

标签: maven netty


【解决方案1】:

LinkedTransferQueue 反向移植最近在 master 中完成,因此您最好尝试使用最新版本的 JDK 6,(>= 1.6.0_25, a compiler bug?)

【讨论】:

  • 与 jdk1.6.0_30 配合得很好,但现在我收到另一个错误 an 9, 2012 1:49:20 PM io.netty.handler.ssl.AbstractSocketSslEchoTest ARNING: Unexpected exception from the client side ava.net.SocketException: Software caused connection abort: recv failed 知道现在该做什么吗?
【解决方案2】:

这是一个 java 错误(我之前也遇到过)。升级到最新的 jdk 就可以了。我不记得究竟是什么版本的 java 出现了问题

【讨论】:

  • 与 jdk1.6.0_30 一起工作非常好,但现在我收到另一个错误,即 2012 年 9 月 1:49:20 PM io.netty.handler.ssl.AbstractSocketSslEchoTest ARNING:来自客户端 ava 的意外异常。 net.SocketException:软件导致连接中止:recv 不知道下一步该做什么。
猜你喜欢
  • 1970-01-01
  • 2016-09-12
  • 2016-05-01
  • 1970-01-01
  • 2016-11-08
  • 2016-08-18
  • 2016-11-09
  • 2014-07-29
  • 1970-01-01
相关资源
最近更新 更多