langtools/test/tools/javac/processing/environment/round/TestElementsAnnotatedWith.java
equal
deleted
inserted
replaced
186 JavaFileObject jfo = filer.createClassFile("Foo"); |
186 JavaFileObject jfo = filer.createClassFile("Foo"); |
187 OutputStream os = jfo.openOutputStream(); |
187 OutputStream os = jfo.openOutputStream(); |
188 // Copy the bytes over |
188 // Copy the bytes over |
189 System.out.println((new File(".")).getAbsolutePath()); |
189 System.out.println((new File(".")).getAbsolutePath()); |
190 InputStream io = new BufferedInputStream(new FileInputStream(new File(".", "Foo.class"))); |
190 InputStream io = new BufferedInputStream(new FileInputStream(new File(".", "Foo.class"))); |
191 int datum = io.read(); |
191 try { |
192 while(datum != -1) { |
192 int datum = io.read(); |
193 os.write(datum); |
193 while(datum != -1) { |
194 datum = io.read(); |
194 os.write(datum); |
|
195 datum = io.read(); |
|
196 } |
|
197 } finally { |
|
198 io.close(); |
195 } |
199 } |
196 os.close(); |
200 os.close(); |
197 } catch (IOException io) { |
201 } catch (IOException ioe) { |
198 throw new RuntimeException(io); |
202 throw new RuntimeException(ioe); |
199 } |
203 } |
200 |
204 |
201 |
205 |
202 } |
206 } |
203 |
207 |