Buggy code:
private static final String bundleName = "org.eclipse.jdt.internal.core.messages" ; public static final char [ ] SUFFIX_class = ".class" . toCharArray ( ) ; public static final char [ ] SUFFIX_CLASS = ".CLASS" . toCharArray ( ) ; public static final char [ ] SUFFIX_java = ".java" . toCharArray ( ) ; public static final char [ ] SUFFIX_JAVA = ".JAVA" . toCharArray ( ) ; private static int checkTypeSignature ( String sig , int start , int end , boolean allowVoid ) { } public static int combineHashCodes ( int hashCode1 , int hashCode2 ) { } public static int compare ( byte [ ] a , byte [ ] b ) { } public static int compare ( char [ ] v1 , char [ ] v2 ) { } public static String concat ( String s1 , char c , String s2 ) { } public static String concat ( String s1 , String s2 ) { } public static String concat ( String s1 , String s2 , String s3 ) { } public static String convertTypeSignature ( char [ ] sig ) { } public static boolean equalArraysOrNull ( int [ ] a , int [ ] b ) { } public static boolean equalArraysOrNull ( Object [ ] a , Object [ ] b ) { } public static boolean equalArraysOrNullSortFirst ( String [ ] a , String [ ] b ) { } public static boolean equalArraysOrNullSortFirst ( Util . Comparable [ ] a , Util . Comparable [ ] b ) { } public static boolean equalOrNull ( Object a , Object b ) { } public static String extractLastName ( String qualifiedName ) { } public static String [ ] extractParameterTypes ( char [ ] sig ) { } public static String extractReturnType ( String sig ) { } private static String findLineSeparator ( char [ ] text ) { } private static String getLineSeparator ( char [ ] text , char [ ] buffer ) { } public static int getParameterCount ( char [ ] sig ) { } public static byte [ ] getResourceContentsAsByteArray ( IFile file ) throws JavaModelException { } public static char [ ] getResourceContentsAsCharArray ( IFile file ) throws JavaModelException { } public static boolean isValidMethodSignature ( String sig ) { } public static boolean isValidTypeSignature ( String sig , boolean allowVoid ) { } public static boolean isValidFolderNameForPackage ( String folderName ) { } public static void log ( Throwable e , String message ) { } public static char [ ] normalizeCRs ( char [ ] text , char [ ] buffer ) { } public static String normalizeCRs ( String text , String buffer ) { } private static void quickSort ( Object [ ] sortedCollection , int left , int right , int [ ] sortOrder ) { } private static void quickSort ( Object [ ] sortedCollection , int left , int right , Util . Comparer comparer ) { } private static void quickSort ( String [ ] sortedCollection , int left , int right ) { } public static String packageName ( IPath pkgPath ) { } private static void quickSort ( Util . Comparable [ ] sortedCollection , int left , int right ) { } private static void quickSortReverse ( String [ ] sortedCollection , int left , int right ) { } public static void sort ( Object [ ] objects , int [ ] sortOrder ) { } public static void sort ( Object [ ] objects , Util . Comparer comparer ) { } public static void sort ( String [ ] strings ) { } public static void sort ( Util . Comparable [ ] objects ) { } public static Object [ ] sortCopy ( Object [ ] objects , Util . Comparer comparer ) { } public static String [ ] sortCopy ( String [ ] objects ) { } public static Util . Comparable [ ] sortCopy ( Util . Comparable [ ] objects ) { } public static void sortReverseOrder ( String [ ] strings ) { } public static char [ ] [ ] toCharArrays ( String [ ] a ) { } public static char [ ] toChars ( String s ) { } public static char [ ] [ ] toCompoundChars ( String s ) { int len = s . length ( ) ; if ( len == 0 ) { <START_BUG> return new char [ 0 ] [ ] ; <END_BUG> } int segCount = 1 ; for ( int off = s . indexOf ( '.' ) ; off != ( - 1 ) ; off = s . indexOf ( '.' , ( off + 1 ) ) ) { ++ segCount ; } char [ ] [ ] segs = new char [ segCount ] [ ] ; int start = 0 ; for ( int i = 0 ; i < segCount ; ++ i ) { int dot = s . indexOf ( '.' , start ) ; int end = ( dot == ( - 1 ) ) ? s . length ( ) : dot ; segs [ i ] = new char [ end - start ] ; s . getChars ( start , end , segs [ i ] , 0 ) ; start = end + 1 ; } return segs ; } public static String toString ( char [ ] [ ] c ) { } public static String toString ( char [ ] [ ] c , char [ ] d ) { } public static String toString ( char [ ] c ) { } public static void validateMethodSignature ( String sig ) { } public static void validateTypeSignature ( String sig , boolean allowVoid ) { } public static String bind ( String id ) { }

Fix:
return CharOperation . NO_CHAR_CHAR ;