---
title: "can't find referenced method 'boolean equalsIgnoreCase(java.lang.String)'"
author: "fonter"
date: "2009-08-03T17:04:28Z"
tags: []
slug: "can-t-find-referenced-method-boolean-equalsignorecase-java-lang-string"
draft: false
lastmod: "2009-08-03T17:20:31Z"
id: 438669
url: "https://fonter.iteye.com/blog/438669"
---

今天别人遇到一个奇怪的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

![](http://www.iteye.com/upload/attachment/131735/9a0e0b78-3fe6-3503-9f5d-46f5ecc02a3e.jpg)

 

这是别人的JDK，看来1.6.0-rc版本有问题