зеркало из https://github.com/mono/ikvm-fork.git
*** empty log message ***
This commit is contained in:
Родитель
a5f8b9e0f5
Коммит
114c36f5ff
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче