glassfish
  1. glassfish
  2. GLASSFISH-15146

InjectionManager.inject doesn't handle PostConstruct methods properly

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: naming
    • Labels:
      None

      Description

      The InjectionManagerImpl.inject method takes a boolean that controls whether postConstruct
      methods are called. Fortunately, most of the time it's called with "false". I think the
      only time it's called with "true" is when injecting an app client main class.

      If called with true, the PostConstruct invocation logic ignores method overriding and may call
      PostConstruct methods that shouldn't be called, or may call the same method more than once.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            guojun.shan
            Reporter:
            Bill Shannon
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: