Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: <bean autowire="byType"> undocumented feature

  1. #11
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    autowiring is taking place if you use debug information, it isn't if you disable debug information.
    I understand what you mean, but I also know that it is the IDE then that it setting debug information on, or is that the JVM's default if you don't explicitly turn it off.

    Either way, having debug on or off shouldn't affect this, at least in my mind, the side affect or "bug" should be fixed, in my opinion.

    Because I know if it is turned on by default then a huge percentage of production systems act this way.

    Mark

  2. #12
    Join Date
    Feb 2010
    Posts
    12

    Default

    Or worse, don't. Having debug set when testing locally and off when you deploy would be maddening. "But it worked when we tested it and it blows up with a basic configuration issue when we deploy" doesn't seem like it would go over well.

  3. #13
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    If you want it fixed register a JIRA instead of dumping it here.

    The debug information is by default off, at least for variable information so basically it is only an issue if you use an IDE which changes that default. The debug information which is by default on is line numbering and source information not the variable names.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  4. #14
    Join Date
    Feb 2010
    Posts
    12

    Default

    Marten,
    I wasn't trying to "dump" it here. I thought I was doing something wrong rather than finding a bug when I started out!

    I've logged it in JIRA - SPR-6917

  5. #15
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,625

    Default

    Well not sure if it is a bug, rather a side effect from new feature. Thanks for registering the JIRA issue.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  6. #16
    Join Date
    Feb 2010
    Posts
    12

    Default

    For anyone reading this, it was fixed/resolved in 3.0.2. Thanks to Christophe for telling me about that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •