You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ben Sommerville (JIRA)" <ta...@jakarta.apache.org> on 2006/11/11 04:50:37 UTC
[jira] Created: (TAPESTRY-1147) AjaxShellDelegate will only
compile/run under Java 6
AjaxShellDelegate will only compile/run under Java 6
----------------------------------------------------
Key: TAPESTRY-1147
URL: http://issues.apache.org/jira/browse/TAPESTRY-1147
Project: Tapestry
Issue Type: Bug
Components: Framework
Affects Versions: 4.1.1
Reporter: Ben Sommerville
Priority: Minor
AjaxShellDelegate will only compile (& run) under Java 6 because it uses a new method on String that was introduced in Java 6.
Line 92 calls String.isEmpty() when checking the contents of Locale.getCountry()
dojoConfig.put("locale", locale.getLanguage().toLowerCase()
+ ((locale.getCountry() != null && !locale.getCountry().isEmpty())
? "-" + locale.getCountry().toLowerCase()
: ""));
Changing the check to length() > 0 fixes the problem
dojoConfig.put("locale", locale.getLanguage().toLowerCase()
+ ((locale.getCountry() != null && locale.getCountry().length() > 0)
? "-" + locale.getCountry().toLowerCase()
: ""));
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Resolved: (TAPESTRY-1147) AjaxShellDelegate will only
compile/run under Java 6
Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
[ http://issues.apache.org/jira/browse/TAPESTRY-1147?page=all ]
Jesse Kuhnert resolved TAPESTRY-1147.
-------------------------------------
Fix Version/s: 4.1.1
Resolution: Fixed
Assignee: Jesse Kuhnert
> AjaxShellDelegate will only compile/run under Java 6
> ----------------------------------------------------
>
> Key: TAPESTRY-1147
> URL: http://issues.apache.org/jira/browse/TAPESTRY-1147
> Project: Tapestry
> Issue Type: Bug
> Components: Framework
> Affects Versions: 4.1.1
> Reporter: Ben Sommerville
> Assigned To: Jesse Kuhnert
> Priority: Minor
> Fix For: 4.1.1
>
>
> AjaxShellDelegate will only compile (& run) under Java 6 because it uses a new method on String that was introduced in Java 6.
> Line 92 calls String.isEmpty() when checking the contents of Locale.getCountry()
> dojoConfig.put("locale", locale.getLanguage().toLowerCase()
> + ((locale.getCountry() != null && !locale.getCountry().isEmpty())
> ? "-" + locale.getCountry().toLowerCase()
> : ""));
> Changing the check to length() > 0 fixes the problem
> dojoConfig.put("locale", locale.getLanguage().toLowerCase()
> + ((locale.getCountry() != null && locale.getCountry().length() > 0)
> ? "-" + locale.getCountry().toLowerCase()
> : ""));
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org