Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why Enum introduced in 5 called "Typesafe Enum" ?

 
Salil Vverma
Ranch Hand
Posts: 257
Hibernate Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any thoughts why Enum introduced in 5 called "Typesafe Enum" ?
what type of type safty issue does it resolve?

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read Beware of Java typesafe enumerations and More on typesafe enums to understand the problem Enum solves.
 
Ninad Kulkarni
Ranch Hand
Posts: 802
Hibernate Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@ Ulf
Both links are very helpful
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic