[JBoss JIRA] (ROASTER-117) Cannot set supertype with nested generics
by George Gastaldi (Jira)
[ https://issues.jboss.org/browse/ROASTER-117?page=com.atlassian.jira.plugi... ]
George Gastaldi reopened ROASTER-117:
-------------------------------------
> Cannot set supertype with nested generics
> -----------------------------------------
>
> Key: ROASTER-117
> URL: https://issues.jboss.org/browse/ROASTER-117
> Project: Roaster
> Issue Type: Bug
> Components: JDT
> Affects Versions: 2.19.4.…
[View More]Final
> Reporter: Stefan Brötz
> Assignee: Kai Müller
> Priority: Major
> Fix For: 2.20.7.Final
>
>
> Calling javaClassSource.setSuperType("SomeClass<java.util.Map<String,SomeOtherClass>>") throws a java.lang.StringIndexOutOfBoundsException:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -15
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:317)
> at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:192)
> at myTest(...)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 2 months
[JBoss JIRA] (ROASTER-131) Config file not applied when using CLI
by George Gastaldi (Jira)
[ https://issues.jboss.org/browse/ROASTER-131?page=com.atlassian.jira.plugi... ]
George Gastaldi reassigned ROASTER-131:
---------------------------------------
Assignee: George Gastaldi
> Config file not applied when using CLI
> --------------------------------------
>
> Key: ROASTER-131
> URL: https://issues.jboss.org/browse/ROASTER-131
> Project: Roaster
> Issue Type: Enhancement
> Reporter: …
[View More]Gunnar Morling
> Assignee: George Gastaldi
> Priority: Major
>
> I'm using the CLI (roaster.sh) to format some source files, but it doesn't apply the given Eclipse formatter file (passed via -c). As per roaster's output it should have worked, but clearly it's using a different configuration, e.g. in my XML config file I'm mandating to only use spaces for indentation, whereas the file is indented with tabs after roaster ran. Note the config itself can't be the problem, as it's applied as expected when ran through Spotless.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 2 months
[JBoss JIRA] (ROASTER-131) Config file not applied when using CLI
by George Gastaldi (Jira)
[ https://issues.jboss.org/browse/ROASTER-131?page=com.atlassian.jira.plugi... ]
George Gastaldi commented on ROASTER-131:
-----------------------------------------
[~gunnar.morling] the configuration file should be a valid properties file for it to work correctly. I'll have a look if I can change it to support XML files as the configuration file instead
> Config file not applied when using CLI
> --------------------------------------
>
> Key: ROASTER-131
> …
[View More] URL: https://issues.jboss.org/browse/ROASTER-131
> Project: Roaster
> Issue Type: Enhancement
> Reporter: Gunnar Morling
> Priority: Major
>
> I'm using the CLI (roaster.sh) to format some source files, but it doesn't apply the given Eclipse formatter file (passed via -c). As per roaster's output it should have worked, but clearly it's using a different configuration, e.g. in my XML config file I'm mandating to only use spaces for indentation, whereas the file is indented with tabs after roaster ran. Note the config itself can't be the problem, as it's applied as expected when ran through Spotless.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 2 months
[JBoss JIRA] (ROASTER-117) Cannot set supertype with nested generics
by George Gastaldi (Jira)
[ https://issues.jboss.org/browse/ROASTER-117?page=com.atlassian.jira.plugi... ]
George Gastaldi closed ROASTER-117.
-----------------------------------
Fix Version/s: 2.21.0.Final
Resolution: Done
> Cannot set supertype with nested generics
> -----------------------------------------
>
> Key: ROASTER-117
> URL: https://issues.jboss.org/browse/ROASTER-117
> Project: Roaster
> Issue Type: Bug
> …
[View More]Components: JDT
> Affects Versions: 2.19.4.Final
> Reporter: Stefan Brötz
> Assignee: Kai Müller
> Priority: Major
> Fix For: 2.21.0.Final
>
>
> Calling javaClassSource.setSuperType("SomeClass<java.util.Map<String,SomeOtherClass>>") throws a java.lang.StringIndexOutOfBoundsException:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -15
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:317)
> at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:192)
> at myTest(...)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 2 months
[JBoss JIRA] (ROASTER-117) Cannot set supertype with nested generics
by Kai Müller (Jira)
[ https://issues.jboss.org/browse/ROASTER-117?page=com.atlassian.jira.plugi... ]
Kai Müller reassigned ROASTER-117:
----------------------------------
Assignee: Kai Müller
> Cannot set supertype with nested generics
> -----------------------------------------
>
> Key: ROASTER-117
> URL: https://issues.jboss.org/browse/ROASTER-117
> Project: Roaster
> Issue Type: Bug
> Components: JDT
> Affects …
[View More]Versions: 2.19.4.Final
> Reporter: Stefan Brötz
> Assignee: Kai Müller
> Priority: Major
>
> Calling javaClassSource.setSuperType("SomeClass<java.util.Map<String,SomeOtherClass>>") throws a java.lang.StringIndexOutOfBoundsException:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -15
> at java.lang.String.substring(String.java:1967)
> at org.jboss.forge.roaster.model.util.Types.isGeneric(Types.java:317)
> at org.jboss.forge.roaster.model.util.Types.toSimpleName(Types.java:192)
> at myTest(...)
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
[View Less]
6 years, 2 months