- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/io/ObjectStreamField.java (modified) (3 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/io/ObjectStreamField.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.1.1.2
r1390 r1391 48 48 this.name = name; 49 49 this.type = type; 50 50 51 } 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 52 67 public String getName () 53 68 { … … 62 77 public char getTypeCode () 63 78 { 64 return TypeSignature.getEncodingOfClass (type).charAt (0);79 return .charAt (0); 65 80 } 66 81 67 82 public String getTypeString () 68 83 { 69 return TypeSignature.getEncodingOfClass (type); 84 // use intern() 85 return typename.intern(); 70 86 } 71 87 … … 107 123 private String name; 108 124 private Class type; 125 109 126 private int offset = -1; // XXX make sure this is correct 110 127 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
