This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class HeadlessTestCase { | |
| constructor(private question_: IQuestion) { | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/json" | |
| "database/sql" | |
| ) | |
| // JSONScanner scans a column into a map. | |
| type JSONScanner struct { | |
| Key string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python2.7 | |
| import cgi | |
| import itertools | |
| import json | |
| import os | |
| import sys | |
| import urllib | |
| combined_coverage = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| F | |
| =============================================================================== | |
| Failure: <false> is not true. | |
| test_interface_declaration(InterfaceTest) | |
| /Users/ribrdb/Documents/git/mirah/test/jvm/interface_test.rb:31:in `test_interface_declaration' | |
| 28: | |
| 29: def test_interface_declaration | |
| 30: interface = compile('interface A; end').first | |
| => 31: assert(interface.java_class.interface?) | |
| 32: assert_equal('A', interface.java_class.name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body = self | |
| @currentActionMode = getActivity.startActionMode do | |
| def onCreateActionMode(actionMode:ActionMode, menu:Menu):boolean | |
| body.actionMode.setTitle(R.string.photo_selection_cab_title) | |
| inflater = body.getActivity.getMenuInflater # MenuInflater | |
| inflater.inflate(R.menu.photo_context_menu, menu) | |
| true | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def makeCallback(callback:ActionMod.Callback) | |
| callback | |
| end | |
| def foo | |
| fragment = self | |
| makeCallback do | |
| def onDestroyActionMode(actionMode) | |
| fragment.setSelected(false) | |
| fragment.clearCurrentActionMode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ time bin/mirahc -V -e 'puts :hi' 2>/dev/null | |
| Parsing... | |
| <inline script> | |
| Inferring types... | |
| Compiling... | |
| DashE | |
| Done! | |
| real 0m3.532s | |
| user 0m7.579s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class FooBar < Lockable | |
| locked def foo; @foo; end | |
| locked def foo=(foo:String); @foo = foo; end | |
| def bar | |
| a = withLock { @foo } | |
| sb = StringBuilder.new | |
| 100.times { sb.append(a) } | |
| sb.toString | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Error: test_static_method(JavaTyperTest) | |
| Java::JavaLang::NullPointerException: | |
| org.jruby.java.proxies.JavaInterfaceTemplate$5.call(JavaInterfaceTemplate.java:191) | |
| org.jruby.RubyClass.finvoke(RubyClass.java:674) | |
| org.jruby.javasupport.util.RuntimeHelpers.invoke(RuntimeHelpers.java:493) | |
| org.jruby.java.addons.KernelJavaAddons.getTargetType(KernelJavaAddons.java:117) | |
| org.jruby.java.addons.KernelJavaAddons.to_java(KernelJavaAddons.java:65) | |
| org.jruby.java.addons.KernelJavaAddons$INVOKER$s$to_java.call(KernelJavaAddons$INVOKER$s$to_java.gen) | |
| org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:168) | |
| rubyjit.Mirah::JVM::Types::TypeFactory$$make_urls_D0994605204E052746259CC3342C270773D2F840944558894.__file__(/Users/ribrdb/Documents/git/mirah2/lib/mirah/jvm/types/factory.rb:716) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| org.jruby.exceptions.RaiseException: (ArgumentError) unable to create proxy class for class javax.annotation.processing.AbstractProcessor : null | |
| at org.jruby.javasupport.proxy.JavaProxyClass.get_with_class(org/jruby/javasupport/proxy/JavaProxyClass.java:695) | |
| Caused by: java.lang.ExceptionInInitializerError | |
| at sun.misc.Unsafe.ensureClassInitialized(Native Method) | |
| at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) | |
| at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) | |
| at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) | |
| at java.lang.reflect.Field.getFieldAccessor(Field.java:899) | |
| at java.lang.reflect.Field.get(Field.java:358) | |
| at org.jruby.javasupport.proxy.JavaProxyClassFactory.generate(JavaProxyClassFactory.java:213) |
NewerOlder