George Gastaldi created FORGE-2448:
--------------------------------------
Summary: REGRESSION: PackageConverter is not being set
Key: FORGE-2448
URL:
https://issues.jboss.org/browse/FORGE-2448
Project: Forge
Issue Type: Bug
Components: Parsers / File Manipulation
Affects Versions: 2.18.0.Final
Reporter: George Gastaldi
Assignee: George Gastaldi
Priority: Critical
Fix For: 2.18.1.Final
{code}
[Item.java]$ java-new-enum --named CreditCardType --targetPackage ~.model ;
Exception when parsing/running: java-new-enum --named CreditCardType --targetPackage
~.model , Invalid identifier : >~<
java.lang.IllegalArgumentException: Invalid identifier : >~<
at
org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.SimpleName.setIdentifier(SimpleName.java:195)
at
org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.AST.newSimpleName(AST.java:2202)
at org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.AST.newName(AST.java:1929)
at
org.jboss.forge.roaster.model.impl.AbstractJavaSource.setPackage(AbstractJavaSource.java:535)
at
org.jboss.forge.roaster.model.impl.AbstractJavaSource.setPackage(AbstractJavaSource.java:59)
at
org.jboss.forge.addon.parser.java.ui.AbstractJavaSourceCommand.buildJavaSource(AbstractJavaSourceCommand.java:189)
at
org.jboss.forge.addon.parser.java.ui.AbstractJavaSourceCommand.classExists(AbstractJavaSourceCommand.java:159)
at
org.jboss.forge.addon.parser.java.ui.AbstractJavaSourceCommand.access$100(AbstractJavaSourceCommand.java:56)
at
org.jboss.forge.addon.parser.java.ui.AbstractJavaSourceCommand$2.call(AbstractJavaSourceCommand.java:97)
at
org.jboss.forge.addon.parser.java.ui.AbstractJavaSourceCommand$2.call(AbstractJavaSourceCommand.java:89)
at org.jboss.forge.furnace.util.Callables.call(Callables.java:43)
at
org.jboss.forge.addon.ui.impl.input.AbstractInputComponent.isEnabled(AbstractInputComponent.java:99)
at
org.jboss.forge.addon.shell.aesh.AbstractShellInteraction.hasMissingRequiredInputValues(AbstractShellInteraction.java:113)
at
org.jboss.forge.addon.shell.aesh.ShellSingleCommand.promptRequiredMissingValues(ShellSingleCommand.java:60)
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)