Buggy code:
@ JRubyMethod ( backtrace = true , meta = true ) public static IRubyObject java_send ( ThreadContext context , IRubyObject recv , IRubyObject rubyName , IRubyObject argTypes , IRubyObject arg0 ) { } @ JRubyMethod ( required = 4 , rest = true , backtrace = true , meta = true ) public static IRubyObject java_send ( ThreadContext context , IRubyObject recv , IRubyObject [ ] args ) { } @ JRubyMethod ( backtrace = true , meta = true , visibility = PRIVATE ) public static IRubyObject java_alias ( ThreadContext context , IRubyObject proxyClass , IRubyObject newName , IRubyObject rubyName ) { } @ JRubyMethod ( backtrace = true , meta = true , visibility = PRIVATE ) public static IRubyObject java_alias ( ThreadContext context , IRubyObject proxyClass , IRubyObject newName , IRubyObject rubyName , IRubyObject argTypes ) { } } private static IRubyObject getRubyMethod ( ThreadContext context , IRubyObject proxyClass , String name , Class ... argTypesClasses ) { } public static Method getMethodFromClass ( Ruby runtime , IRubyObject proxyClass , String name , Class ... argTypes ) { } private static MethodInvoker getMethodInvokerForMethod ( RubyClass metaClass , Method method ) { } public static IRubyObject concrete_proxy_inherited ( IRubyObject recv , IRubyObject subclass ) { } private static IRubyObject setupJavaSubclass ( ThreadContext context , IRubyObject subclass , IRubyObject java_class ) { } private static void addToJavaPackageModule ( RubyModule proxyClass , JavaClass javaClass ) { } private static RubyModule getJavaPackageModule ( Ruby runtime , String packageString ) { } private static RubyModule createPackageModule ( RubyModule parent , String name , String packageString ) { } private static final Pattern CAMEL_CASE_PACKAGE_SPLITTER = Pattern . compile ( "([a-z][0-9]*)([A-Z])" ) ; private static RubyModule getPackageModule ( Ruby runtime , String name ) { } public static IRubyObject get_package_module ( IRubyObject recv , IRubyObject symObject ) { } public static IRubyObject get_package_module_dot_format ( IRubyObject recv , IRubyObject dottedName ) { } private static RubyModule getProxyOrPackageUnderPackage ( ThreadContext context , final Ruby runtime , RubyModule parentPackage , String sym ) { IRubyObject packageNameObj = parentPackage . getInstanceVariable ( "@package_name" ) ; if ( packageNameObj == null ) { throw runtime . newArgumentError ( "invalid<seq2seq4repair_space>package<seq2seq4repair_space>module" ) ; } String packageName = packageNameObj . asJavaString ( ) ; final String name = sym . trim ( ) . intern ( ) ; if ( ( name . length ( ) ) == 0 ) { throw runtime . newArgumentError ( "empty<seq2seq4repair_space>class<seq2seq4repair_space>or<seq2seq4repair_space>package<seq2seq4repair_space>name" ) ; } String fullName = packageName + name ; if ( ! ( Character . isUpperCase ( name . charAt ( 0 ) ) ) ) { if ( Java . JAVA_PRIMITIVES . containsKey ( name ) ) { throw runtime . newArgumentError ( ( "illegal<seq2seq4repair_space>package<seq2seq4repair_space>name<seq2seq4repair_space>component:<seq2seq4repair_space>" + name ) ) ; } try { return Java . getProxyClass ( runtime , JavaClass . forNameQuiet ( runtime , fullName ) ) ; } catch ( RaiseException re ) { RubyException rubyEx = re . getException ( ) ; if ( rubyEx . kind_of_p ( context , runtime . getStandardError ( ) ) . isTrue ( ) ) { RuntimeHelpers . setErrorInfo ( runtime , runtime . getNil ( ) ) ; } } catch ( Exception e ) { } final RubyModule packageModule = Java . getJavaPackageModule ( runtime , fullName ) ; if ( packageModule == null ) { return null ; } Java . memoizePackageOrClass ( parentPackage , name , packageModule ) ; return packageModule ; } else { try { final RubyModule javaModule = Java . getProxyClass ( runtime , JavaClass . forNameVerbose ( runtime , fullName ) ) ; Java . memoizePackageOrClass ( parentPackage , name , javaModule ) ; return javaModule ; } catch ( Exception e ) { if ( RubyInstanceConfig . UPPER_CASE_PACKAGE_NAME_ALLOWED ) { return Java . getJavaPackageModule ( runtime , fullName ) ; } else { <START_BUG> throw runtime . newNameError ( ( ( "uppercase<seq2seq4repair_space>package<seq2seq4repair_space>names<seq2seq4repair_space>not<seq2seq4repair_space>accessible<seq2seq4repair_space>this<seq2seq4repair_space>way<seq2seq4repair_space>(`" + fullName ) + "')" ) , fullName ) ; <END_BUG> } } } } public static IRubyObject get_proxy_or_package_under_package ( ThreadContext context , IRubyObject recv , IRubyObject parentPackage , IRubyObject sym ) { } private static RubyModule getTopLevelProxyOrPackage ( ThreadContext context , final Ruby runtime , String sym ) { } private static void memoizePackageOrClass ( final RubyModule parentPackage , final String name , final IRubyObject value ) { } public static IRubyObject get_top_level_proxy_or_package ( ThreadContext context , IRubyObject recv , IRubyObject sym ) { } public static IRubyObject wrap ( Ruby runtime , IRubyObject java_object ) { } @ Deprecated @ JRubyMethod ( frame = true , module = true , visibility = PRIVATE ) public static IRubyObject java_to_ruby ( IRubyObject recv , IRubyObject object , Block unusedBlock ) { } @ Deprecated @ JRubyMethod ( frame = true , module = true , visibility = PRIVATE ) public static IRubyObject ruby_to_java ( final IRubyObject recv , IRubyObject object , Block unusedBlock ) { } @ Deprecated @ JRubyMethod ( frame = true , module = true , visibility = PRIVATE ) public static IRubyObject java_to_primitive ( IRubyObject recv , IRubyObject object , Block unusedBlock ) { } @ JRubyMethod ( required = 2 , frame = true , module = true , visibility = PRIVATE ) public static IRubyObject new_proxy_instance2 ( IRubyObject recv , final IRubyObject wrapper , IRubyObject ifcs , Block block ) { } public static IRubyObject newInterfaceImpl ( final IRubyObject wrapper , Class [ ] interfaces ) { } public static Class generateRealClass ( final RubyClass clazz ) { } public static Constructor getRealClassConstructor ( Ruby runtime , Class proxyImplClass ) { } public static IRubyObject constructProxy ( Ruby runtime , Constructor proxyConstructor , RubyClass clazz ) { } public static IRubyObject allocateProxy ( Object javaObject , RubyClass clazz ) { } public static IRubyObject wrapJavaObject ( Ruby runtime , Object object ) { } public static Class [ ] getInterfacesFromRubyClass ( RubyClass klass ) { } private static int interfacesHashCode ( Class [ ] a ) { } }

Fix:
throw runtime . newNameError ( ( ( "capitalized<seq2seq4repair_space>package<seq2seq4repair_space>or<seq2seq4repair_space>class<seq2seq4repair_space>not<seq2seq4repair_space>found<seq2seq4repair_space>(`" + fullName ) + "')" ) , fullName ) ;