1999-05-18 17:33:03 +02:00
|
|
|
|
// natDeflater.cc - Implementation of Deflater native methods.
|
|
|
|
|
|
2000-03-07 20:55:28 +01:00
|
|
|
|
/* Copyright (C) 1999 Free Software Foundation
|
1999-05-18 17:33:03 +02:00
|
|
|
|
|
|
|
|
|
This file is part of libgcj.
|
|
|
|
|
|
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
|
|
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
|
|
|
|
details. */
|
|
|
|
|
|
|
|
|
|
// Written by Tom Tromey <tromey@cygnus.com>
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#include <zlib.h>
|
1999-05-19 13:03:36 +02:00
|
|
|
|
#include <stdlib.h>
|
1999-05-18 17:33:03 +02:00
|
|
|
|
|
1999-09-11 00:03:10 +02:00
|
|
|
|
#include <gcj/cni.h>
|
1999-05-18 17:33:03 +02:00
|
|
|
|
#include <jvm.h>
|
|
|
|
|
|
|
|
|
|
#include <java/util/zip/Deflater.h>
|
|
|
|
|
#include <java/util/zip/DataFormatException.h>
|
|
|
|
|
|
|
|
|
|
#include <java/lang/InternalError.h>
|
|
|
|
|
#include <java/lang/NullPointerException.h>
|
|
|
|
|
#include <java/lang/ArrayIndexOutOfBoundsException.h>
|
|
|
|
|
|
|
|
|
|
extern void *_Jv_ZMalloc (void *, uInt nitems, uInt size);
|
|
|
|
|
extern void _Jv_ZFree (void *, void *addr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jint
|
|
|
|
|
java::util::zip::Deflater::deflate (jbyteArray buf, jint off, jint len)
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
|
|
|
|
|
|
|
|
|
if (! buf)
|
exception.cc (java_eh_info): Make value type jthrowable.
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-26 09:05:32 +02:00
|
|
|
|
throw new java::lang::NullPointerException;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
if (off < 0 || len < 0 || off + len > buf->length)
|
exception.cc (java_eh_info): Make value type jthrowable.
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-26 09:05:32 +02:00
|
|
|
|
throw new java::lang::ArrayIndexOutOfBoundsException;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
|
1999-05-22 20:08:46 +02:00
|
|
|
|
if (len == 0)
|
|
|
|
|
return 0;
|
|
|
|
|
|
1999-05-18 17:33:03 +02:00
|
|
|
|
s->next_out = (Bytef *) (elements (buf) + off);
|
|
|
|
|
s->avail_out = len;
|
|
|
|
|
|
|
|
|
|
switch (::deflate (s, flush_flag))
|
|
|
|
|
{
|
|
|
|
|
case Z_STREAM_END:
|
|
|
|
|
is_finished = true;
|
1999-05-19 13:03:36 +02:00
|
|
|
|
if (s->avail_out == (unsigned int) len)
|
1999-05-18 17:33:03 +02:00
|
|
|
|
return -1;
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case Z_STREAM_ERROR:
|
|
|
|
|
case Z_BUF_ERROR:
|
|
|
|
|
// FIXME?
|
exception.cc (java_eh_info): Make value type jthrowable.
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-26 09:05:32 +02:00
|
|
|
|
throw new java::lang::InternalError;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case Z_OK:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return len - s->avail_out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
java::util::zip::Deflater::end ()
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
// Just ignore errors.
|
|
|
|
|
deflateEnd ((z_streamp) zstream);
|
|
|
|
|
_Jv_Free (zstream);
|
|
|
|
|
zstream = NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
java::util::zip::Deflater::finish ()
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
flush_flag = Z_FINISH;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jint
|
|
|
|
|
java::util::zip::Deflater::getAdler ()
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
|
|
|
|
return s->adler;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jint
|
|
|
|
|
java::util::zip::Deflater::getTotalIn ()
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
|
|
|
|
return s->total_in;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jint
|
|
|
|
|
java::util::zip::Deflater::getTotalOut ()
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
|
|
|
|
return s->total_out;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
jboolean
|
|
|
|
|
java::util::zip::Deflater::needsInput ()
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
1999-05-22 20:08:46 +02:00
|
|
|
|
return s->avail_in == 0;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
java::util::zip::Deflater::reset ()
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
|
|
|
|
// Just ignore errors.
|
|
|
|
|
deflateReset (s);
|
|
|
|
|
flush_flag = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
java::util::zip::Deflater::setDictionary (jbyteArray buf, jint off, jint len)
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
|
|
|
|
|
|
|
|
|
if (! buf)
|
exception.cc (java_eh_info): Make value type jthrowable.
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-26 09:05:32 +02:00
|
|
|
|
throw new java::lang::NullPointerException;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
if (off < 0 || len < 0 || off + len > buf->length)
|
exception.cc (java_eh_info): Make value type jthrowable.
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-26 09:05:32 +02:00
|
|
|
|
throw new java::lang::ArrayIndexOutOfBoundsException;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
|
|
|
|
|
// Ignore errors.
|
|
|
|
|
deflateSetDictionary (s, (Bytef *) (elements (buf) + off), len);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
java::util::zip::Deflater::setInput (jbyteArray buf, jint off, jint len)
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
|
|
|
|
|
|
|
|
|
if (! buf)
|
exception.cc (java_eh_info): Make value type jthrowable.
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-26 09:05:32 +02:00
|
|
|
|
throw new java::lang::NullPointerException;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
if (off < 0 || len < 0 || off + len > buf->length)
|
exception.cc (java_eh_info): Make value type jthrowable.
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-26 09:05:32 +02:00
|
|
|
|
throw new java::lang::ArrayIndexOutOfBoundsException;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
|
|
|
|
|
s->next_in = (Bytef *) (elements (buf) + off);
|
|
|
|
|
s->avail_in = len;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
java::util::zip::Deflater::update ()
|
|
|
|
|
{
|
|
|
|
|
JvSynchronize sync (this);
|
|
|
|
|
z_streamp s = (z_streamp) zstream;
|
|
|
|
|
|
1999-05-19 13:03:36 +02:00
|
|
|
|
int strat = Z_DEFAULT_STRATEGY;
|
1999-05-18 17:33:03 +02:00
|
|
|
|
switch (strategy)
|
|
|
|
|
{
|
|
|
|
|
case DEFAULT_STRATEGY:
|
|
|
|
|
strat = Z_DEFAULT_STRATEGY;
|
|
|
|
|
break;
|
|
|
|
|
case FILTERED:
|
|
|
|
|
strat = Z_FILTERED;
|
|
|
|
|
break;
|
|
|
|
|
case HUFFMAN_ONLY:
|
|
|
|
|
strat = Z_HUFFMAN_ONLY;
|
|
|
|
|
break;
|
1999-05-19 13:03:36 +02:00
|
|
|
|
default:
|
|
|
|
|
JvFail ("unexpected strategy");
|
1999-05-18 17:33:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Ignore errors.
|
|
|
|
|
deflateParams (s, level, strat);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
java::util::zip::Deflater::init (jint level, jboolean no_header)
|
|
|
|
|
{
|
|
|
|
|
z_stream_s *stream = (z_stream_s *) _Jv_Malloc (sizeof (z_stream_s));
|
|
|
|
|
stream->next_in = Z_NULL;
|
|
|
|
|
stream->avail_in = 0;
|
|
|
|
|
stream->zalloc = _Jv_ZMalloc;
|
|
|
|
|
stream->zfree = _Jv_ZFree;
|
|
|
|
|
stream->opaque = NULL;
|
|
|
|
|
|
|
|
|
|
// Handle NO_HEADER using undocumented zlib feature.
|
|
|
|
|
int wbits = MAX_WBITS;
|
|
|
|
|
if (no_header)
|
|
|
|
|
wbits = - wbits;
|
|
|
|
|
|
|
|
|
|
#define DEFAULT_MEM_LEVEL 8
|
|
|
|
|
if (deflateInit2 (stream, level, Z_DEFLATED, wbits,
|
|
|
|
|
DEFAULT_MEM_LEVEL, Z_DEFAULT_STRATEGY) != Z_OK)
|
|
|
|
|
{
|
|
|
|
|
jstring msg = NULL;
|
|
|
|
|
if (stream->msg != NULL)
|
|
|
|
|
msg = JvNewStringLatin1 (stream->msg);
|
exception.cc (java_eh_info): Make value type jthrowable.
* exception.cc (java_eh_info): Make value type jthrowable.
(_Jv_type_matcher): Remove now unneeded cast.
(_Jv_Throw): Make argument type jthrowable. Munge name
for SJLJ_EXCEPTIONS here ...
* gcj/cni.h: ... not here.
(JvThrow): Remove.
* gcj/javaprims.h (_Jv_Throw, _Jv_Sjlj_Throw): Update declarations.
* defineclass.cc, interpret.cc, jni.cc, posix-threads.cc,
prims.cc, resolve.cc, gnu/gcj/runtime/natFirstThread.cc,
gnu/gcj/xlib/natDrawable.cc, gnu/gcj/xlib/natFont.cc,
gnu/gcj/xlib/natWMSizeHints.cc, gnu/gcj/xlib/natWindowAttributes.cc,
gnu/gcj/xlib/natXImage.cc, java/io/natFile.cc,
java/io/natFileDescriptorEcos.cc, java/io/natFileDescriptorPosix.cc,
java/io/natFileDescriptorWin32.cc, java/io/natFileWin32.cc,
java/lang/natClass.cc, java/lang/natClassLoader.cc,
java/lang/natDouble.cc, java/lang/natObject.cc,
java/lang/natPosixProcess.cc, java/lang/natRuntime.cc,
java/lang/natString.cc, java/lang/natSystem.cc,
java/lang/natThread.cc, java/lang/reflect/natArray.cc,
java/lang/reflect/natConstructor.cc, java/lang/reflect/natField.cc,
java/lang/reflect/natMethod.cc, java/util/zip/natDeflater.cc,
java/util/zip/natInflater.cc:
Use throw, not JvThrow or _Jv_Throw.
From-SVN: r40838
2001-03-26 09:05:32 +02:00
|
|
|
|
throw new java::lang::InternalError (msg);
|
1999-05-18 17:33:03 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
zstream = reinterpret_cast<gnu::gcj::RawData *> (stream);
|
|
|
|
|
is_finished = false;
|
|
|
|
|
flush_flag = 0;
|
|
|
|
|
}
|