Created
May 20, 2012 01:06
-
-
Save kmizu/2733056 to your computer and use it in GitHub Desktop.
あからさまに言語仕様に違反しています、なコードで萎えた。何故これがビルド通るはずのタグつけられたところに置いてあるんだよ…。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Foo.java:4: エラー: aValueはFooでprivateアクセスされます | |
return aValue == foo.aValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Foo<T extends Foo<T>> { | |
private int aValue; | |
public boolean lessThan(T foo) { | |
return aValue == foo.aValue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment