Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/io/ObjectStreamField.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    4848    this.name = name;
    4949    this.type = type;
     50
    5051  }
    51 
     52 
     53  /**
     54   * There're many cases you can't get java.lang.Class from typename if your context
     55   * class loader can't load it, then use typename to construct the field
     56   */
     57  ObjectStreamField (String name, String typename){
     58    this.name = name;
     59    this.typename = typename;
     60    try{
     61      type = TypeSignature.getClassForEncoding(typename);
     62    }catch(ClassNotFoundException e){
     63      type = Object.class; //??
     64    }
     65  }
     66 
    5267  public String getName ()
    5368  {
     
    6277  public char getTypeCode ()
    6378  {
    64     return TypeSignature.getEncodingOfClass (type).charAt (0);
     79    return .charAt (0);
    6580  }
    6681
    6782  public String getTypeString ()
    6883  {
    69     return TypeSignature.getEncodingOfClass (type);
     84    // use intern()
     85    return typename.intern();
    7086  }
    7187
     
    107123  private String name;
    108124  private Class type;
     125
    109126  private int offset = -1; // XXX make sure this is correct
    110127}
Note: See TracChangeset for help on using the changeset viewer.