From dcffc5f54d4f9561dc955b6d3961e86dbc8f2b84 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 7 May 2007 20:47:53 +0000 Subject: [PATCH] Disable this for now until the instrumented methods are working properly. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4699 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/io/FieldMarshaller.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/java/com/threerings/io/FieldMarshaller.java b/src/java/com/threerings/io/FieldMarshaller.java index eaddb47fb..5972c33f2 100644 --- a/src/java/com/threerings/io/FieldMarshaller.java +++ b/src/java/com/threerings/io/FieldMarshaller.java @@ -57,24 +57,24 @@ public abstract class FieldMarshaller createMarshallers(); } - // first look to see if this field has custom reader/writer methods - Method reader = null, writer = null; - try { - reader = field.getDeclaringClass().getMethod( - getReaderMethodName(field.getName()), READER_ARGS); - writer = field.getDeclaringClass().getMethod( - getWriterMethodName(field.getName()), WRITER_ARGS); - return new MethodFieldMarshaller(reader, writer); - } catch (NoSuchMethodException nsme) { - // no problem - } - if ((reader != null || writer != null) && (reader == null || writer == null)) { - log.warning("Class contains one but not both custom field reader and writer " + - "[class=" + field.getDeclaringClass().getName() + - ", field=" + field.getName() + ", reader=" + reader + - ", writer=" + writer + "]."); - // fall through to using reflection on the fields... - } +// // first look to see if this field has custom reader/writer methods +// Method reader = null, writer = null; +// try { +// reader = field.getDeclaringClass().getMethod( +// getReaderMethodName(field.getName()), READER_ARGS); +// writer = field.getDeclaringClass().getMethod( +// getWriterMethodName(field.getName()), WRITER_ARGS); +// return new MethodFieldMarshaller(reader, writer); +// } catch (NoSuchMethodException nsme) { +// // no problem +// } +// if ((reader != null || writer != null) && (reader == null || writer == null)) { +// log.warning("Class contains one but not both custom field reader and writer " + +// "[class=" + field.getDeclaringClass().getName() + +// ", field=" + field.getName() + ", reader=" + reader + +// ", writer=" + writer + "]."); +// // fall through to using reflection on the fields... +// } Class ftype = field.getType(); if (ftype.isInterface()) {