[JBoss JIRA] (FORGE-2679) Improve text displayed by the Forge CLI
by Charles Moulliard (JIRA)
[ https://issues.jboss.org/browse/FORGE-2679?page=com.atlassian.jira.plugin... ]
Charles Moulliard reassigned FORGE-2679:
----------------------------------------
Assignee: Charles Moulliard
> Improve text displayed by the Forge CLI
> ---------------------------------------
>
> Key: FORGE-2679
> URL: https://issues.jboss.org/browse/FORGE-2679
> Project: Forge
> Issue Type: Enhancement
> Reporter: Charles Moulliard
> Assignee: Charles Moulliard
>
> The forge client is not really verbose or explicit to mention how to :
> - Leave the client
> - Access documentation about the different commands
> I propose, like for Karaf console, that we enhance the text displayed
> {code}
> forge
> Using Forge at /Users/chmoulli/MyApplications/forge-3.1.0.Final
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |__/
> JBoss Forge, version [ 3.1.0.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
> Hit '<tab>' for a list of available commands
> and 'man [cmd]' for help on a specific command.
> To quit the shell, type 'exit'.
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (FORGE-2679) Improve text displayed by the Forge CLI
by Charles Moulliard (JIRA)
[ https://issues.jboss.org/browse/FORGE-2679?page=com.atlassian.jira.plugin... ]
Work on FORGE-2679 started by Charles Moulliard.
------------------------------------------------
> Improve text displayed by the Forge CLI
> ---------------------------------------
>
> Key: FORGE-2679
> URL: https://issues.jboss.org/browse/FORGE-2679
> Project: Forge
> Issue Type: Enhancement
> Reporter: Charles Moulliard
> Assignee: Charles Moulliard
>
> The forge client is not really verbose or explicit to mention how to :
> - Leave the client
> - Access documentation about the different commands
> I propose, like for Karaf console, that we enhance the text displayed
> {code}
> forge
> Using Forge at /Users/chmoulli/MyApplications/forge-3.1.0.Final
> _____
> | ___|__ _ __ __ _ ___
> | |_ / _ \| `__/ _` |/ _ \ \\
> | _| (_) | | | (_| | __/ //
> |_| \___/|_| \__, |\___|
> |__/
> JBoss Forge, version [ 3.1.0.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
> Hit '<tab>' for a list of available commands
> and 'man [cmd]' for help on a specific command.
> To quit the shell, type 'exit'.
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (FORGE-2679) Improve text displayed by the Forge CLI
by Charles Moulliard (JIRA)
Charles Moulliard created FORGE-2679:
----------------------------------------
Summary: Improve text displayed by the Forge CLI
Key: FORGE-2679
URL: https://issues.jboss.org/browse/FORGE-2679
Project: Forge
Issue Type: Enhancement
Reporter: Charles Moulliard
The forge client is not really verbose or explicit to mention how to :
- Leave the client
- Access documentation about the different commands
I propose, like for Karaf console, that we enhance the text displayed
{code}
forge
Using Forge at /Users/chmoulli/MyApplications/forge-3.1.0.Final
_____
| ___|__ _ __ __ _ ___
| |_ / _ \| `__/ _` |/ _ \ \\
| _| (_) | | | (_| | __/ //
|_| \___/|_| \__, |\___|
|__/
JBoss Forge, version [ 3.1.0.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
Hit '<tab>' for a list of available commands
and 'man [cmd]' for help on a specific command.
To quit the shell, type 'exit'.
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 12 months
[JBoss JIRA] (ROASTER-110) StringIndexOutOfBoundsException when handling nested typed parameters
by Bruce Fancher (JIRA)
[ https://issues.jboss.org/browse/ROASTER-110?page=com.atlassian.jira.plugi... ]
Bruce Fancher edited comment on ROASTER-110 at 9/3/16 8:42 PM:
---------------------------------------------------------------
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
was (Author: bfancher):
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
{{
final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
}}
> StringIndexOutOfBoundsException when handling nested typed parameters
> ---------------------------------------------------------------------
>
> Key: ROASTER-110
> URL: https://issues.jboss.org/browse/ROASTER-110
> Project: Roaster
> Issue Type: Bug
> Components: JDT
> Affects Versions: 2.17.1.Final
> Reporter: Bruce Fancher
> Assignee: Stephan Windmüller
> Fix For: 2.17.3.Final
>
>
> When parsing a Type object with nested types, like {{java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>}}, a StringIndexOutOfBoundsException is thrown:
> {{java.lang.StringIndexOutOfBoundsException: String index out of range: -5
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:297)
> at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:311)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:301)}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years
[JBoss JIRA] (ROASTER-110) StringIndexOutOfBoundsException when handling nested typed parameters
by Bruce Fancher (JIRA)
[ https://issues.jboss.org/browse/ROASTER-110?page=com.atlassian.jira.plugi... ]
Bruce Fancher edited comment on ROASTER-110 at 9/3/16 8:41 PM:
---------------------------------------------------------------
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
{{
final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
}}
was (Author: bfancher):
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
{{
final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
}}
> StringIndexOutOfBoundsException when handling nested typed parameters
> ---------------------------------------------------------------------
>
> Key: ROASTER-110
> URL: https://issues.jboss.org/browse/ROASTER-110
> Project: Roaster
> Issue Type: Bug
> Components: JDT
> Affects Versions: 2.17.1.Final
> Reporter: Bruce Fancher
> Assignee: Stephan Windmüller
> Fix For: 2.17.3.Final
>
>
> When parsing a Type object with nested types, like {{java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>}}, a StringIndexOutOfBoundsException is thrown:
> {{java.lang.StringIndexOutOfBoundsException: String index out of range: -5
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:297)
> at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:311)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:301)}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years
[JBoss JIRA] (ROASTER-110) StringIndexOutOfBoundsException when handling nested typed parameters
by Bruce Fancher (JIRA)
[ https://issues.jboss.org/browse/ROASTER-110?page=com.atlassian.jira.plugi... ]
Bruce Fancher edited comment on ROASTER-110 at 9/3/16 8:40 PM:
---------------------------------------------------------------
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
{{
final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
}}
was (Author: bfancher):
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
{{ final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
}}
> StringIndexOutOfBoundsException when handling nested typed parameters
> ---------------------------------------------------------------------
>
> Key: ROASTER-110
> URL: https://issues.jboss.org/browse/ROASTER-110
> Project: Roaster
> Issue Type: Bug
> Components: JDT
> Affects Versions: 2.17.1.Final
> Reporter: Bruce Fancher
> Assignee: Stephan Windmüller
> Fix For: 2.17.3.Final
>
>
> When parsing a Type object with nested types, like {{java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>}}, a StringIndexOutOfBoundsException is thrown:
> {{java.lang.StringIndexOutOfBoundsException: String index out of range: -5
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:297)
> at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:311)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:301)}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years
[JBoss JIRA] (ROASTER-110) StringIndexOutOfBoundsException when handling nested typed parameters
by Bruce Fancher (JIRA)
[ https://issues.jboss.org/browse/ROASTER-110?page=com.atlassian.jira.plugi... ]
Bruce Fancher edited comment on ROASTER-110 at 9/3/16 8:40 PM:
---------------------------------------------------------------
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
{{ final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
}}
was (Author: bfancher):
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setPrivate().setStatic(true).setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
> StringIndexOutOfBoundsException when handling nested typed parameters
> ---------------------------------------------------------------------
>
> Key: ROASTER-110
> URL: https://issues.jboss.org/browse/ROASTER-110
> Project: Roaster
> Issue Type: Bug
> Components: JDT
> Affects Versions: 2.17.1.Final
> Reporter: Bruce Fancher
> Assignee: Stephan Windmüller
> Fix For: 2.17.3.Final
>
>
> When parsing a Type object with nested types, like {{java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>}}, a StringIndexOutOfBoundsException is thrown:
> {{java.lang.StringIndexOutOfBoundsException: String index out of range: -5
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:297)
> at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:311)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:301)}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years
[JBoss JIRA] (ROASTER-110) StringIndexOutOfBoundsException when handling nested typed parameters
by Bruce Fancher (JIRA)
[ https://issues.jboss.org/browse/ROASTER-110?page=com.atlassian.jira.plugi... ]
Bruce Fancher commented on ROASTER-110:
---------------------------------------
I looked at the test case associated w/ the previous issue and I see that the type names are all fully-qualified, whereas they aren't in the line of code I copied over. So it seems that isGeneric works after all.
However, it looks like there are still unresolved issues:
final JavaClassSource javaClass = Roaster.create(JavaClassSource.class).setPackage("com.scratch").setName("Example");
final MethodSource<JavaClassSource> method = javaClass.addMethod().setPrivate().setStatic(true).setName("createMap").setReturnType("java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -15
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:194)
at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:221)
at org.jboss.forge.roaster.model.impl.MethodImpl.setReturnType(MethodImpl.java:328)
> StringIndexOutOfBoundsException when handling nested typed parameters
> ---------------------------------------------------------------------
>
> Key: ROASTER-110
> URL: https://issues.jboss.org/browse/ROASTER-110
> Project: Roaster
> Issue Type: Bug
> Components: JDT
> Affects Versions: 2.17.1.Final
> Reporter: Bruce Fancher
> Assignee: Stephan Windmüller
> Fix For: 2.17.3.Final
>
>
> When parsing a Type object with nested types, like {{java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>}}, a StringIndexOutOfBoundsException is thrown:
> {{java.lang.StringIndexOutOfBoundsException: String index out of range: -5
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:297)
> at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:311)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:301)}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years
[JBoss JIRA] (ROASTER-110) StringIndexOutOfBoundsException when handling nested typed parameters
by Bruce Fancher (JIRA)
[ https://issues.jboss.org/browse/ROASTER-110?page=com.atlassian.jira.plugi... ]
Bruce Fancher commented on ROASTER-110:
---------------------------------------
The cloned issue says this was fixed in 2.17.3.Final, but I'm using 2.19.0.Final and running the example line of code from ROASTER-85 still causes an exception to be thrown:
Types.isGeneric("Map<String,Map<java.lang.String,Map<java.lang.String,java.lang.String>>");
java.lang.StringIndexOutOfBoundsException: String index out of range: -21
at java.lang.String.substring(String.java:1955)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:304)
at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:324)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:314)
at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:324)
at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:314)
> StringIndexOutOfBoundsException when handling nested typed parameters
> ---------------------------------------------------------------------
>
> Key: ROASTER-110
> URL: https://issues.jboss.org/browse/ROASTER-110
> Project: Roaster
> Issue Type: Bug
> Components: JDT
> Affects Versions: 2.17.1.Final
> Reporter: Bruce Fancher
> Assignee: Stephan Windmüller
> Fix For: 2.17.3.Final
>
>
> When parsing a Type object with nested types, like {{java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>>}}, a StringIndexOutOfBoundsException is thrown:
> {{java.lang.StringIndexOutOfBoundsException: String index out of range: -5
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:297)
> at org.jboss.forge.roaster.model.util.Types.validateNameWithGenerics(Types.java:311)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:301)}}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
9 years