0
我在Java中繼承CCSprites一個問題,我發佈了一些在這裏的代碼,CCSprites類在android中強制拋出異常?
public class Block extends CCSprite
{
static Block temp=null;
...
...
static Block newBlock(tetrominoTypes blockType)
{
temp = (Block) Block.sprite(filename); // class cast exception here
}
return temp;
}
...... }
類投厚望發生在運行時,我怎樣才能解決這個問題如果有人知道意味着幫助我。