[JBoss JIRA] (FORGE-935) ResourceFactory incorrectly handles specific resources
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-935?page=com.atlassian.jira.plugin.... ]
George Gastaldi closed FORGE-935.
---------------------------------
Resolution: Done
Fixed
> ResourceFactory incorrectly handles specific resources
> ------------------------------------------------------
>
> Key: FORGE-935
> URL: https://issues.jboss.org/browse/FORGE-935
> Project: Forge
> Issue Type: Bug
> Components: Resources API
> Affects Versions: 2.0.0.Alpha4
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Priority: Critical
> Fix For: 2.0.0.Alpha5
>
>
> When ResourceFactory.create(Object) is called and the argument is a File pointing to a *.java file, I expect a JavaResource object to be returned, however, a FileResource is returned instead.
> It appears that the algorithm is not deterministic, since I've seen it return JavaResource sometimes.
> The following failling test illustrates it:
> {code}
> @Test
> public void testJavaResourceCreationSpecialized() throws Exception
> {
> JavaClass javaClass = JavaParser.create(JavaClass.class).setPackage("org.jboss.forge.test").setName("Example");
> JavaResource resource = factory.create(JavaResource.class, File.createTempFile("forge", ".java"));
> resource.createNewFile();
> resource.setContents(javaClass);
> Resource<File> newResource = factory.create(resource.getUnderlyingResourceObject());
> Assert.assertThat(newResource, is(instanceOf(JavaResource.class)));
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months
[JBoss JIRA] (FORGE-935) ResourceFactory incorrectly handles specific resources
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-935?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-935:
----------------------------------
Fix Version/s: 2.0.0.Alpha5
(was: 1.x Future)
> ResourceFactory incorrectly handles specific resources
> ------------------------------------------------------
>
> Key: FORGE-935
> URL: https://issues.jboss.org/browse/FORGE-935
> Project: Forge
> Issue Type: Bug
> Components: Resources API
> Affects Versions: 2.0.0.Alpha4
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Priority: Critical
> Fix For: 2.0.0.Alpha5
>
>
> When ResourceFactory.create(Object) is called and the argument is a File pointing to a *.java file, I expect a JavaResource object to be returned, however, a FileResource is returned instead.
> It appears that the algorithm is not deterministic, since I've seen it return JavaResource sometimes.
> The following failling test illustrates it:
> {code}
> @Test
> public void testJavaResourceCreationSpecialized() throws Exception
> {
> JavaClass javaClass = JavaParser.create(JavaClass.class).setPackage("org.jboss.forge.test").setName("Example");
> JavaResource resource = factory.create(JavaResource.class, File.createTempFile("forge", ".java"));
> resource.createNewFile();
> resource.setContents(javaClass);
> Resource<File> newResource = factory.create(resource.getUnderlyingResourceObject());
> Assert.assertThat(newResource, is(instanceOf(JavaResource.class)));
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months
[JBoss JIRA] (FORGE-935) ResourceFactory incorrectly handles specific resources
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-935?page=com.atlassian.jira.plugin.... ]
George Gastaldi reassigned FORGE-935:
-------------------------------------
Assignee: George Gastaldi
> ResourceFactory incorrectly handles specific resources
> ------------------------------------------------------
>
> Key: FORGE-935
> URL: https://issues.jboss.org/browse/FORGE-935
> Project: Forge
> Issue Type: Bug
> Components: Resources API
> Affects Versions: 2.0.0.Alpha4
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Priority: Critical
> Fix For: 1.x Future
>
>
> When ResourceFactory.create(Object) is called and the argument is a File pointing to a *.java file, I expect a JavaResource object to be returned, however, a FileResource is returned instead.
> It appears that the algorithm is not deterministic, since I've seen it return JavaResource sometimes.
> The following failling test illustrates it:
> {code}
> @Test
> public void testJavaResourceCreationSpecialized() throws Exception
> {
> JavaClass javaClass = JavaParser.create(JavaClass.class).setPackage("org.jboss.forge.test").setName("Example");
> JavaResource resource = factory.create(JavaResource.class, File.createTempFile("forge", ".java"));
> resource.createNewFile();
> resource.setContents(javaClass);
> Resource<File> newResource = factory.create(resource.getUnderlyingResourceObject());
> Assert.assertThat(newResource, is(instanceOf(JavaResource.class)));
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months
[JBoss JIRA] (FORGE-936) UIValidationContext should allow warning messages
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-936?page=com.atlassian.jira.plugin.... ]
George Gastaldi updated FORGE-936:
----------------------------------
Fix Version/s: 2.x Future
Affects Version/s: 2.0.0.Alpha4
Component/s: UI - Eclipse
UI - IntelliJ IDEA
> UIValidationContext should allow warning messages
> -------------------------------------------------
>
> Key: FORGE-936
> URL: https://issues.jboss.org/browse/FORGE-936
> Project: Forge
> Issue Type: Enhancement
> Components: UI - Eclipse, UI - IntelliJ IDEA
> Affects Versions: 2.0.0.Alpha4
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> There are some messages that would be nice to be displayed to the user given a specific state inside a UICommand (UIWizard and UIWizardStep as well) that do not interfere with the current flow.
> These messages should only be displayed when no errors are visible.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months
[JBoss JIRA] (FORGE-936) UIValidationContext should allow warning messages
by George Gastaldi (JIRA)
George Gastaldi created FORGE-936:
-------------------------------------
Summary: UIValidationContext should allow warning messages
Key: FORGE-936
URL: https://issues.jboss.org/browse/FORGE-936
Project: Forge
Issue Type: Enhancement
Reporter: George Gastaldi
There are some messages that would be nice to be displayed to the user given a specific state inside a UICommand (UIWizard and UIWizardStep as well) that do not interfere with the current flow.
These messages should only be displayed when no errors are visible.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
10 years, 11 months