Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

native and strictfp

 
ramya ray
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
native and strictfp modifiers can not be used simultaneously AM I RIGHT?
I am cnforming as it is not specifically mentioned any where.
 
Matt Russell
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ramya ray:
native and strictfp modifiers can not be used simultaneously AM I RIGHT?

Oh yes. To quote the JLS:
"A compile-time error occurs if a method declaration that contains the keyword native also contains strictfp."
http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.4.3
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic