BUG Community

Welcome! Log In

Forums BUG SDK Not using source level 5.0?

Subscribe to Not using source level 5.0?  9 posts, 6 voices

Log in to reply to this topic
 
May 29, 2009 12:08am
User_img_not_found_04_med syriven 7 posts

I’m trying to use ArrayLists, but when I do something like the following line:

ArrayList<String> strings = new ArrayList<String>();

it says the following:

Syntax error, parameterized types are only available if source level is 5.0.

I googled the error, and I’ve read that I need to make sure that the source level is at least 5.0. I go to Window > Preferences > Java > Compiler, but the source level is already 6.0. Am I missing something? It’s saying that the souce level needs to be at least 5.0, but the source level is at least 5.0.

May 29, 2009 12:10am
User_img_not_found_04_med syriven 7 posts

Of course I figure something out as soon as I post that.

Above where you can select the source level in Window > Preferences > Java > Compiler, there is a “Configure project specific settings” link. I clicked on that, and the project is at source level 1.4. Is there a reason that it’s like this by default?

Edit: Changing the project specific source level to 5.0 or above still doesn’t completely fix the problem; the error message changes to:

The type ArrayList is not generic; it cannot be parameterized with arguments <String>

May 29, 2009 1:00pm
Medium Bug Labs team bballantine 56 posts

Hi syriven –

Right now we are tied to Java 1.4 because we’re running PhoneME Advanced Personal on BUG which is mostly Java 1.4 compatible with a few mobile-specific libs.

There’s a long story behind this, but essentially PhoneME satisfies a few requirements that other JVMs don’t.  The three main requirements are, it is open source, it can be built for ARM, and it is reasonably speedy for Java on an embedded system.

There are a couple of other JVM options if you’d like to get Java 5 functionality on there.  We’ve gotten Cacao + GNU Classpath running on the BUG for some of our business customers and we’re working on OpenJDK for our BUG 1.5 release.

For your specific question, you just need to use the ArrayList in the old-skool way which is to cast the entries when you pull them out:

ArrayList strings = new ArrayList() strings.add("Hello World!"); String helloWorld = (String) strings.get(0);

 

 

May 29, 2009 11:16pm
User_img_not_found_04_med syriven 7 posts

Thanks, bbalantine! The so-dubbed old-skool way is working fine for me.

Aug 14, 2012 2:02am
User_img_not_found_06_med rubing 103 posts

Isn’t it funny how we www.coachfactorystoreec.com/ Coach Factory Store always want what we can’t have? The girl with the round and pert backside wishes that her rear were 5 times smaller. Meanwhile, the girl with the non existent posterior wishes to achieve a larger butt. Well, if the grass is greener on the other side, just water yours! If you’ve got a small behind, you can create the illusion of a larger one with butt enhancing jeans. Here’s how to do it. Look for light weight denim – This material is very stiff and heavy. If you try to stuff a flat butt into denim jeans, it will only create a flatter looking behind. A little stretch goes a long way – Your butt enhancing jeans should additionally contain some stretch. A mixture of 98 percent cotton and 2 percent lycra is best. This combination of lycra and cotton, especially when it’s in a nice tight-weave fabric that’s fitted through the hip and thigh area will help lift your buttocks. Too much lycra and your jeans may start to ripple like a pair of leggings. If there’s not enough cotton content, there won’t be enough structure to hold you up. It’s all in the pockets – The most effective trick for creating the illusion of a bigger butt is to choose jeans with flap pockets. The added bulk of the flap will enhance and add dimension to your tiny tush. True Religion is notoriously famous for their flap pocket designs. You can also try Hudson, Rock & Republic, Frankie B and Paige for addition flap pocket styles. Pocket placement – If you’re not a fan of flap pockets, or if you’ve already bought too many of them, you can also try denim with regular pockets. Be sure to aim for a pair with smaller pockets that sit higher and this will help make your rear look lifted. Cut is also important – Look for jeans with a slight tapering at www.coachfactoryonliness.com/ Coach Factory Online the knee, such as a straight leg or skinny style. This cut will make your bum look a bit larger in comparison to the rest of your body. Great styles to try are True Religion Billy, Julie or Stella, Siwy Harmah or Rose, and Hudson Emily or Paige. How low can you go – Actually, you don’t want to go too low when it comes to the jean rise. The goal is to project more, not less. A pair of low rise denim will only reduce the size of your rear. Instead, opt for a pair with a medium rise. Color me right – Since dark colors minimize, dark denim and indigo will create a slimming effect. You do not want this kind of effect on your barely there behind! Try to find light colored or medium blue denim. Grey is very flattering and will also work. Like a great bra, butt enhancing jeans can also lift and www.coachfactoryoutletusa.com/ Coach Factory Outlet separate what little you have. So it wasn’t in your genes to have a nice, round bottom. Big deal. Be happy with what you’ve got and just improvise!

