Compilation Error - Missing Return Statement

Monkey Targets Forums/Android/Compilation Error - Missing Return Statement

Zwer99(Posted 2011) [#1]
Hello!

Today I tried to compile my game onto an Android phone and got following error:

C:\Monkey\Android\BunnyHopp\Main.build\android\src\com\monkey\MonkeyGame.java:2959: missing return statement


I looked into the MonkeyGame.java file, searched line number 2959 and landed in this method

public int bbm_Compare(Object bbt_lhs,Object bbt_rhs){
		bb_std_lang.pushErr();
	}


What am I doing wrong? thank you very much!! :)


muddy_shoes(Posted 2011) [#2]
At a guess you've called Sort on an instance of the base Monkey list.

In theory Monkey should never produce code that causes a compile error in the target language though, so it's also a bug in Monkey.


Zwer99(Posted 2011) [#3]
No, I don't sort any list...

I'll post it into the Bug-Forum