cvs commit: spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io MetaClassIOBinaryTestCase.java SAXMetaClassSerializerTestCase.java

Peter Donald <[email protected]>
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
donaldp     03/10/28 05:40:53

  Modified:    sandbox/metaclass/src/test/org/realityforge/metaclass/io
                        MetaClassIOBinaryTestCase.java
                        SAXMetaClassSerializerTestCase.java
  Log:
  Push through declared attributes in MethodDescriptor
  
  Revision  Changes    Path
  1.21      +4 -3      spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io/MetaClassIOBinaryTestCase.java
  
  Index: MetaClassIOBinaryTestCase.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io/MetaClassIOBinaryTestCase.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- MetaClassIOBinaryTestCase.java	28 Oct 2003 13:34:22 -0000	1.20
  +++ MetaClassIOBinaryTestCase.java	28 Oct 2003 13:40:53 -0000	1.21
  @@ -23,7 +23,7 @@
   /**
    *
    * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
  - * @version $Revision: 1.20 $ $Date: 2003/10/28 13:34:22 $
  + * @version $Revision: 1.21 $ $Date: 2003/10/28 13:40:53 $
    */
   public class MetaClassIOBinaryTestCase
       extends TestCase
  @@ -441,7 +441,7 @@
               new MethodDescriptor( name,
                                     type,
                                     ParameterDescriptor.EMPTY_SET,
  -                                  Attribute.EMPTY_SET );
  +                                  Attribute.EMPTY_SET, Attribute.EMPTY_SET );
           io.writeMethods( data, new MethodDescriptor[]{descriptor} );
           data.flush();
           final byte[] bytes = out.toByteArray();
  @@ -501,12 +501,13 @@
           final FieldDescriptor field =
               new FieldDescriptor( "m_field",
                                    "int",
  -                                 attributes, 
  +                                 attributes,
                                    attributes );
           final MethodDescriptor method =
               new MethodDescriptor( "doMagic",
                                     "",
                                     ParameterDescriptor.EMPTY_SET,
  +                                  Attribute.EMPTY_SET,
                                     Attribute.EMPTY_SET );
           final ClassDescriptor descriptor =
               new ClassDescriptor( "com.biz.MyClass",
  
  
  
  1.5       +5 -1      spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io/SAXMetaClassSerializerTestCase.java
  
  Index: SAXMetaClassSerializerTestCase.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/metaclass/src/test/org/realityforge/metaclass/io/SAXMetaClassSerializerTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SAXMetaClassSerializerTestCase.java	28 Oct 2003 13:34:22 -0000	1.4
  +++ SAXMetaClassSerializerTestCase.java	28 Oct 2003 13:40:53 -0000	1.5
  @@ -132,7 +132,11 @@
           final SAXMetaClassSerializer serializer = new SAXMetaClassSerializer();
           final MethodDescriptor[] methods = new MethodDescriptor[]
           {
  -            new MethodDescriptor( name, type, ParameterDescriptor.EMPTY_SET, Attribute.EMPTY_SET )
  +            new MethodDescriptor( name,
  +                                  type,
  +                                  ParameterDescriptor.EMPTY_SET,
  +                                  Attribute.EMPTY_SET, 
  +                                  Attribute.EMPTY_SET )
           };
           serializer.serializeMethods( handler, methods );
   
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.