search for: clazz

Displaying 14 results from an estimated 14 matches for "clazz".

2013 Jun 17
2
[LLVMdev] vmkit java annotations
...ionPolicy.RUNTIME) @interface Red { String info() default ""; } class Annotated { @Red(info = "AWESOME") public void foo(String myParam) { System.out.println("This is " + myParam); } } class TestAnnotationParser { public void parse(Class clazz) throws Exception { Method[] methods = clazz.getMethods(); for (Method method : methods) { if (method.isAnnotationPresent(Red.class)) { Red test = method.getAnnotation(Red.class); String info = test.info(); if ("AWESOME".equals(i...
2012 Mar 16
1
rJava call performance
Hello, I am getting pretty poor rJava call performance > system.time(for (i in 1:1000) J("java.lang.Double")$parseDouble(as.character(i))) user system elapsed 4.884 0.000 4.900 i.e. 5 milliseconds per very simple call on a very fast cpu. JNI calls themselves are said to be pretty fast nowadays (10...40ns). It probably goes accross reflection but still doing pretty much
2007 Apr 03
5
Inifinite loop problem with DRb server
...4.0K log/ferret_server.out There''s nothing really useful in ferret_server.log: only the same backtrace that I showed above. module ActsAsFerret module Remote class Server # vendor/plugins/acts_as_ferret/lib/ferret_server.rb:65 def method_missing(name, *args) clazz = args.shift.constantize begin @logger.debug "call index method: #{name} with #{args.inspect}" clazz.aaf_index.send name, *args rescue NoMethodError @logger.debug "no luck, trying to call class method instead" clazz.send na...
2013 Jun 17
2
[LLVMdev] vmkit java annotations
...""; > } > > > class Annotated { > @Red(info = "AWESOME") > public void foo(String myParam) { > System.out.println("This is " + myParam); > } > } > > > class TestAnnotationParser { > public void parse(Class clazz) throws Exception { > Method[] methods = clazz.getMethods(); > > > > for (Method method : methods) { > if (method.isAnnotationPresent(Red.class)) { > Red test = method.getAnnotation(Red.class); > String info = test.info(); > &gt...
2013 Jun 17
0
[LLVMdev] vmkit java annotations
...""; > } > > > class Annotated { > @Red(info = "AWESOME") > public void foo(String myParam) { > System.out.println("This is " + myParam); > } > } > > > class TestAnnotationParser { > public void parse(Class clazz) throws Exception { > Method[] methods = clazz.getMethods(); > > > > for (Method method : methods) { > if (method.isAnnotationPresent(Red.class)) { > Red test = method.getAnnotation(Red.class); > String info = test.info <http://...
2013 Jun 17
0
[LLVMdev] vmkit java annotations
...@Red(info = "AWESOME") >> public void foo(String myParam) { >> System.out.println("This is " + myParam); >> } >> } >> >> >> class TestAnnotationParser { >> public void parse(Class clazz) throws Exception { >> Method[] methods = clazz.getMethods(); >> >> >> >> for (Method method : methods) { >> if (method.isAnnotationPresent(Red.class)) { >> Red test = method.getAnnotation(Red.class); >>...
2007 Apr 08
10
[ActsAsFerret] Fatal failed to allocate memory in DRb
I''m using DRb with edge [AAF] and my server is really fast reaching 3GB+ of memory and soon it will crash with this message: [FATAL] failed to allocate memory Now its like this: 10542 bbs 2 59 0 3649M 3647M sleep 1:27 0.10% runner Anybody has any ideas on this? -- Posted via http://www.ruby-forum.com/.
2014 Jan 26
2
[LLVMdev] [llmdev] fail to process llvm generated assembly on windows/mingw32
...ssemblyFile); module.dispose(); context.dispose(); byte[] asm = output.toByteArray(); output.reset(); asm = output.toByteArray(); BufferedOutputStream oOut = new BufferedOutputStream(new FileOutputStream(oFile)); targetMachine.assemble(asm, clazz.getClassName(), oOut); oOut.close(); (I use a java binding for llvm) Unfortunately, the assemble call fails with the error: org.robovm.llvm.LlvmException: java.io.PrintWriter:478:2: error: unknown directive .section .text$java_io_PrintWriter_checkError__Z_lookup,"xr"...
2007 Mar 11
0
10 commits - libswfdec/js libswfdec/swfdec_js_color.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_js_video.c libswfdec/swfdec_js_xml.c libswfdec/swfdec_script.c player/.gitignore
...*/ +extern const JSClass movieclip_class; +extern char *swfdec_movie_get_path (void *movieclip); +extern void g_free (void *p); JSBool js_obj_toString(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { - jschar *chars; - size_t nchars; - const char *clazz, *prefix; + const char *name; JSString *str; JSClass *clasp; -#if JS_HAS_INITIALIZERS - if (cx->version == JSVERSION_1_2) - return js_obj_toSource(cx, obj, argc, argv, rval); -#endif - clasp = OBJ_GET_CLASS(cx, obj); - clazz = clasp->name; - /* special case...
2007 Sep 03
11
MySQL has gone away
Hi, in a production environment we are running into "MySQL server has gone away" errors (see below) when we call rebuild_index in aaf. This happens sporadically. Any suggestions for what might be wrong or workarounds? I guess we try a reconnect before we call rebuild_index? Matthew ActiveRecord::StatementInvalid (Mysql::Error: MySQL server has gone away: SELECT count(*) AS
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...+0100 arguments.toString() returns the empty string diff --git a/libswfdec/js/jsobj.c b/libswfdec/js/jsobj.c index 396c724..860e38c 100644 --- a/libswfdec/js/jsobj.c +++ b/libswfdec/js/jsobj.c @@ -913,13 +913,21 @@ js_obj_toString(JSContext *cx, JSObject size_t nchars; const char *clazz, *prefix; JSString *str; + JSClass *clasp; #if JS_HAS_INITIALIZERS if (cx->version == JSVERSION_1_2) return js_obj_toSource(cx, obj, argc, argv, rval); #endif - clazz = OBJ_GET_CLASS(cx, obj)->name; + clasp = OBJ_GET_CLASS(cx, obj); + clazz = clasp->nam...
2006 Feb 26
1
[LLVMdev] Re: gcc like attributes and annotations
Hi Mike, hope you are doing well with the llvm gcjx backend. I am currently writing an llvm backend for a C like language for tracing (like D in dtrace). I am very interested in this area. Do you currently put your work in a repository? (maybe as Tom suggested gcjx.sf.net would be an easy start - since it would not require gcc committer status). I am keen on getting LLVM support for gcj. Maybe we
2006 Aug 03
12
More than one has_many :through association between the same 2 models
I wonder if you can have more than one has_many :through association between 2 models. For example... I have a model Teacher and a model Class Now, 1 Teacher works in many Classes, right?. So I need a join model like class Work < ActiveRecord::Base belongs_to :teacher belongs_to :class end But I also would like to know if a teacher CAN teach a class before I
2013 Jan 25
3
read.csv quotes within fields
All, I have some csv files I am trying to import. I am finding that quotes inside strings are escaped in a way R doesn't expect for csv files. The problem only seems to rear its ugly head when there are an uneven number of internal quotes. I'll try to recreate the problem: # set up a matrix, using escape-quote as the internal double quote mark. x <-