0
votes

I am porting android code into BlackBerry..

Below is my android code snippet..

 public Vector<InMapping> INMSGMAPPING;
 public Vector<InMapping> getINMSGMAPPING() {
    return INMSGMAPPING;
}

The above code giving fallowing error:

 generics are not supported in -source 1.3
 [exec] (use -source 5 or higher to enable generics)

I know above error happening because Generics are not allowed in BlackBerry..

Is there any alternate that I can achieve the same functionality in BlackBerry.

Thanks.

1
Generics is not supported in blackberry..... - BBdev

1 Answers

2
votes

Use Vectors, and cast to whatever class you want in elements retrieving