今天别人遇到一个奇怪的BUG,抛出的异常如下:
can't find referenced method 'boolean equalsIgnoreCase(java.lang.String)' in class java.lang.String
Warning: there were 1 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile them and try again.
Alternatively, you may have to specify the options
'-dontskipnonpubliclibraryclasses' and/or
'-dontskipnonpubliclibraryclassmembers'.
If you are sure the mentioned classes are not used anyway,
you could try your luck using the '-ignorewarnings' option.
Error: Please correct the above warnings first.
看了异常,发现是JDK没有equalsIgnoreCase这个方法,解决办法是更改JDK
![]()
这是别人的JDK,看来1.6.0-rc版本有问题
本文介绍了一个关于JDK版本导致的无法识别equalsIgnoreCase方法的问题,并提供了通过更新JDK来解决问题的方法。
561

被折叠的 条评论
为什么被折叠?



