[JBoss JIRA] (ROASTER-23) Forge JavaParser does not support Wildcard Imports "org.jboss.forge.*"
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-23?page=com.atlassian.jira.plugin... ]
George Gastaldi moved FORGE-922 to ROASTER-23:
----------------------------------------------
Project: Roaster (was: Forge)
Key: ROASTER-23 (was: FORGE-922)
Component/s: (was: Parsers / File Manipulation)
Fix Version/s: 2.x Future
(was: 2.x Future)
> 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
> Security Level: Public(Everyone can see)
> Reporter: Lincoln Baxter III
> 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
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (FORGE-1941) addon-build-and-install command doesn't understand ~ with a home dir.
by Daniel Cunha (JIRA)
Daniel Cunha created FORGE-1941:
-----------------------------------
Summary: addon-build-and-install command doesn't understand ~ with a home dir.
Key: FORGE-1941
URL: https://issues.jboss.org/browse/FORGE-1941
Project: Forge
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Addon Manager
Reporter: Daniel Cunha
[soro]$ addon-build-and-install --projectRoot ~/Tools/workspace/addon-deltaspike
***ERROR*** No project found in root /home/soro/.m2/repository/org/jboss/forge/forge-distribution/2.7.1-SNAPSHOT/~/Tools/workspace/addon-deltaspi
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months