cforster / theme-park-project

An assignment about theme park queues
0 stars 11 forks source link

Unchecked #21

Closed c15rl closed 10 years ago

c15rl commented 10 years ago

What is "unchecked" in the class Queue?

cforster commented 10 years ago

this has to do with the creation of an array of a generic type, specifically you cannot do that in java. honestly, I don't understand why, I think it is a weakness in java. That 'unchecked' makes java do it anyway. This was how people suggested solving the problem.

Here is more information. http://stackoverflow.com/questions/529085/how-to-generic-array-creation

I basically think it is a java bug. java developers say it is a security feature. bug-feature