mirror of
https://gcc.gnu.org/git/gcc.git
synced 2025-01-18 10:24:30 +08:00
re PR libgcj/20958 (Compile Errors In two files in gnu.gcj)
2005-04-12 Aaron Luchko <aluchko@redhat.com> PR libgcj/20958 * gnu/gcj/runtime/PersistentByteMap.java (close): Throw IOException. * gnu/gcj/tools/gcj_dbtool/Main.java (addJar): Make 'length' an int. From-SVN: r98053
This commit is contained in:
parent
c6abe94dc1
commit
ea1194ab2c
@ -1,3 +1,9 @@
|
||||
2005-04-12 Aaron Luchko <aluchko@redhat.com>
|
||||
|
||||
PR libgcj/20958
|
||||
* gnu/gcj/runtime/PersistentByteMap.java (close): Throw IOException.
|
||||
* gnu/gcj/tools/gcj_dbtool/Main.java (addJar): Make 'length' an int.
|
||||
|
||||
2005-04-12 Aaron Luchko <aluchko@redhat.com>
|
||||
|
||||
PR libgcj/20975
|
||||
|
@ -452,7 +452,7 @@ public class PersistentByteMap
|
||||
|
||||
// Close the map. Once this has been done, the map can no longer be
|
||||
// used.
|
||||
public void close()
|
||||
public void close() throws IOException
|
||||
{
|
||||
force();
|
||||
fc.close();
|
||||
|
@ -375,7 +375,7 @@ public class Main
|
||||
if (classfile.getName().endsWith(".class"))
|
||||
{
|
||||
InputStream str = jar.getInputStream(classfile);
|
||||
long length = classfile.getSize();
|
||||
int length = (int) classfile.getSize();
|
||||
if (length == -1)
|
||||
throw new EOFException();
|
||||
|
||||
@ -383,7 +383,7 @@ public class Main
|
||||
int pos = 0;
|
||||
while (length - pos > 0)
|
||||
{
|
||||
int len = str.read(data, pos, (int)(length - pos));
|
||||
int len = str.read(data, pos, length - pos);
|
||||
if (len == -1)
|
||||
throw new EOFException("Not enough data reading from: "
|
||||
+ classfile.getName());
|
||||
|
Loading…
Reference in New Issue
Block a user