Commit Graph

2101 Commits

Author SHA1 Message Date
Jeroen Frijters a79f940af0 Security.java, [...]: Modified to use SystemProperties.
2005-04-26  Jeroen Frijters  <jeroen@frijters.net>

	* java/security/Security.java,
	java/security/cert/X509CRLSelector.java,
	java/security/cert/X509CertSelector.java:
	Modified to use SystemProperties.

From-SVN: r98764
2005-04-26 05:22:12 +00:00
Michael Koch 57fc483297 2005-04-26 Michael Koch <konqueror@gmx.de>
* java/lang/System.java
	(setSecurityManager): Fixed comment.
	(getSecurityManager): Removed obsolete comment.

From-SVN: r98763
2005-04-26 05:09:35 +00:00
Tom Tromey 3e591bd21b * java/awt/AWTKeyStroke.java (vktable): Now package-private.
From-SVN: r98752
2005-04-26 00:22:19 +00:00
Michael Koch 84e0bcb8c5 [multiple changes]
2005-04-25  Jeroen Frijters  <jeroen@frijters.net>

	* java/awt/GraphicsEnvironment.java
	(localGraphicsEnvironment): New field.
	(getLocalGraphicsEnvironment): Added support for java.awt.graphicsenv
	property.
	(isHeadless): Added support for java.awt.headless property.
	(isHeadlessInstance): Call headless().

2005-04-25  Roman Kennke  <roman@kennke.org>

	* gnu/java/awt/peer/gtk/GdkScreenGraphicsDevice.java
	(getDisplayMode): Added. Returns the current display mode.
	(isFullScreenSupported): Added.
	* java/awt/GraphicsDevice.java
	(setFullScreenWindow): Implemented a primitive fullscreen mode.
	This resizes and relocates the fullscreen window so that it uses
	the whole screen. This is not a fully accelerated fullscreen
	exclusive mode.

From-SVN: r98740
2005-04-25 20:58:13 +00:00
Michael Koch 4b30c6bda0 Runtime.java, [...]: Replaced java.lang.Runtime.securityManager by java.lang.SecurityManager.current...
2005-04-25  Michael Koch  <konqueror@gmx.de>

	* java/lang/Runtime.java,
	java/lang/SecurityManager.java,
	java/lang/System.java,
	java/lang/ThreadGroup.java:
	Replaced java.lang.Runtime.securityManager by
	java.lang.SecurityManager.current (as used in GNU classpath).

From-SVN: r98738
2005-04-25 20:35:17 +00:00
David Gilbert 23a58ffe2b 2005-04-25 David Gilbert <david.gilbert@object-refinery.com>
* java/awt/Transparency.java
	(getTransparency): fixed API docs.

From-SVN: r98735
2005-04-25 19:51:00 +00:00
Michael Koch ee141b8822 [multiple changes]
2005-04-25  Archie Cobbs  <archie@dellroad.org>

	* java/lang/Throwable.java: simplify initializing cause in constructor

2005-04-25  Michael Koch  <konqueror@gmx.de>

	* gnu/classpath/SystemProperties.java: New file.
	* gnu/classpath/natSystemProperties.cc: New file.
	* java/lang/Runtime.java
	(defaultProperties): Removed.
	(static): Likewise.
	(): Made thrown exceptions more verbose.
	(insertSystemProperties): Removed.
	* java/lang/System.java
	(static): Likewise.
	(properties): Likewise.
	(setSecurityManager): Reordered modifiers.
	(getenv): Improved javadoc.
	(): Likewise.
	(isWordsBigEndian): Removed.
	* java/lang/natRuntime.cc
	(_Jv_SetDLLSearchPath): Likewise.
	(file_encoding): Likewise.
	(default_file_encoding): Likewise.
	(getpwuid_adaptor): Likewise.
	(insertSystemProperties): Likewise.
	* java/lang/natSystem.cc
	(isWordsBigEndian): Likewise.
	* Makefile.am
	(ordinary_java_source_files):
	Added gnu/classpath/SystemProperties.java.
	(nat_source_files): Added gnu/classpath/natSystemProperties.cc.
	* Makefile.in: Regenerated.

