From c738e5c0def432d0702cf9ebf631f111b87b16aa Mon Sep 17 00:00:00 2001 From: JanUlrich Date: Mon, 24 Mar 2014 18:01:26 +0100 Subject: [PATCH] =?UTF-8?q?FileOutputStream=20zu=20OutputStream=20ge=C3=A4?= =?UTF-8?q?ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .classpath | 1 - src/mycompiler/mybytecode/ClassFile.java | 11 +++++++---- src/mycompiler/mybytecode/CodeAttribute.java | 9 +++++++++ src/mycompiler/mybytecode/SignatureInfo.java | 11 +++++++++++ 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/.classpath b/.classpath index 8799920f..20f5e915 100755 --- a/.classpath +++ b/.classpath @@ -6,6 +6,5 @@ - diff --git a/src/mycompiler/mybytecode/ClassFile.java b/src/mycompiler/mybytecode/ClassFile.java index e77d959c..619c8aed 100755 --- a/src/mycompiler/mybytecode/ClassFile.java +++ b/src/mycompiler/mybytecode/ClassFile.java @@ -9,8 +9,10 @@ package mycompiler.mybytecode; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; +import java.io.OutputStream; import java.lang.reflect.Array; import java.util.Vector; + import mycompiler.myclass.ParameterList; import mycompiler.myclass.UsedId; import mycompiler.MyCompiler; @@ -20,6 +22,7 @@ import mycompiler.mystatement.Assign; import mycompiler.mystatement.Block; import mycompiler.mytype.Type; import mycompiler.SourceFile; + import org.apache.log4j.Logger; // ino.end @@ -804,7 +807,7 @@ public class ClassFile // ino.end // ino.method.writeInt.21669.definition - public void writeInt(FileOutputStream f, int i) + public void writeInt(OutputStream f, int i) throws IOException // ino.end // ino.method.writeInt.21669.body @@ -817,7 +820,7 @@ public class ClassFile // ino.end // ino.method.writeShort.21672.definition - public void writeShort(FileOutputStream f, short i) + public void writeShort(OutputStream f, short i) throws IOException // ino.end // ino.method.writeShort.21672.body @@ -828,7 +831,7 @@ public class ClassFile // ino.end // ino.method.writeByte.21675.definition - public void writeByte(FileOutputStream f, byte i) + public void writeByte(OutputStream f, byte i) throws IOException // ino.end // ino.method.writeByte.21675.body @@ -838,7 +841,7 @@ public class ClassFile // ino.end // ino.method.writeByteArray.21678.definition - public void writeByteArray(FileOutputStream f, byte[] b) + public void writeByteArray(OutputStream f, byte[] b) throws IOException // ino.end // ino.method.writeByteArray.21678.body diff --git a/src/mycompiler/mybytecode/CodeAttribute.java b/src/mycompiler/mybytecode/CodeAttribute.java index 0807568c..86997fdc 100755 --- a/src/mycompiler/mybytecode/CodeAttribute.java +++ b/src/mycompiler/mybytecode/CodeAttribute.java @@ -10,8 +10,11 @@ package mycompiler.mybytecode; // ino.module.CodeAttribute.8532.import import java.io.FileOutputStream; import java.io.IOException; +import java.io.OutputStream; import java.lang.reflect.Array; import java.util.Vector; + +import sun.reflect.generics.reflectiveObjects.NotImplementedException; import mycompiler.myexception.JVMCodeException; import mycompiler.mytype.Type; // ino.end @@ -1087,5 +1090,11 @@ public class CodeAttribute extends Attribute } // ino.end + @Override + public void codegen(ClassFile classfile, OutputStream f) + throws JVMCodeException, IOException { + throw new NotImplementedException(); + } + } // ino.end diff --git a/src/mycompiler/mybytecode/SignatureInfo.java b/src/mycompiler/mybytecode/SignatureInfo.java index bb684269..a7d2e6c1 100755 --- a/src/mycompiler/mybytecode/SignatureInfo.java +++ b/src/mycompiler/mybytecode/SignatureInfo.java @@ -5,7 +5,9 @@ package mycompiler.mybytecode; // ino.module.SignatureInfo.8550.import import java.io.FileOutputStream; import java.io.IOException; +import java.io.OutputStream; import java.util.Vector; + import mycompiler.myclass.ParameterList; import mycompiler.myclass.UsedId; import mycompiler.myexception.JVMCodeException; @@ -13,9 +15,12 @@ import mycompiler.mytype.BoundedGenericTypeVar; import mycompiler.mytype.GenericTypeVar; import mycompiler.mytype.RefType; import mycompiler.mytype.Type; + import org.apache.log4j.Logger; // ino.end +import sun.reflect.generics.reflectiveObjects.NotImplementedException; + // ino.class.SignatureInfo.22968.description type=javadoc /** * Generiert die Attribute eines Fields, einer Methode oder einer Klasse/Interface @@ -257,6 +262,12 @@ public class SignatureInfo extends Attribute return 2; } // ino.end + + @Override + public void codegen(ClassFile classfile, OutputStream f) + throws JVMCodeException, IOException { + throw new NotImplementedException(); + } } // ino.end