LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Mon Jul 30 17:56:48 CEST 2007
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/07/07 30:17:56

    Added: jop/java/target/src/test/jvm/obj CheckCast.java
    Log:
    add interface checkcast


    Revision Changes Path
    1.1 jop/java/target/src/test/jvm/obj/CheckCast.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/jvm/obj/CheckCast.java?rev=1.1&content-type=text/x-cvsweb-markup

    Index: CheckCast.java
    ===================================================================
    /*
    * Created on 30.07.2005
    *
    */
    package jvm.obj;

    import jvm.TestCase;

    /**
    * @author Martin Schoeberl (martin@j...)
    *
    */
    public class CheckCast extends TestCase implements Runnable {

    public String getName() {
    return "CheckCast";
    }


    public boolean test() {

    boolean ok = true;

    Object o = new CheckCast();
    CheckCast c;
    c = (CheckCast) o;

    // Issue: JOP does not check interfaces on checkcast!
    Runnable r = (Runnable) o;

    return ok;
    }


    public void run() {
    // just dummy to use an interface
    }

    }



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.