walterDurin / stickycode

Automatically exported from code.google.com/p/stickycode
Apache License 2.0
0 stars 1 forks source link

When configuring arrays the string constructor and value of coercions don't work #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
public class Something {
@Configured
Bean[] beans;

}
public class Bean {
 public Bean(String value) {
 }
}
What is the expected output? What do you see instead?
something.beans=a,b,c

should produce 3 beans in the array with values a, b and c

What version of the product are you using? On what operating system?
net.stickycode.composite:sticky-composite-logging-api:jar:1.3:compile
net.stickycode.configured:sticky-configured-api:jar:2.4:compile
net.stickycode:sticky-coercion-api:jar:2.7:compile
net.stickycode:sticky-exception:jar:1.6:compile
net.stickycode:sticky-stereotype:jar:1.10:compile

Please provide any additional information below.
It works for lists and sets

Original issue reported on code.google.com by mich...@redengine.co.nz on 26 Feb 2012 at 11:44

GoogleCodeExporter commented 9 years ago
Was in test scope so here are the rest of the versions (Mockwire 6.2)
net.stickycode.composite:sticky-composite-guice3:jar:1.1:test
net.stickycode.composite:sticky-composite-logging-deploy:jar:1.4:test
net.stickycode.composite:sticky-composite-unittest:jar:1.7:test
net.stickycode.configured:sticky-configured-guice3:jar:1.12:test
net.stickycode.configured:sticky-configured:jar:3.6:test
net.stickycode.mockwire:sticky-mockwire-api:jar:5.5:test
net.stickycode.mockwire:sticky-mockwire-guice3:jar:1.6:test
net.stickycode.mockwire:sticky-mockwire-mockito:jar:3.2:test
net.stickycode.mockwire:sticky-mockwire:jar:6.2:test
net.stickycode:sticky-coercion:jar:3.5:test
net.stickycode:sticky-reflector:jar:1.7:test

Original comment by mich...@redengine.co.nz on 26 Feb 2012 at 11:51

GoogleCodeExporter commented 9 years ago
sticky-coercion-3.6.jar fixes this issue

Original comment by mccallum...@gmail.com on 27 Feb 2012 at 6:53