Author: [email protected]
Date: Wed Apr  8 14:52:24 2009
New Revision: 5198

Modified:
     
branches/snapshot-2009.03.30-r5111/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java

Log:
Reverting r5075 in release branch 2009-03-30.  This patch throws an error  
when it examins a custom field serializer associated with a super-src  
class, claiming that the package name does not match the expected package  
name.

Patch by: jlabanca
Review by: rjrjr



Modified:  
branches/snapshot-2009.03.30-r5111/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java
==============================================================================
---  
branches/snapshot-2009.03.30-r5111/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java
    
(original)
+++  
branches/snapshot-2009.03.30-r5111/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java
    
Wed Apr  8 14:52:24 2009
@@ -461,18 +461,8 @@
      }

      if (field.isFinal()) {
-      Type logLevel;
-      if (isManuallySerializable(field.getEnclosingType())) {
-        /*
-         * If the type has a custom serializer, assume the programmer knows
-         * best.
-         */
-        logLevel = TreeLogger.DEBUG;
-      } else {
-        logLevel = TreeLogger.WARN;
-      }
        logger.branch(suppressNonStaticFinalFieldWarnings ? TreeLogger.DEBUG
-          : logLevel, "Field '" + field.toString()
+          : TreeLogger.WARN, "Field '" + field.toString()
            + "' will not be serialized because it is final", null);
        return false;
      }

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to