Aug 17, 2012 8:26pm
User_img_not_found_05_med shenghuo 86 posts

http://www.greatlouisvuittonsbags.com/ louis vuitton Handbags
http://www.louisvuittonpursebags.org/ Louis Vuitton Bags
http://www.louisvuittonsonlineshop.org/ Louis Vuitton Outlet Online
http://www.hermesoutletsus.net/ hermes outlet
http://www.cheap-suprashoe.net/ cheap supra shoes
http://www.officiallouisvuittonzones.net/ louis vuitton outlet

Oct 24, 2012 1:11am
User_img_not_found_01_med qazqazqaz 469 posts

As a perfect combination of classic and modern fashion,Coach Outlet Online Julia Bags can show the customers'unique personality.Tiffany UK grabbed the globe, stands out as the celeb on their favorite stars luxury type, granted an innovative simple move the pavement luxury, complete with luxury.In terms of the quality and superior design that make more and more customers are satisfied to Coach Factory Online.Welcome!hat experts claim Coach Outlet Online shopping is in the changes they are available in.As long as you open our Coach Factory Outlet webpage, you will view various Coach New Arrivals which are the most popular also the most fashionable in this year.On the date when the Louis Vuitton UK on sale, all people will pour into the stores. At this time, it on the booths will be wiped out, and only one or two days the seller will declare that there is no stock anymore.

Oct 24, 2012 3:53am
User_img_not_found_01_med qazqazqaz 469 posts

Remember that the right accessories can enhance your alluring look with your Canada Goose Parkas Outlet.Baggy, ovoid shaped Canada Goose Jackets Outlet that are rounded around the shoulders look fabulous and can be a perfect match for you.This excellent conviction so that you class gets to amateur Canada Goose Outlet In a number of Parka, for example Young Canada Goose affordable Cardigan.Luxury has always been synonymous with fur and leather and this year a faux fur Canada Goose Jackets Outlet will surely be the key piece of your wardrobe.

Oct 31, 2012 3:06am
User_img_not_found_01_med yiyi 74 posts

hiring someone to kill someone else, especially another high-profile doctor,”
police Capt. Jon Caspell told ABCNews.com.Dixon and Shepard have both both cheap jordan shoes both been
arrested and are being held on first-degree murder but Caspell said the charges
could eventually be upgraded to to designer replica handbags to capital
murder charges.”We’ve never come across anything like this,” said. “Regardless
of who they are, we’re going to have have

cheap jordan
shoes

have to handle it like any other homicide case.”Both men being
held on $10 million bonds. Neither man has entered entered moncler jackets men
entered a plea yet. Lubbock attorney Dan Hurley is representing Hurley was
unavailable for comment when ABCNews.com called him, but but

cheap jordan shoes

but
he told the Amarillo Globe-News that Dixon “intends to this” and that the
“allegations are untrue.”Court records do not not replica designer handbags not list a
lawyer for Shepard. Sage Stallone’s Family Meets CoronerHomicide Divison Now
Looking into Sage Stallone’s DeathBy SHEILA MARIKAR MARIKAR cheap jorda