• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

RequestParam

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

"@RequestParam also comes in handy when you compile your Java code without debugging information compiled in. In that circumstance, the name of the method parameter is lost and so there’s no way to bind the query parameter to the method parameter by convention. For that reason, it’s probably best to always use @RequestParam and not rely too heavily on the convention."

Above is text from Spring in Action from SpringMVC chapter. Can somebody explain me above? I didn't understand what do we mean by " without debugging information compiled in. In that circumstance, the name of the method parameter is lost "

Thanks
 
Ranch Hand
Posts: 37
jQuery Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sure, when you compile your Java code through the JVM, the compiler can add meta-information such as line numbers, the source file name, variable attributes. When we compile through an IDE, usually these settings are turned on because we want to use the IDE debugger. When we go to production, we want to get a performance improvement by not compiling with this additional meta-information.
 
reply
    Bookmark Topic Watch Topic
  • New Topic