diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-11 08:36:45 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-11 08:36:45 +0000 |
commit | 2ca6f3cc99857846af00d8a161a726756b4b3606 (patch) | |
tree | cadd9586a24382bf4e26f344bf544c382daccd41 | |
parent | 5412ad4a1c1598f54611a03123634fc88af03d7d (diff) | |
download | scala-2ca6f3cc99857846af00d8a161a726756b4b3606.tar.gz scala-2ca6f3cc99857846af00d8a161a726756b4b3606.tar.bz2 scala-2ca6f3cc99857846af00d8a161a726756b4b3606.zip |
- Changed Pickle to encode NoPrefix into ThisTy...
- Changed Pickle to encode NoPrefix into ThisType(NONE)
-rw-r--r-- | sources/scalac/symtab/classfile/Pickle.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sources/scalac/symtab/classfile/Pickle.java b/sources/scalac/symtab/classfile/Pickle.java index 3359e9aac7..0303666514 100644 --- a/sources/scalac/symtab/classfile/Pickle.java +++ b/sources/scalac/symtab/classfile/Pickle.java @@ -164,6 +164,9 @@ public class Pickle implements Kinds, Modifiers, EntryTags { case NoType: break; case NoPrefix: + putSymbol(Symbol.NONE); + // !!! code above is usefull for compatibility + // !!! nothing would be better line break; case ThisType(Symbol sym): putSymbol(sym); @@ -381,8 +384,13 @@ public class Pickle implements Kinds, Modifiers, EntryTags { writeByte(0); // space for length break; case NoPrefix: - writeByte(NOpre); + writeByte(THIStpe); writeByte(0); // space for length + writeRef(Symbol.NONE); + // !!! code above is usefull for compatibility + // !!! following code would be better line: + // !!! writeByte(NOpre); + // !!! writeByte(0); // space for length break; case ThisType(Symbol sym): writeByte(THIStpe); |