Product: IDEA
Build: 7126
Evaluator: false
Name: William Poitras
Comment: In IDEA 7.0M2: In a Spring context (or perhaps any DTD based XML file) "[Ljava.lang.String;" is not considered a valid type (in this case as a value for the "type" attribute of a constructor-arg element). The inspection claims: "Cannot resolve class String;" when in fact this is the correct class name for an array of strings. For example:
?xml version="1.0" encoding="UTF-8"?>
>
Country: USA
TimeZone: America/New_York
[Created via e-mail received from: william dot poitras at thomson dot com]
Issue was resolved
If the class has multiple overloaded array-based constructors, a clean solution would be to create a static factory method with some specific name ("createFromStringArray"), and use that in the spring xml. Other refactorings are possible as well.