• Post Reply Bookmark Topic Watch Topic
  • New Topic

Chapter 6 sorting example of Core JSF needs to be fixed for JDK 8  RSS feed

 
Himai Minh
Ranch Hand
Posts: 1563
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, if you use JDK 8, you have to implement some more methods in java.util.Comparator as the following.
The code provided are from JDK 6 or 7.


For the nullFirst, nullLast and etc methods, you have to remove static modifier for those methods.
References:
https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!