summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/classfile/ClassfileParser.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-04-09 01:38:50 +0000
committerpaltherr <paltherr@epfl.ch>2004-04-09 01:38:50 +0000
commit2a309487c5cdc3bafb52b6e9ebcb084cf9849b2f (patch)
treeb082d5430376b15eca7b01c5d8c01999d55a8b09 /sources/scalac/symtab/classfile/ClassfileParser.java
parent8dd1635f7f4661e39eb9b77a56e14f92e0379786 (diff)
downloadscala-2a309487c5cdc3bafb52b6e9ebcb084cf9849b2f.tar.gz
scala-2a309487c5cdc3bafb52b6e9ebcb084cf9849b2f.tar.bz2
scala-2a309487c5cdc3bafb52b6e9ebcb084cf9849b2f.zip
- Replaced Symbol.dualClass by Symbol.linkedCla...
- Replaced Symbol.dualClass by Symbol.linkedClass and Symbol.linkedModule
Diffstat (limited to 'sources/scalac/symtab/classfile/ClassfileParser.java')
-rw-r--r--sources/scalac/symtab/classfile/ClassfileParser.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/sources/scalac/symtab/classfile/ClassfileParser.java b/sources/scalac/symtab/classfile/ClassfileParser.java
index 4d1ae22e9f..c4eaab9e5c 100644
--- a/sources/scalac/symtab/classfile/ClassfileParser.java
+++ b/sources/scalac/symtab/classfile/ClassfileParser.java
@@ -44,6 +44,7 @@ public class ClassfileParser implements ClassfileConstants {
protected final Global global;
protected final AbstractFileReader in;
protected final Symbol c;
+ protected final Symbol m;
protected final Type ctype;
protected final JavaTypeFactory make;
protected final ConstantPool pool;
@@ -56,6 +57,7 @@ public class ClassfileParser implements ClassfileConstants {
this.global = global;
this.in = in;
this.c = c;
+ this.m = c.linkedModule();
this.ctype = make.classType(c);
this.make = make;
this.pool = pool;
@@ -113,11 +115,11 @@ public class ClassfileParser implements ClassfileConstants {
Type classInfo = Type.compoundType(basetpes, locals, c);
c.setInfo(classInfo);
// set info of statics class
- Symbol staticsClass = c.dualClass();
+ Symbol staticsClass = m.moduleClass();
assert staticsClass.isModuleClass(): Debug.show(staticsClass);
Type staticsInfo = Type.compoundType(Type.EMPTY_ARRAY, statics, staticsClass);
staticsClass.setInfo(staticsInfo);
- staticsClass.module().setInfo(make.classType(staticsClass));
+ m.setInfo(make.classType(staticsClass));
basetpes[0] = supertpe;
for (int i = 1; i < basetpes.length; i++)
basetpes[i] = readClassType(in.nextChar());
@@ -138,8 +140,8 @@ public class ClassfileParser implements ClassfileConstants {
attrib.readAttributes(c, classInfo, CLASS_ATTR);
//System.out.println("dynamic class: " + c);
//System.out.println("statics class: " + staticsClass);
- //System.out.println("module: " + c.module());
- //System.out.println("modules class: " + c.module().type().symbol());
+ //System.out.println("module: " + m);
+ //System.out.println("modules class: " + m.type().symbol());
}
}
@@ -237,7 +239,7 @@ public class ClassfileParser implements ClassfileConstants {
/** return the owner of a member with given java flags
*/
private Symbol getOwner(int jflags) {
- return (jflags & JAVA_ACC_STATIC) != 0 ? c.dualClass() : c;
+ return (jflags & JAVA_ACC_STATIC) != 0 ? m.moduleClass() : c;
}
/** return the scope of a member with given java flags