【发布时间】:2010-07-20 19:17:52
【问题描述】:
如果问题太模糊,请原谅我。我不是三叶草专家,但我需要解决这个问题。 Clover 似乎对特定类有问题,如下面的跟踪所示。我需要从三叶草部分完全排除这个类,因为这个类并不是所有必要的。这甚至是三叶草问题还是只是 java 问题?再次感谢,如果这只是微不足道的,我们深表歉意。
enter code here [javac] [apt] warning: Annotation types without processors: [java.lang.SuppressWarnings]
[apt] 1 warning
[apt] Ignoring compiler attribute for the APT task, as it is fixed
[javac] Compiling 268 source files to /home/retail_website/build/.src/Platform/AlibrisBiz/build/classes
[clover] Clover Version 2.6.0, built on September 09 2009 (build-771)
[clover] Loaded from: /home/retail_website/build/clover/clover.jar
[clover] Clover: Commercial License registered to Alibris.
[clover] Updating existing database at '/home/retail_website/build/clover.database/clover.db'.
[clover] Processing files at 1.5 source level.
[clover] Clover all over. Instrumented 268 files (27 packages).
[clover] Elapsed time = 7.155 secs. (37.456 files/sec, 9,859.259 /tmp/clover51982.tmp/com/maxmind/geoip/regionName.java:4: code too large for try statement
[javac] static public String regionNameByCode(String country_code,String region_code) {try{__CLR2_6_09so9sogbuuz0jf.R.inc(12696);
[javac] ^
[javac] /tmp/clover51982.tmp/com/maxmind/geoip/regionName.java:4: code too large
[javac] static public String regionNameByCode(String country_code,String region_code) {try{__CLR2_6_09so9sogbuuz0jf.R.inc(12696);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
【问题讨论】:
-
有人能说点什么吗……随便
-
最有可能是 java 问题。 Java 限制单个方法的字节码最大为 64Kb。否则你会得到“代码太大”的错误。这个 regionNameByCode 方法有多大?
-
感谢您的回复。它相当大......因此问题。有没有办法从三叶草仪器中过滤出(如蚂蚁)特定的类?这样我们就根本不会处理这个类。如果是这样,可以在哪个 clover 文件中完成。非常感谢
标签: java eclipse shell ant clover