[JBoss JIRA] (ROASTER-77) Introduce JavaClass#isLocalClass()
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-77?page=com.atlassian.jira.plugin... ]
George Gastaldi closed ROASTER-77.
----------------------------------
Assignee: Shoji Kuzukami
Fix Version/s: 2.15.0.Final
Resolution: Done
> Introduce JavaClass#isLocalClass()
> ----------------------------------
>
> Key: ROASTER-77
> URL: https://issues.jboss.org/browse/ROASTER-77
> Project: Roaster
> Issue Type: Enhancement
> Components: API, JDT, Tests
> Affects Versions: 2.14.0.Final
> Environment: Win 8.1 Pro 64bit, Java 8, Eclipse Mars
> Reporter: Shoji Kuzukami
> Assignee: Shoji Kuzukami
> Fix For: 2.15.0.Final
>
>
> Although a local class (JSL 14.3. Local Class Declarations) is not fully supported and located in the Roaster, the Roaster library emits a JavaType object corresponds to a local class in some cases. To avoid these not-supported JavaType objects in my application, I introduced an API 'JavaType#isLocalClass()'.
> It's considered that the API will be required even if the local class specification is fully supported in the Roaster. Therefore this introduction of API will not constraint the design of future API.
> Some tests are applied on the API, then the result seems good.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (ROASTER-77) Introduce JavaClass#isLocalClass()
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-77?page=com.atlassian.jira.plugin... ]
George Gastaldi updated ROASTER-77:
-----------------------------------
Summary: Introduce JavaClass#isLocalClass() (was: JavaType#isLocalClass() is required to avoid some bugs)
> Introduce JavaClass#isLocalClass()
> ----------------------------------
>
> Key: ROASTER-77
> URL: https://issues.jboss.org/browse/ROASTER-77
> Project: Roaster
> Issue Type: Enhancement
> Components: API, JDT, Tests
> Affects Versions: 2.14.0.Final
> Environment: Win 8.1 Pro 64bit, Java 8, Eclipse Mars
> Reporter: Shoji Kuzukami
>
> Although a local class (JSL 14.3. Local Class Declarations) is not fully supported and located in the Roaster, the Roaster library emits a JavaType object corresponds to a local class in some cases. To avoid these not-supported JavaType objects in my application, I introduced an API 'JavaType#isLocalClass()'.
> It's considered that the API will be required even if the local class specification is fully supported in the Roaster. Therefore this introduction of API will not constraint the design of future API.
> Some tests are applied on the API, then the result seems good.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (ROASTER-77) JavaType#isLocalClass() is required to avoid some bugs
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/ROASTER-77?page=com.atlassian.jira.plugin... ]
George Gastaldi updated ROASTER-77:
-----------------------------------
Status: Pull Request Sent (was: Pull Request Sent)
Git Pull Request: https://github.com/forge/roaster/pull/39
> JavaType#isLocalClass() is required to avoid some bugs
> ------------------------------------------------------
>
> Key: ROASTER-77
> URL: https://issues.jboss.org/browse/ROASTER-77
> Project: Roaster
> Issue Type: Enhancement
> Components: API, JDT, Tests
> Affects Versions: 2.14.0.Final
> Environment: Win 8.1 Pro 64bit, Java 8, Eclipse Mars
> Reporter: Shoji Kuzukami
>
> Although a local class (JSL 14.3. Local Class Declarations) is not fully supported and located in the Roaster, the Roaster library emits a JavaType object corresponds to a local class in some cases. To avoid these not-supported JavaType objects in my application, I introduced an API 'JavaType#isLocalClass()'.
> It's considered that the API will be required even if the local class specification is fully supported in the Roaster. Therefore this introduction of API will not constraint the design of future API.
> Some tests are applied on the API, then the result seems good.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FURNACE-59) NPE in Furnace Annotations.getAnnotation()
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FURNACE-59?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FURNACE-59:
-----------------------------------
Description:
Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
{code:java}
testInvalidTypeGet(org.jboss.windup.config.selectables.VariablesTest) Time elapsed: 0.086 sec <<< ERROR!
java.lang.NullPointerException: null
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
{code}
was:
Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
{code:java}
java.lang.NullPointerException: null
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
{code}
> NPE in Furnace Annotations.getAnnotation()
> ------------------------------------------
>
> Key: FURNACE-59
> URL: https://issues.jboss.org/browse/FURNACE-59
> Project: Forge: Furnace
> Issue Type: Bug
> Environment: My dev commit f397ea646
> Reporter: Ondrej Zizka
> Fix For: 2.x Future
>
>
> Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
> {code:java}
> testInvalidTypeGet(org.jboss.windup.config.selectables.VariablesTest) Time elapsed: 0.086 sec <<< ERROR!
> java.lang.NullPointerException: null
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
> at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
> at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
> at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FURNACE-59) NPE in Furnace Annotations.getAnnotation()
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FURNACE-59?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FURNACE-59:
-----------------------------------
Description:
Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
{code:java}
java.lang.NullPointerException: null
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
{code}
was:
Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
java.lang.NullPointerException: null
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
> NPE in Furnace Annotations.getAnnotation()
> ------------------------------------------
>
> Key: FURNACE-59
> URL: https://issues.jboss.org/browse/FURNACE-59
> Project: Forge: Furnace
> Issue Type: Bug
> Environment: My dev commit f397ea646
> Reporter: Ondrej Zizka
> Fix For: 2.x Future
>
>
> Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
> {code:java}
> java.lang.NullPointerException: null
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
> at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
> at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
> at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FURNACE-59) NPE in Furnace Annotations.getAnnotation()
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FURNACE-59?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FURNACE-59:
-----------------------------------
Steps to Reproduce:
{code}
git clone https://github.com/OndraZizka/windup.git
git checkout FORGE-2387
cd windup
mvn clean install
{code}
> NPE in Furnace Annotations.getAnnotation()
> ------------------------------------------
>
> Key: FURNACE-59
> URL: https://issues.jboss.org/browse/FURNACE-59
> Project: Forge: Furnace
> Issue Type: Bug
> Environment: My dev commit f397ea646
> Reporter: Ondrej Zizka
> Fix For: 2.x Future
>
>
> Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
> java.lang.NullPointerException: null
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
> at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
> at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
> at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FURNACE-59) NPE in Furnace Annotations.getAnnotation()
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FURNACE-59?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FURNACE-59:
-----------------------------------
Fix Version/s: 2.x Future
> NPE in Furnace Annotations.getAnnotation()
> ------------------------------------------
>
> Key: FURNACE-59
> URL: https://issues.jboss.org/browse/FURNACE-59
> Project: Forge: Furnace
> Issue Type: Bug
> Environment: My dev commit f397ea646
> Reporter: Ondrej Zizka
> Fix For: 2.x Future
>
>
> Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
> java.lang.NullPointerException: null
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
> at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
> at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
> at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FURNACE-59) NPE in Furnace Annotations.getAnnotation()
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FURNACE-59?page=com.atlassian.jira.plugin... ]
George Gastaldi moved FORGE-2387 to FURNACE-59:
-----------------------------------------------
Project: Forge: Furnace (was: Forge)
Key: FURNACE-59 (was: FORGE-2387)
Issue Type: Bug (was: Feature Request)
> NPE in Furnace Annotations.getAnnotation()
> ------------------------------------------
>
> Key: FURNACE-59
> URL: https://issues.jboss.org/browse/FURNACE-59
> Project: Forge: Furnace
> Issue Type: Bug
> Environment: My dev commit f397ea646
> Reporter: Ondrej Zizka
>
> Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
> java.lang.NullPointerException: null
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
> at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
> at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
> at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
> at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months
[JBoss JIRA] (FORGE-2387) NPE in Furnace Annotations.getAnnotation()
by Ondrej Zizka (JIRA)
Ondrej Zizka created FORGE-2387:
-----------------------------------
Summary: NPE in Furnace Annotations.getAnnotation()
Key: FORGE-2387
URL: https://issues.jboss.org/browse/FORGE-2387
Project: Forge
Issue Type: Feature Request
Environment: My dev commit f397ea646
Reporter: Ondrej Zizka
Annotations.getAnnotation, under some condition, doesn't check the input and throws a NPE. Looks like it happens when there's no declaring class for an annotation type (not sure how that can happen).
java.lang.NullPointerException: null
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:191)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:156)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:134)
at org.jboss.forge.furnace.util.Annotations.getAnnotation(Annotations.java:107)
at org.jboss.windup.graph.GraphContextImpl.initializeTitanIndexes(GraphContextImpl.java:168)
at org.jboss.windup.graph.GraphContextImpl.create(GraphContextImpl.java:78)
at org.jboss.windup.graph.GraphContextFactoryImpl.create(GraphContextFactoryImpl.java:46)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 8 months