Commit 6c531b05 by Tom Tromey Committed by Tom Tromey

ResourceBundle.java (trySomeGetBundle): Removed debugging prints.

	* java/util/ResourceBundle.java (trySomeGetBundle): Removed
	debugging prints.

From-SVN: r35859
parent 6315f068
2000-08-21 Tom Tromey <tromey@cygnus.com>
* java/util/ResourceBundle.java (trySomeGetBundle): Removed
debugging prints.
Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com> Sun Aug 20 21:02:48 2000 Anthony Green <green@redhat.com>
* java/lang/natSystem.cc (init_properties): Change sourceware * java/lang/natSystem.cc (init_properties): Change sourceware
......
/* Copyright (C) 1998, 1999 Free Software Foundation /* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj. This file is part of libgcj.
...@@ -115,26 +115,22 @@ public abstract class ResourceBundle ...@@ -115,26 +115,22 @@ public abstract class ResourceBundle
} }
// Look for a properties file. // Look for a properties file.
{ InputStream i =
String prop_name = (bundleName.replace('.', '/') + ".properties"); ClassLoader.getSystemResourceAsStream (bundleName.replace ('.', '/')
System.out.println ("trying '" + prop_name + "' for '" + bundleName); + ".properties");
InputStream i = ClassLoader.getSystemResourceAsStream (prop_name); if (i != null)
/* {
InputStream i = try
ClassLoader.getSystemResourceAsStream (bundleName.replace ('.', '/') {
+ ".properties");
*/
if (i != null)
{
try {
return new PropertyResourceBundle (i); return new PropertyResourceBundle (i);
} catch (java.io.IOException e) { }
catch (java.io.IOException e)
{
// The docs don't appear to define what happens in // The docs don't appear to define what happens in
// this case, but it seems like continuing the // this case, but it seems like continuing the
// search is a reasonable thing to do. // search is a reasonable thing to do.
} }
} }
}
if (bundleName.equals(stopHere)) if (bundleName.equals(stopHere))
return result; return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment