[forge-issues] [JBoss JIRA] (ROASTER-127) Interface without package in the qualified name
Marco Rizzi (Jira)
issues at jboss.org
Tue Oct 9 12:17:00 EDT 2018
[ https://issues.jboss.org/browse/ROASTER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marco Rizzi updated ROASTER-127:
--------------------------------
Steps to Reproduce: Add the test [testImportInterfaceFromSamePackage|https://github.com/forge/roaster/pull/78/files#diff-1724fc8d820b9f0eec23a5fd27618c61R129] to the [JavaInterfaceTest|https://github.com/forge/roaster/blob/master/tests/src/test/java/org/jboss/forge/test/roaster/model/JavaInterfaceTest.java] on master branch (was: Add the test [testImportInterfaceFromSamePackage|https://github.com/mrizzi/roaster/commit/550c1d5f5acd91c34b2540b99fd91120675598a9#diff-1724fc8d820b9f0eec23a5fd27618c61R129] to the [JavaInterfaceTest|https://github.com/forge/roaster/blob/master/tests/src/test/java/org/jboss/forge/test/roaster/model/JavaInterfaceTest.java] on master branch)
> Interface without package in the qualified name
> -----------------------------------------------
>
> Key: ROASTER-127
> URL: https://issues.jboss.org/browse/ROASTER-127
> Project: Roaster
> Issue Type: Bug
> Affects Versions: 2.20.0.Final
> Reporter: Marco Rizzi
> Assignee: Marco Rizzi
> Priority: Major
>
> I have the interface
> {code:java}
> package com.foo.forge;
> public interface MyInterface {}
> {code}
> and the class
> {code:java}
> package com.foo.forge;
> public class MockClass implements MyInterface {}
> {code}
> so they're in the same package .
> The [org.jboss.forge.roaster.model.InterfaceCapable#getInterfaces|https://github.com/forge/roaster/blob/master/api/src/main/java/org/jboss/forge/roaster/model/InterfaceCapable.java#L19] method returns only the value {{MyInterface}} instead of {{com.foo.forge.MyInterface}}.
> I created a fix for this together with a test in the linked PR https://github.com/forge/roaster/pull/78
> Thanks,
> Marco
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the forge-issues
mailing list