[
https://issues.apache.org/jira/browse/AXIS2-5333?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845172#comment-13845172
]
Ralf Hauser commented on AXIS2-5333:
------------------------------------
in CompilerOptions.java, the testValue() had the unlucky regex
Pattern.compile("^(\\w+\\.)+$");
that asks for a trailing dot.
Furthermore, it would be helpful, if the error message cites the package name
found
throw new
RuntimeException(SchemaCompilerMessages.getMessage("schema.unsupportedvalue")+"
\""+packageName+"\"");
> Weird behaviour of CompilerOptions.setPackageName()
> ---------------------------------------------------
>
> Key: AXIS2-5333
> URL: https://issues.apache.org/jira/browse/AXIS2-5333
> Project: Axis2
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.6.2
> Reporter: St Sch
> Labels: ADB, CompilerOptions, setPackageName
> Fix For: 1.7.0
>
>
> 1st issue:
> CompilerOptions.setPackageName("com.example") comes up with the following
> error:
> java.lang.RuntimeException: Unsupported value!
> Package name = "com.example." works fine (please notice the . in the end).
> This is very misleading especially since setMapperClassPackage() would accept
> the package name "com.example".
> setPackageName() calls testValue(), setMapperClassPackage doesn't.
> = = = = =
> 2nd issue:
> Although I set package name to "com.example" the class files are generated to
> com.example.axis2.apache.org.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]