This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Spring and the fly likes Passing in an empty String as a constructor arg value for a bean where the underlying property is an Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Passing in an empty String as a constructor arg value for a bean where the underlying property is an" Watch "Passing in an empty String as a constructor arg value for a bean where the underlying property is an" New topic
Author

Passing in an empty String as a constructor arg value for a bean where the underlying property is an

Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Hi all,

I've got a bean, e.g.



Where the corresponding class:



and the ExternalExceptionDefinition class is an enum:



Does anyone know what the behaviour should be? We don't get any errors which surprises me.


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3268

Apparently it's null
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Passing in an empty String as a constructor arg value for a bean where the underlying property is an
 
Similar Threads
Enum accessing PRoblem
switch using enum : error !
Accessing external Spring config file from Plain Servlet
use a bean with a constructor in spring
Define enum as Spring Bean and dependency inject it into another Spring Bean