ikvm.runtime(cvs-2008-6-22)-build error(using GNU Classpath)

View: New views
1 Messages — Rating Filter:   Alert me  

ikvm.runtime(cvs-2008-6-22)-build error(using GNU Classpath)

by Hwang YunSong(황윤성) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.


IKVM.Runtime.JNI:

      [csc] Compiling 2 files to '/home/hys545/ikvm/runtime/IKVM.Runtime.JNI.dll'.
     [copy] Copying 1 file to '/home/hys545/ikvm/bin'.
      [csc] Compiling 24 files to '/home/hys545/ikvm/runtime/IKVM.Runtime.dll'.
      [csc] /home/hys545/ikvm/runtime/ByteCodeHelper.cs(258,136): error CS0122: `ikvm.internal.CallerID.create(System.Reflection.MethodBase)' is inaccessible due to its protection level
      [csc] /home/hys545/ikvm/bin/IKVM.GNU.Classpath.dll (Location of the symbol related to previous error)
      [csc] /home/hys545/ikvm/runtime/ByteCodeHelper.cs(266,135): error CS0122: `ikvm.internal.CallerID.create(System.Reflection.MethodBase)' is inaccessible due to its protection level
      [csc] /home/hys545/ikvm/bin/IKVM.GNU.Classpath.dll (Location of the symbol related to previous error)
      [csc] /home/hys545/ikvm/runtime/ByteCodeHelper.cs(274,183): error CS0122: `ikvm.internal.CallerID.create(System.Reflection.MethodBase)' is inaccessible due to its protection level
      [csc] /home/hys545/ikvm/bin/IKVM.GNU.Classpath.dll (Location of the symbol related to previous error)
      [csc] Compilation failed: 3 error(s), 0 warnings

BUILD FAILED - 0 non-fatal error(s), 6 warning(s)

/home/hys545/ikvm/runtime/runtime.build(52,10):
External Program Failed: /usr/lib/mono/2.0/gmcs.exe (return code was 1)

Total time: 5.7 seconds.

I fixed classpath/ikvm/internal/CallerID.java

62c62
< //@ikvm.lang.Internal
---
> @ikvm.lang.Internal
68c68
< // @ikvm.lang.Internal
---
> @ikvm.lang.Internal


//@ikvm.lang.Internal
    public static CallerID create(cli.System.Diagnostics.StackFrame frame)
    {
 return create(frame.GetMethod());
    }

// @ikvm.lang.Internal
    public static CallerID create(final cli.System.Reflection.MethodBase method)
    {
 return new CallerID() {
     Class GetClass() {
  if (method == null) {
      // this happens if a native thread attaches and calls back into Java
      return null;
  }
  Type type = method.get_DeclaringType();
  if (type == null) {
      // TODO we probably should return a class corresponding to
      throw new InternalError();
  }
  return ikvm.runtime.Util.getClassFromTypeHandle(type.get_TypeHandle());
     }
     ClassLoader GetClassLoader() {
  if (method == null) {
      // this happens if a native thread attaches and calls back into Java
      return null;
  }
  Assembly asm = method.get_Module().get_Assembly();
  return GetAssemblyClassLoader(asm);
     }
 };
    }





http://www.dreamwiz.com/

  
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Ikvm-developers mailing list
Ikvm-developers@...
https://lists.sourceforge.net/lists/listinfo/ikvm-developers