[forge-issues] [JBoss JIRA] (ROASTER-23) Forge JavaParser does not support Wildcard Imports "org.jboss.forge.*"
Kai Müller (Jira)
issues at jboss.org
Wed Jan 23 13:32:00 EST 2019
[ https://issues.jboss.org/browse/ROASTER-23?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kai Müller reassigned ROASTER-23:
---------------------------------
Assignee: Kai Müller
> Forge JavaParser does not support Wildcard Imports "org.jboss.forge.*"
> ----------------------------------------------------------------------
>
> Key: ROASTER-23
> URL: https://issues.jboss.org/browse/ROASTER-23
> Project: Roaster
> Issue Type: Enhancement
> Reporter: Lincoln Baxter III
> Assignee: Kai Müller
> Priority: Major
> Fix For: 2.x Future
>
>
> The JavaParser Annotation.getQualifiedName() will return "Column" instead of "javax.persistence.Column" for the following example class scenario. It should be able to understand the wildcard, given the proper metadata:
> {code}package demo.entities;
> import javax.persistence.*;
> @Entity
> public class Contact implements java.io.Serializable {
> @Id
> private @GeneratedValue(strategy = GenerationType.AUTO)
> @Column(name = "id", updatable = false, nullable = false)
> Long id = null;
> @Version
> private @Column(name = "version")
> int version = 0;
> public Long getId() {
> return this.id;
> }
> public void setId(final Long id) {
> this.id = id;
> }
> public int getVersion() {
> return this.version;
> }
> public void setVersion(final int version) {
> this.version = version;
> }
> @Override
> public boolean equals(Object that) {
> if (this == that) {
> return true;
> }
> if (that == null) {
> return false;
> }
> if (getClass() != that.getClass()) {
> return false;
> }
> if (id != null) {
> return id.equals(((Contact) that).id);
> }
> return super.equals(that);
> }
> @Override
> public int hashCode() {
> if (id != null) {
> return id.hashCode();
> }
> return super.hashCode();
> }
> private String name;
> public String getName() {
> return this.name;
> }
> public void setName(final String name) {
> this.name = name;
> }
> public String toString() {
> return "" + name;
> }
> }{code}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the forge-issues
mailing list