我拉了hibernate-orm并想运行一些测试来弄清楚它是如何工作的,但我不能,因为我从 readme.md 复制的以下命令 [hibernate-orm]$ ./gradlew clean build -Pdb=pgsql
失败并显示以下消息:
* What went wrong:
Failed to capture fingerprint of input files for task ':hibernate-core:compileTestJava' property 'source' during up-to-date check.
> Failed to create MD5 hash for file '.../hibernate-orm/hibernate-core/src/test/java/org/hibernate/internal/util/hib3rnat3/C0nst4nts???.java' as it does not exist.
我检查了源代码,发现它导入了名为 C0nst4nts३ 的类我的 IDEA 提示找不到这样的类(class):
我实际上不确定它是否是有效的类名。我检查 IDEA 编码并确保它是 UTF-8。那么我有什么想法可以让它运行吗?
最佳答案
问题出在错误的系统区域设置上。它是 LANG=C,我将其设置为“en_US.UTF-8”,但效果不佳。希望它能对某人有所希望。
关于java - 启用 Intellij IDEA 对 java 类名中的非标准字符的支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58259732/