You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Ralf Hauser (JIRA)" <ji...@apache.org> on 2013/12/11 09:11:09 UTC

[jira] [Commented] (AXIS2-5333) Weird behaviour of CompilerOptions.setPackageName()

    [ 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org