- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
使用jdk 1.8.0_51源=1.7,目标=1.7Junit 4.6, Ant 1.8.0
发生了什么事?
所有通过 1.7 的测试现在都失败了。我需要了解以下内容:
我们有用于构建、部署和测试的 ant 目标。
构建和部署工作没有问题,但 Junit 测试在所有模块中都失败了。
我尝试升级 ant(1.8.9)、junit 4.10。
这可能是因为任何不是用java 1.8编译的jar吗?
我应该确保我使用的所有 jar 都是用 java8 编译的吗?如果是的话,那可能是个坏兆头:(
我尝试通过命令提示符运行 junit,它成功了。
java -cp ./target/package-test:./target/mycompany-common.jar:./lib/junit-4.6.jar org.junit.runner.JUnitCore com.mycompany.JunitTest
===================================================================================== Tests: 1 Batches: 1 Threads: 1 Host: remote=====================================================================================TEST RUN FAIL ERR SKIP DURATIONJunitTest 1 1 0.068 sec-------------------------------------------------------------------------------------TOTAL 1 1 =====================================================================================The following tests had failures or errors:com.mycompany.JunitTestThe failures and errors can be seen in the following files:/target/reports/junit/TEST-com.mycompany.JunitTest.txtResults of first failed test:Testsuite: com.mycompany.JunitTestTests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.068 secTestcase: test took 0.018 sec Caused an ERRORExpecting a stackmap frame at branch target 65Exception Details: Location: com/mycompany/Identifier.equals(Ljava/lang/Object;)Z @26: ifne Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 033d 11ff ff3e 1215 1100 35b8 001b 2bc1 0x0000010: 0002 1100 353d 1100 003e 9a00 271c 1100 0x0000020: 35a0 0016 1d11 0000 a000 0f12 151c 1d04 0x0000030: b800 4111 ffff 3e12 1511 0036 b800 1b03 0x0000040: ac1d 9b00 0f12 151c 1d03 b800 4111 ffff 0x0000050: 3e12 1511 0039 b800 1b2b c000 023a 0412 0x0000060: 1511 003a b800 1b2a b400 2619 04b4 0026 0x0000070: b600 43ac Stackmap Table: same_frame_extended(@89)java.lang.VerifyError: Expecting a stackmap frame at branch target 65Exception Details: Location: com/mycompany/Identifier.equals(Ljava/lang/Object;)Z @26: ifne Reason: Expected stackmap frame at this location. Bytecode: 0x0000000: 033d 11ff ff3e 1215 1100 35b8 001b 2bc1 0x0000010: 0002 1100 353d 1100 003e 9a00 271c 1100 0x0000020: 35a0 0016 1d11 0000 a000 0f12 151c 1d04 0x0000030: b800 4111 ffff 3e12 1511 0036 b800 1b03 0x0000040: ac1d 9b00 0f12 151c 1d03 b800 4111 ffff 0x0000050: 3e12 1511 0039 b800 1b2b c000 023a 0412 0x0000060: 1511 003a b800 1b2a b400 2619 04b4 0026 0x0000070: b600 43ac Stackmap Table: same_frame_extended(@89) at com.mycompany.JunitTest.test(JunitTest.java:17)
最佳答案
从 Java 8 开始,--usesplitverifier 没有等效项。
您可以使用“-noverify”来阻止 java 8 在严格字节码实现模式下编译代码。
如果使用 Eclipse,您还可以执行 windows->preferences->compiler -> 取消选中“保留未使用的局部变量”选项
关于Java 8 : Expecting a stackmap frame at branch target 65,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32169727/
我试图让 Branch.io 在 Android 上工作,但我遇到了: myapplication.MainActivity cannot be cast to android.app.Applica
当我执行 git branch 时,我知道我在分支 v0.2 上。 git branch v0.1 * v0.2 但是当我执行 git push 时它说“你当前分支的上游分支与你当前分支的名称不
在使用 Git GUI 检查远程分支 releases/rel_5.4.1 之后,当我尝试 push 时看到了这个意外的错误消息: fatal: The upstream branch of your
SO 上有一个相关问题处理如何更改 push 命令的参数以避免出现此消息: fatal: The upstream branch of your current branch does not mat
arc feature [branch-name] 和 git branch [branch-name] 有什么区别? 他们似乎都创建了一个新分支。 最佳答案 arc feature [branch-
FIFO、LIFO 和LC Branch and Bound 有什么区别? 最佳答案 Branch & Bound 通过使用估计边界来限制可能解决方案的数量来发现完整搜索空间内的分支。不同的类型(FI
有人知道这两个切换和跟踪远程分支的命令之间的区别吗? git checkout -b branch origin/branch git checkout --track origin/branch 我
关于 git-svn 工作流程有很多问题,但我一直无法弄清楚这一点: This section of the svn book谈到 SVN 的一个常见做法:创建一个分支,并在主干更新时不断合并主干中的
我正在构建一个控制 git 存储库的 PHP 应用程序。我有一个执行命令 git status 的同步函数,虽然没有返回“你的分支是最新的”,但可能会提前采取必要的行动,比如远程或本地分支。 我还构建
是否可以使用 branch.io 创建自定义链接,例如 https://example.app.link/fzmLEhobLD所以我可以用我的自定义 10 位参数(如 amitpp8888)控制 fz
我从 github 克隆了一个分支,它的名字是 dev。我已经开始使用它, pull 和推送代码更改并确保我的本地存储库与远程存储库保持同步。我要开始实现一个新功能,因此创建了一个新分支,如下所示:
我们有一个发布模型,为简单起见,我们假设每月 1 次。所以,我们通常会去: Jan -> trunk trunk -> Feb trunk trunk et
使用 Branch.io HTTP API 创建的链接不会在 Branch 门户中显示为快速链接。快速链接很方便,因为它们在一个 View 中显示“点击”、“打开”等内容 用于创建链接的 API:li
我创建了一个分支,当我第一次从源代码合并到分支时,出现了一大堆旧的变更集,它说没有合并,但它们在分支之前就存在,我确认它们在那里。 例子: 假设当 Source 中有 9 个变更集时,我从 Sourc
这是关于我为什么这样做 不是 收到错误“致命:当前分支 A 没有上游分支”。 我删除了 远程 分公司 一个 使用命令 git push origin :A . 然后我切换到本地 分支 A 使用命令 g
我正在使用 clover 插件来检查我的 java 代码测试覆盖率。 我为所有行编写了单元测试。当我点击红线时,它显示“true分支执行了2次,分支执行了0次”。这是什么意思?我该如何解决这个问题?
很确定我误解了 git。 我的目标 我在 github 上有一个带有“master”分支的私有(private)存储库。 我还想有一个生产分支,我会将所有更改从 master 推送到该分支。 然后我想
我将一个相当老的主题分支重新定位到 master 上。由于在 rebase 期间有很多冲突,我想将旧主题分支与 rebased 分支进行比较,以确保我没有意外删除或搞砸主题上的任何更改。我最接近的是比
我正在尝试将我的一个项目推送到 github,但我一直收到此错误: peeplesoft@jane3:~/846156 (master) $ git push fatal: The current b
Jenkins Git 插件根据我的引用规范在控制台输出中生成了以下命令 下面两个命令有什么区别?他们的输出看起来没什么不同。我在下面给出了他们的输出: 命令 1: git fetch --no-ta
我是一名优秀的程序员,十分优秀!