[
https://issues.apache.org/jira/browse/CAMEL-14626?focusedWorklogId=414782&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-414782
]
ASF GitHub Bot logged work on CAMEL-14626:
------------------------------------------
Author: ASF GitHub Bot
Created on: 02/Apr/20 15:55
Start Date: 02/Apr/20 15:55
Worklog Time Spent: 10m
Work Description: manonthegithub commented on pull request #3706:
CAMEL-14626 : api maven plugin - Cannot load <T> class
URL: https://github.com/apache/camel/pull/3706
refs #CAMEL-14626
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 414782)
Remaining Estimate: 0h
Time Spent: 10m
> api maven plugin - Cannot load <T> class
> ----------------------------------------
>
> Key: CAMEL-14626
> URL: https://issues.apache.org/jira/browse/CAMEL-14626
> Project: Camel
> Issue Type: Improvement
> Components: build system
> Reporter: Claus Ibsen
> Priority: Major
> Labels: help-wanted
> Fix For: 3.x
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Lets improve this maven plugin to skip classes that are just type ids, eg T
> etc. We can check that the length of the class must be 2+ at least
> [WARNING] Ignoring type parameters <T> for argument type, unable to load
> parametric type argument T
> java.lang.ClassNotFoundException: java.lang.T
> at java.net.URLClassLoader.findClass (URLClassLoader.java:471)
> at java.lang.ClassLoader.loadClass (ClassLoader.java:588)
> at java.lang.ClassLoader.loadClass (ClassLoader.java:521)
> at org.apache.camel.maven.AbstractApiMethodGeneratorMojo.getCanonicalName
> (AbstractApiMethodGeneratorMojo.java:345)
> at jdk.internal.reflect.GeneratedMethodAccessor226.invoke (Unknown Source)
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:566)
> at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke
> (UberspectImpl.java:556)
> at
> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke
> (UberspectImpl.java:539)
> at org.apache.velocity.runtime.parser.node.ASTMethod.execute
> (ASTMethod.java:214)
> at org.apache.velocity.runtime.parser.node.ASTReference.execute
> (ASTReference.java:324)
> at org.apache.velocity.runtime.parser.node.ASTReference.value
> (ASTReference.java:637)
> at org.apache.velocity.runtime.parser.node.ASTExpression.value
> (ASTExpression.java:72)
> at org.apache.velocity.runtime.parser.node.ASTSetDirective.render
> (ASTSetDirective.java:235)
> at org.apache.velocity.runtime.parser.node.ASTBlock.render
> (ASTBlock.java:144)
> at org.apache.velocity.runtime.directive.Foreach.renderBlock
> (Foreach.java:306)
> at org.apache.velocity.runtime.directive.Foreach.render (Foreach.java:276)
> at org.apache.velocity.runtime.parser.node.ASTDirective.render
> (ASTDirective.java:295)
> at org.apache.velocity.runtime.parser.node.SimpleNode.render
> (SimpleNode.java:423)
> at org.apache.velocity.Template.merge (Template.java:357)
> at org.apache.velocity.Template.merge (Template.java:262)
> at org.apache.camel.maven.AbstractGeneratorMojo.mergeTemplate
> (AbstractGeneratorMojo.java:161)
> at org.apache.camel.maven.AbstractApiMethodGeneratorMojo.executeInternal
> (AbstractApiMethodGeneratorMojo.java:83)
> at org.apache.camel.maven.ApiComponentGeneratorMojo.executeInternal
> (ApiComponentGeneratorMojo.java:87)
> at org.apache.camel.maven.AbstractGeneratorMojo.execute
> (AbstractGeneratorMojo.java:103)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)