在java 6中,以下行编译但是在Java 7中我得到了一个不兼容的类型错误(见下文)。任何想法在这里发生了什么?
Player player = new FPlayer();
player.setId("SomeString");
player.setWId(123456, "SomeString");
Key<Player> keyForPlayer = ofy().save().entity(player).now();
获取编译时错误
incompatible types
required: com.googlecode.objectify.Key<com.XX.XXXXXX.XXXXX.XXXXXX.Player>
found: com.googlecode.objectify.Key<java.lang.Object>