From-SVN: r98734
2005-04-25 19:48:35 +00:00
Jeroen Frijters 528e5d8bce FileInputStream.java (FileInputStream(File)), java/io/FileOutputStream.java (FileOutputStream(File)): Removed unnecessary File.isDirectory() check.
2005-04-23  Jeroen Frijters  <jeroen@frijters.net>

	* java/io/FileInputStream.java (FileInputStream(File)),
	java/io/FileOutputStream.java (FileOutputStream(File)):
	Removed unnecessary File.isDirectory() check.

From-SVN: r98607
2005-04-23 11:20:14 +00:00
Anthony Green f00fac9d2f jni.cc (natrehash): Don't bother clearing memory again.
2005-04-22  Anthony Green  <green@redhat.com>

        * jni.cc (natrehash): Don't bother clearing memory again.
        * interpret.cc (do_allocate_static_fields): Ditto.
        * java/lang/natString.cc (rehash): Ditto.

From-SVN: r98583
2005-04-22 19:02:41 +00:00
Sven de Marothy c58f195fd2 LogManager.java: Reformatted.
2005-04-22  Sven de Marothy  <sven@physto.se>

	* java/util/logging/LogManager.java: Reformatted.
	(readConfiguration): If a logger for a key is not found, create one.

From-SVN: r98543
2005-04-22 05:48:06 +00:00
Andrew John Hughes 6a15d30b22 Naming.java: Added class documentation.
2005-04-22  Andrew John Hughes  <gnu_andrew@member.fsf.org>

	* java/rmi/Naming.java:
	Added class documentation.
	(lookup(String)): Call parseURL and getName.
	(bind(String,java.rmi.Remote)): Likewise.
	(unbind(String)): Likewise.
	(rebind(String, java.rmi.Remote)): Likewise.
	(list(String)): Call parseURL.
	(parseURL(String)): New method to handle parsing and defaults.
	(getName(java.net.URL)): New method to handle finding the service name.

From-SVN: r98542
2005-04-22 05:45:02 +00:00
Tom Tromey 36a0d3d264 * java/lang/natClass.cc (initializeClass): Link class.
From-SVN: r98540
2005-04-22 02:33:31 +00:00
Tom Tromey 8fd5bcbe95 AssertionError.java: Typo fix.
2005-04-21  Tom Tromey  <tromey@redhat.com>

	* java/lang/AssertionError.java: Typo fix.

From-SVN: r98523
2005-04-21 20:41:32 +00:00
Tom Tromey aa3241f328 VMClassLoader.java (transformException): Removed.
* java/lang/VMClassLoader.java (transformException): Removed.
	(resolveClass): No longer native.  Now does nothing.
	* java/lang/natVMClassLoader.cc (resolveClass): Removed.

From-SVN: r98516
2005-04-21 17:20:36 +00:00
Michael Koch d288ff8d54 [multiple changes]
2005-04-20  Andrew John Hughes  <gnu_andrew@member.fsf.org>

	* java/net/URI.java:
	Added class documentation.
	(parseURI(String)): Only handle scheme-specific parts
	if URI is not opaque.  Allow for parts that can't be null.
	(toString()): Output the scheme-specific part whole, rather
	than as its possibly non-existent components.

2005-04-20  Jeroen Frijters  <jeroen@frijters.net>

	* java/net/URI.java (AUTHORITY_REGEXP): Corrected regexp.
	(AUTHORITY_USERINFO_GROUP,AUTHORITY_HOST_GROUP,AUTHORITY_PORT_GROUP):
	Adjusted to match new regexp.

From-SVN: r98451
2005-04-20 09:36:06 +00:00
Michael Koch 2e2082d864 [multiple changes]
2005-04-20  Chris Burdess  <dog@gnu.org>

	* java/io/DataOutputStream.java (writeUTF): Use block write for
	output.

2005-04-20  Jeroen Frijters  <jeroen@frijters.net>

	* java/io/DataInputStream.java (ignoreInitialNewline): Removed
	(readLine): Changed newline handling.

