[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-dev
Subject:    [jira] [Commented] (AXIS2-5333) Weird behaviour of CompilerOptions.setPackageName()
From:       "Ralf Hauser (JIRA)" <jira () apache ! org>
Date:       2013-12-11 8:11:09
Message-ID: JIRA.12558418.1338290842766.16078.1386749469060 () arcas
[Download RAW message or body]


    [ 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic