This commit is contained in:
jfrijters 2004-02-06 19:09:32 +00:00
Родитель a5f8b9e0f5
Коммит 114c36f5ff
3 изменённых файлов: 49 добавлений и 4 удалений

Просмотреть файл

@ -262,7 +262,19 @@ public class JVM
noJniStubs = nojni;
foreach(string r in references)
{
Assembly.LoadFrom(r);
try
{
if(Assembly.LoadFrom(r) == null)
{
Console.Error.WriteLine("Error: reference not found: {0}", r);
return;
}
}
catch(Exception x)
{
Console.Error.WriteLine("Error: invalid reference: {0} ({1})", r, x.Message);
return;
}
}
Hashtable h = new Hashtable();
Console.WriteLine("Parsing class files");

Просмотреть файл

@ -2,5 +2,32 @@ package gnu.java.net;
public class PlainSocketImpl extends java.net.PlainSocketImpl
{
public int getNativeFD() { throw new NoSuchMethodError("Not supported"); }
/**
* Indicates whether a channel initiated whatever operation
* is being invoked on this socket.
*/
private boolean inChannelOperation;
/**
* Indicates whether we should ignore whether any associated
* channel is set to non-blocking mode. Certain operations
* throw an <code>IllegalBlockingModeException</code> if the
* associated channel is in non-blocking mode, <i>except</i>
* if the operation is invoked by the channel itself.
*/
public final boolean isInChannelOperation()
{
return inChannelOperation;
}
/**
* Sets our indicator of whether an I/O operation is being
* initiated by a channel.
*/
public final void setInChannelOperation(boolean b)
{
inChannelOperation = b;
}
public int getNativeFD() { throw new NoSuchMethodError("Not supported"); }
}

Просмотреть файл

@ -139,8 +139,14 @@ class Compiler
}
else if(s.StartsWith("-reference:"))
{
string path = Path.GetDirectoryName(s.Substring(11));
string[] files = Directory.GetFiles(path == "" ? "." : path, Path.GetFileName(s.Substring(11)));
string r = s.Substring(11);
string path = Path.GetDirectoryName(r);
string[] files = Directory.GetFiles(path == "" ? "." : path, Path.GetFileName(r));
if(files.Length == 0)
{
Console.Error.WriteLine("Error: reference not found: {0}", r);
return 1;
}
foreach(string f in files)
{
references.Add(f);