From-SVN: r98449
2005-04-20 09:18:19 +00:00
Jeroen Frijters 9db695c198 PixelGrabber.java (setPixels(int,int,int,int, ColorModel,byte[],int,int): Fixed byte to int conversion.
2005-04-20  Jeroen Frijters  <jeroen@frijters.net>

	* java/awt/image/PixelGrabber.java (setPixels(int,int,int,int,
	ColorModel,byte[],int,int): Fixed byte to int conversion.

From-SVN: r98448
2005-04-20 09:13:22 +00:00
Michael Koch 65d5bde825 2005-04-20 Michael Koch <konqueror@gmx.de>
* java/io/FilePermission.java
	(serialVersionUID): Made private.
	(ALL_FILES): New constant.
	(implies): Handle '<<ALL FILES>>' case.

From-SVN: r98447
2005-04-20 09:02:29 +00:00
Michael Koch ebce970d7f [multiple changes]
2005-04-20  Sven de Marothy  <sven@physto.se>

	* java/nio/ByteBufferImpl.java:
	(putChar): Inlined for speed.
	(put, get): Bulk methods can use arraycopy.
	* java/nio/CharBufferImpl.java:
	(put, get): Bulk methods can use arraycopy.

2005-04-20  Jeroen Frijters  <jeroen@frijters.net>

	* java/nio/ByteBufferImpl.java (get(), put(byte)): Inlined checks
	and field updates.
	* java/nio/CharBufferImpl.java
	(CharBufferImpl(CharBufferImpl)): Copy array_offset field.
	(get(), put(char)): Inlined checks and field updates. Fixed to
	take array_offset into account.
	(get(int), put(int, char)): Fixed to take array_offset into account.

From-SVN: r98445
2005-04-20 06:05:04 +00:00
Sven de Marothy ce254988cf 2005-04-20 Sven de Marothy <sven@physto.se>
* java/text/SimpleDateFormat.java:
	(formatWithAttribute): Pad year before truncating digits.

From-SVN: r98444
2005-04-20 06:01:09 +00:00
Michael Koch 4d23e5b880 2005-04-20 Michael Koch <konqueror@gmx.de>
* java/net/URLConnection.java
	(getContent): Fixed javadoc comment.

From-SVN: r98438
2005-04-20 05:37:46 +00:00
Andrew John Hughes 1701deb20b 2005-04-20 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/net/URL.java:
	(toURI()): Implemented.

From-SVN: r98437
2005-04-20 05:34:29 +00:00
Michael Koch 0a0179a92f 2005-04-19 Michael Koch <konqueror@gmx.de>
* java/net/InetAddress.java
	(InetAddress): Fixed javadoc comment.
	(aton): Likewise.
	(lookup): Added javadoc.
	(getFamily): Likewise.
	* java/net/ServerSocket.java
	(getChannel): Improved javadoc comment.

From-SVN: r98419
2005-04-19 19:07:13 +00:00
Michael Koch 69ae1f74fe RemoteObject.java: Removed unused import statement.
2005-04-19  Michael Koch  <konqueror@gmx.de>

	* java/rmi/server/RemoteObject.java:
	Removed unused import statement.

From-SVN: r98400
2005-04-19 10:34:38 +00:00
Michael Koch 2a2dd4592d URL.java: Formatting cleanups.
2005-04-19  Michael Koch  <konqueror@gmx.de>

	* java/net/URL.java: Formatting cleanups.

From-SVN: r98399
2005-04-19 10:31:51 +00:00
Michael Koch b53d078374 FontMetrics.java: Reformatted.
2005-04-19  Michael Koch  <konqueror@gmx.de>

	* java/awt/FontMetrics.java: Reformatted.
	(getFontRenderContext): Handle case when java.awt.Graphics context is
	given.

2005-04-19  Michael Koch  <konqueror@gmx.de>

	* java/awt/FontMetrics.java
	(getStringBounds): New methods.

From-SVN: r98398
2005-04-19 10:24:40 +00:00
Mark Wielaard 8a5691f87d natRuntime.cc (insertSystemProperties): Set java.class.path to CLASSPATH only when not empty.
* java/lang/natRuntime.cc (insertSystemProperties): Set
       java.class.path to CLASSPATH only when not empty. Fall back to
       default path "." when java.class.path is empty.

From-SVN: r98394
2005-04-19 09:29:16 +00:00
Michael Koch 2b22418b2b QuadCurve2D.java: Fixed Brian Gough's name for real.
2005-04-19  Michael Koch  <konqueror@gmx.de>

	* java/awt/geom/QuadCurve2D.java:
	Fixed Brian Gough's name for real.

From-SVN: r98392
2005-04-19 09:17:41 +00:00
Tom Tromey 8fe0225bf8 natVMClassLoader.cc (loadClass): Call resolveClass, not _Jv_InitClass.
* java/lang/natVMClassLoader.cc (loadClass): Call resolveClass,
	not _Jv_InitClass.

From-SVN: r98388
2005-04-19 06:36:10 +00:00
Michael Koch 747a54e2e6 2005-04-19 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/peer/gtk/GdkGraphics.java
	(getClipBounds): Handle clip being null.
	(setClip): Likewise.
	* java/beans/beancontext/BeanContextSupport.java
	(add): Implemented.
	(addAll): Likewise.
	(clear): Likewise.
	(removeAll): Likewise.
	(retainAll): Likewise.

2005-04-19  Michael Koch  <konqueror@gmx.de>

	* java/beans/beancontext/BeanContextServicesSupport.java
	(BeanContextServicesSupport): Reimplemented.
	(addBeanContextServicesListener): Implemented.
	(initialize): Likewise.
	(removeBeanContextServicesListener): Likewise.
	* java/beans/beancontext/BeanContextSupport.java
	(add): Likewise.
	(addBeanContextMembershipListener): Likewise.
	(getLocale): Likewise.
	(initialize): Likewise.
	(iterator): Likewise.
	(remove): Likewise.
	(toArray): Likewise.

From-SVN: r98375
2005-04-19 05:20:12 +00:00
Roman Kennke 9c3ff9fc82 MediaTracker.java: Reindented tabs to spaces.
2005-04-19  Roman Kennke  <roman@kennke.org>

	* java/awt/MediaTracker.java:
	Reindented tabs to spaces.

2005-04-19  Roman Kennke  <roman@kennke.org>

	* java/awt/MediaTracker.java
	(MediaEntry.imageUpdate): Removed check for SOMEBITS, this
	confused the media tracker and lead to lockups. The LOADING
	bit is handled on other places.
	(addImage): Removed the 'start image tracking' stuff. This
	is not necessary and could confuse the media tracker.
	(checkAll): Improved the check for image status so that
	images that already complete images are detected. Also now
	are really all images checked and if necessary loaded. Before
	the method bailed out after the first incomplete image.
	(statusAll): Detect images that are complete after the
	call to Component.prepareImage(..).
	(checkID): The same as in checkAll.
	(statusID): The same as in statusAll.

2005-04-19  Roman Kennke  <roman@kennke.org>

	* java/awt/MediaTracker.java
	(addImage): Synchronized list access.
	(waitForAll): Fixed comparison of time (changed < to >).
	(waitForID): Fixed comparison of time (changed < to >).
	(removeImage): Synchronized list access.

2005-04-19  Roman Kennke  <roman@kennke.org>

	* java/awt/MediaTracker.java
	Added API documentation.

2005-04-19  Roman Kennke  <roman@kennke.org>

	* java/awt/MediaTracker.java
	(MediaEntry.imageUpdate): Fixed flags. The different flags
	must not be ORed together.
	(checkAll): Modified to handle different meaning of the flags.
	(waitForAll): Fixed so that it waits maximum the
	specified amount of milliseconds.
	(statusAll): Modified to handle different meaning of the flags.
	(waitForID): Fixed so that it waits maximum the
	specified amount of milliseconds.

From-SVN: r98374
2005-04-19 05:13:47 +00:00
David Gilbert d6e4d86e1d Font.java (decode): Handle null argument and allow space as delimiter.
2005-04-19  vid Gilbert <david.gilbert@object-refinery.com>

	* java/awt/Font.java (decode): Handle null argument and allow
	space as delimiter.

From-SVN: r98373
2005-04-19 05:05:32 +00:00
Robert Schuster 24809ca841 EventHandler.java: Reworked documentation.
2005-04-19  Robert Schuster <thebohemian@gmx.net>

	* java/beans/EventHandler.java: Reworked documentation.
	(invoke): Fixed behavior to match spec.

From-SVN: r98372
2005-04-19 04:50:06 +00:00
Michael Koch 617c100078 2005-04-19 Michael Koch <konqueror@gmx.de>
* java/awt/print/PrinterJob.java
	(pageDialog): New method.
	(printDialog): Implemented.

From-SVN: r98371
2005-04-19 04:42:48 +00:00
Michael Koch 0fabce9650 ConvolveOp.java: Removed comment added by eclipse.
2005-04-19  Michael Koch  <konqueror@gmx.de>

	* java/awt/image/ConvolveOp.java:
	Removed comment added by eclipse.

From-SVN: r98370
2005-04-19 04:40:10 +00:00
Guilhem Lavaux 005a9448fc 2005-04-19 Guilhem Lavaux <guilhem@kaffe.org>
* java/awt/image/IndexColorModel.java
	(getRGB): Check if pixel is negative.

From-SVN: r98369
2005-04-19 04:36:54 +00:00
Michael Koch a2e0c2a390 RasterOp.java: Fixed wrong formatting.
2005-04-19  Michael Koch  <konqueror@gmx.de>

	* java/awt/image/RasterOp.java:
	Fixed wrong formatting.

From-SVN: r98368
2005-04-19 04:34:40 +00:00
Roman Kennke deb760e4ea 2005-04-18 Roman Kennke <roman@kennke.org>
* java/awt/Compmonent.java
	(setComponentOrientation): Made this property firing a
	PropertyChangeEvent.

From-SVN: r98349
2005-04-18 20:52:24 +00:00
Roman Kennke 3556836fc7 2005-04-18 Roman Kennke <roman@kennke.org>
* java/awt/BorderLayout.java
	(calcSize): Check for overflow when component sizes are added.

From-SVN: r98347
2005-04-18 20:47:01 +00:00
Robert Schuster f5373caf4e AWTEvent.java (toString): Added case for source not being an AWT component.
2005-04-18  Robert Schuster <thebohemian@gmx.net>

	* java/awt/AWTEvent.java (toString): Added case
	for source not being an AWT component.

From-SVN: r98346
2005-04-18 20:40:34 +00:00
Michael Koch 0bf80dae8a CubicCurve2D.java, [...]: Fixed mentioning of Brian Gouph.
2005-04-18  Michael Koch  <konqueror@gmx.de>

	* java/awt/geom/CubicCurve2D.java,
	java/awt/geom/QuadCurve2D.java:
	Fixed mentioning of Brian Gouph.

From-SVN: r98340
2005-04-18 19:11:36 +00:00
Mark Wielaard f5e002ce85 natRuntime.cc (insertSystemProperties): Set java.class.path to CLASSPATH if not already set.
* java/lang/natRuntime.cc (insertSystemProperties): Set
       java.class.path to CLASSPATH if not already set.

From-SVN: r98099
2005-04-13 16:46:47 +00:00
Andrew Haley 58bf803e6c bytearray.java: New file.
2005-04-06  Andrew Haley  <aph@redhat.com>

	* testsuite/libjava.lang/bytearray.java: New file.
	* testsuite/libjava.lang/bytearray.out: New file.
	* java/lang/ClassLoader.java (loadClassFromSig): Declare
	(loadClass): Use it.
	* java/lang/natClassLoader.cc (loadClassFromSig): New method.

From-SVN: r97756
2005-04-06 22:30:01 +00:00
Bryce McKinlay e3eff25ac1 natLogger.cc (getCallerStackFrame): Don't crash on NULL klass and meth values from _Jv_StackTrace::GetCallerInfo().
2005-04-06  Bryce McKinlay  <mckinlay@redhat.com>

	* java/util/logging/natLogger.cc (getCallerStackFrame): Don't crash
	on NULL klass and meth values from _Jv_StackTrace::GetCallerInfo().

From-SVN: r97739
2005-04-06 18:42:23 +01:00
Thomas Fitzsimmons c33b7bf04a re PR libgcj/20750 (libgcj needs a --with-java-home configure option)
2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* doc/install.texi (Configuration): Document --with-java-home.

2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/20750
	* Makefile.am (AM_CXXFLAGS): Define JAVA_HOME.
	* Makefile.in: Regenerate.
	* configure.ac: Add --with-java-home option.
	* configure: Regenerate.
	* external/Makefile.in: Regenerate.
	* external/sax/Makefile.in: Regenerate.
	* external/w3c_dom/Makefile.in: Regenerate.
	* gcj/Makefile.in: Regenerate.
	* include/Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.
	* java/lang/natRuntime.cc (insertSystemProperties): Set java.home
	to JAVA_HOME macro.

From-SVN: r97671
2005-04-05 23:46:09 +00:00
Tom Tromey 8b6e769053 jni.cc (_Jv_JNI_GetAnyFieldID): Throw ClassNotFoundException.
* jni.cc (_Jv_JNI_GetAnyFieldID): Throw ClassNotFoundException.
	* java/lang/reflect/natMethod.cc (_Jv_GetTypesFromSignature):
	Rewrote to use _Jv_FindClassFromSignature.
	* verify.cc (resolve): throw NoClassDefFoundError.
	* link.cc (resolve_field): Throw NoClassDefFoundError.
	(find_field): Likewise.
	* prims.cc (_Jv_FindClassFromSignature): Removed recursion.
	Handle error cases.  Added 'endp' argument.
	* include/jvm.h (_Jv_FindClassFromSignature): Updated prototype.

From-SVN: r97660
2005-04-05 22:26:26 +00:00
Tom Tromey 6a5d24d70d ClassLoader.java (loadClass): Resolve class even if it was already found.
* java/lang/ClassLoader.java (loadClass): Resolve class even if
	it was already found.

From-SVN: r97565
2005-04-04 18:40:24 +00:00
Tom Tromey 5261518d34 URL.java (DEFAULT_SEARCH_PATH): Added org.metastatic.jessie.
* java/net/URL.java (DEFAULT_SEARCH_PATH): Added
	org.metastatic.jessie.

From-SVN: r97560
2005-04-04 18:00:53 +00:00
Anthony Green 2be74e4108 re PR libgcj/20727 (double free or corruption)
2005-04-02  Anthony Green  <green@redhat.com>

        PR libgcj/20727
        * java/nio/DirectByteBufferImpl.java: Fix buffer ownership bug.

From-SVN: r97479
2005-04-03 08:08:59 +00:00
Thomas Fitzsimmons b6121641fc re PR libgcj/20090 (gij should be implemented in Java)
2005-04-01  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gcj.texi (Invoking gij): Add descriptions of new -X options.
	Mention recognized-and-ignored compatibility options.
	(Memory allocation): Add descriptions of JvMalloc, JvRealloc and
	JvFree.
	(About CNI): Add Memory allocation section.

2005-04-01  Thomas Fitzsimmons  <fitzsim@redhat.com>

	PR libgcj/20090, PR libgcj/20526
	* gij.cc (nonstandard_opts_help): New function.
	(add_option): New function.
	(main): Support java options.  Set java.class.path.  Don't set
	_Jv_Jar_Class_Path.
	* prims.cc (parse_x_arg): New function.
	(parse_init_args): Call parse_x_arg for -X and _ options, when
	ignoreUnrecognized is true.
	(new _Jv_RunMain): New vm_args variant.
	(old _Jv_RunMain): Call new vm_args _Jv_RunMain.
	(_Jv_Jar_Class_Path): Remove variable.
	* include/java-props.h: Likewise.
	* include/cni.h (JvRealloc): New function.
	* include/jvm.h (_Jv_RunMain): Declare vm_args variant.
	* java/lang/natRuntime.cc (insertSystemProperties): Remove
	_Jv_Jar_Class_Path logic.  Use JV_VERSION and JV_API_VERSION
	macros.
	* configure.ac (JV_VERSION): Define.
	(JV_API_VERSION): Likewise.
	* configure: Regenerate.
	* include/config.h.in: Regenerate.

From-SVN: r97429
2005-04-02 02:26:51 +00:00