Changeset 2306


Ignore:
Timestamp:
Feb 1, 2007, 8:20:54 PM (14 years ago)
Author:
yura
Message:
  • Changes in generated class declaration (all are public classes).
Location:
to-imperative/trunk/java/org/refal/plus
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/java/org/refal/plus/wrapgen/WrapGen.java

    r2305 r2306  
    3939                this.constants = new HashMap();
    4040                this.rfiFile = new RFIFile(this.newName);
    41                 super.visit(version, access, this.newName, signature, this.oldName, null);
     41                super.visit(0, Opcodes.ACC_PUBLIC, this.newName, null, "java/lang/Object", null);
    4242        }
    4343
     
    5858                        String refName = this.rfiFile.getRefalConst(name, ((Integer)value).intValue());
    5959                        if (refName != null) {
    60                                 FieldVisitor fv = super.visitField(access, refName, "Lorg/refal/plus/Expr;", signature, null);
     60                                FieldVisitor fv = super.visitField(access, refName, "Lorg/refal/plus/Expr;", null, null);
    6161                                constants.put(refName, value);
    6262                                fv.visitEnd();
    63                 }       }
     63                        }
     64                }
    6465                return null;
    6566        }
     
    9192                        newArgTypes[newArgTypes.length-1] = Type.getType("Lorg/refal/plus/Result;");
    9293                String newDesc = Type.getMethodDescriptor(Type.VOID_TYPE, newArgTypes);
    93                 MethodVisitor mv = super.visitMethod(Opcodes.ACC_PUBLIC+Opcodes.ACC_STATIC, refFun.name, newDesc, signature, new String[] {"org/refal/plus/RefalException"});
     94                MethodVisitor mv = super.visitMethod(Opcodes.ACC_PUBLIC+Opcodes.ACC_STATIC, refFun.name, newDesc, null, new String[] {"org/refal/plus/RefalException"});
    9495                mv.visitCode();
    9596                if (isConstructor) {
Note: See TracChangeset for help on using the changeset viewer.