Accessing static members on type variables
    Remi Forax 
    forax at univ-mlv.fr
       
    Fri Apr  4 07:59:43 UTC 2014
    
    
  
On 04/04/2014 09:54 AM, Raffaele Sgarro wrote:
> Consider the following code (ideone <http://ideone.com/GtBQEy>):
>
> class  Outer{
>    public  static  final  String  FIELD=  "Success!";
> }
>
> class  Test<Textends  Outer>{
>    public  String  test()  {
>      return  T.FIELD;
>    }  
> }
> Does the JSL allow a type variable T to be used to access static 
> members of its upper bound?
No !
Rémi
    
    
More information about the compiler-dev
mailing list