PicoContainer

greedy non-public constructors are prefered over public constructors leading to IllegalAccessExceptions [patch]

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.0
  • Fix Version/s: 1.1
  • Component/s: PicoContainer (Java)
  • Labels:
    None
  • Number of attachments :
    1

Description

After introducing allowNonPublicClasses feature, a problem occurs whenever a class has a non-public satisfiable constructor accepting more parameters than the greediest public constructor and the CICA is running in normal (allowNonPublicClasses==false) mode. The non-public constructor is selected and IllegalAccessException occurs.

I've created a patch that ensures that only public constructors are considered as matching in allowNonPublicClasses==false mode.

Issue Links

Activity

Hide
Rafal Krzewski added a comment -

a patch that fixes the problem.

Show
Rafal Krzewski added a comment - a patch that fixes the problem.
Hide
Joerg Schaible added a comment -

Already fixed.

Show
Joerg Schaible added a comment - Already fixed.
Hide
Rafal Krzewski added a comment -

Ah, I see it was fixed on the trunk. How about applying my patch on PICOCONTAINER_RELEASE_1_0_BRANCH and releasing pico 1.0.1?

Show
Rafal Krzewski added a comment - Ah, I see it was fixed on the trunk. How about applying my patch on PICOCONTAINER_RELEASE_1_0_BRANCH and releasing pico 1.0.1?
Hide
Joerg Schaible added a comment -

There's also a released pico-1.1-beta-1. Can you use it?
In any case I would apply the (compatible) changes from HEAD, since I run in a maintenace nightmare otherwise.

Show
Joerg Schaible added a comment - There's also a released pico-1.1-beta-1. Can you use it? In any case I would apply the (compatible) changes from HEAD, since I run in a maintenace nightmare otherwise.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: