You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Daniel Kuffner (Created) (JIRA)" <ji...@apache.org> on 2011/09/28 14:09:45 UTC
[jira] [Created] (FELIX-3136) Endless loop:
JavaClassDescriptorManager.getJavaClassDescription()
Endless loop: JavaClassDescriptorManager.getJavaClassDescription()
------------------------------------------------------------------
Key: FELIX-3136
URL: https://issues.apache.org/jira/browse/FELIX-3136
Project: Felix
Issue Type: Bug
Components: SCR Annotations
Affects Versions: scr generator 1.1.2
Reporter: Daniel Kuffner
I try to use the Felix SCR generator library in a intellij plugin. I
created subclass the JavaClassDescriptorManager to return the sources
for the current build module. I have more or less copy cat the code
form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
will go into a endless loop if I return a source file which doesn't have a Component annotation.
The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
398 while ( result == null && index < javaClasses.length )
399 {
400 final JavaClass javaClass = javaClasses[index];
401 if ( javaClass.getFullyQualifiedName().equals( className ) )
402 {
// <SNIP> NO loop break condition in case javaClass is not annotated.
424 }
425 else
426 {
427 index++;
428 }
429 }
I think by increasing the index always would resolve the bug.
Addtional Information:
parse JavaDoc tags disabled
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (FELIX-3136) Endless loop:
JavaClassDescriptorManager.getJavaClassDescription()
Posted by "Daniel Kuffner (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kuffner updated FELIX-3136:
----------------------------------
Description:
I try to use the Felix SCR generator library in a intellij plugin. I
created subclass the JavaClassDescriptorManager to return the sources
for the current build module. I have more or less copy cat the code
form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
will go into a endless loop if I return a source file which doesn't have a Component annotation.
The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
{code}
398 while ( result == null && index < javaClasses.length )
399 {
400 final JavaClass javaClass = javaClasses[index];
401 if ( javaClass.getFullyQualifiedName().equals( className ) )
402 {
// <SNIP> NO loop break condition in case javaClass is not annotated.
424 }
425 else
426 {
427 index++;
428 }
429 }
{code}
I think by increasing the index always would resolve the bug.
Addtional Information:
parse JavaDoc tags disabled
was:
I try to use the Felix SCR generator library in a intellij plugin. I
created subclass the JavaClassDescriptorManager to return the sources
for the current build module. I have more or less copy cat the code
form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
will go into a endless loop if I return a source file which doesn't have a Component annotation.
The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
398 while ( result == null && index < javaClasses.length )
399 {
400 final JavaClass javaClass = javaClasses[index];
401 if ( javaClass.getFullyQualifiedName().equals( className ) )
402 {
// <SNIP> NO loop break condition in case javaClass is not annotated.
424 }
425 else
426 {
427 index++;
428 }
429 }
I think by increasing the index always would resolve the bug.
Addtional Information:
parse JavaDoc tags disabled
> Endless loop: JavaClassDescriptorManager.getJavaClassDescription()
> ------------------------------------------------------------------
>
> Key: FELIX-3136
> URL: https://issues.apache.org/jira/browse/FELIX-3136
> Project: Felix
> Issue Type: Bug
> Components: SCR Annotations
> Affects Versions: scr generator 1.1.2
> Reporter: Daniel Kuffner
>
> I try to use the Felix SCR generator library in a intellij plugin. I
> created subclass the JavaClassDescriptorManager to return the sources
> for the current build module. I have more or less copy cat the code
> form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
> will go into a endless loop if I return a source file which doesn't have a Component annotation.
> The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
> {code}
> 398 while ( result == null && index < javaClasses.length )
> 399 {
> 400 final JavaClass javaClass = javaClasses[index];
> 401 if ( javaClass.getFullyQualifiedName().equals( className ) )
> 402 {
> // <SNIP> NO loop break condition in case javaClass is not annotated.
> 424 }
> 425 else
> 426 {
> 427 index++;
> 428 }
> 429 }
> {code}
> I think by increasing the index always would resolve the bug.
> Addtional Information:
> parse JavaDoc tags disabled
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (FELIX-3136) Endless loop:
JavaClassDescriptorManager.getJavaClassDescription()
Posted by "Carsten Ziegeler (Assigned) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler reassigned FELIX-3136:
---------------------------------------
Assignee: Carsten Ziegeler
> Endless loop: JavaClassDescriptorManager.getJavaClassDescription()
> ------------------------------------------------------------------
>
> Key: FELIX-3136
> URL: https://issues.apache.org/jira/browse/FELIX-3136
> Project: Felix
> Issue Type: Bug
> Components: SCR Annotations
> Affects Versions: scr generator 1.1.2
> Reporter: Daniel Kuffner
> Assignee: Carsten Ziegeler
>
> I try to use the Felix SCR generator library in a intellij plugin. I
> created subclass the JavaClassDescriptorManager to return the sources
> for the current build module. I have more or less copy cat the code
> form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
> will go into a endless loop if I return a source file which doesn't have a Component annotation.
> The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
> 398 while ( result == null && index < javaClasses.length )
> 399 {
> 400 final JavaClass javaClass = javaClasses[index];
> 401 if ( javaClass.getFullyQualifiedName().equals( className ) )
> 402 {
> // <SNIP> NO loop break condition in case javaClass is not annotated.
> 424 }
> 425 else
> 426 {
> 427 index++;
> 428 }
> 429 }
> I think by increasing the index always would resolve the bug.
> Addtional Information:
> parse JavaDoc tags disabled
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (FELIX-3136) Endless loop:
JavaClassDescriptorManager.getJavaClassDescription()
Posted by "Carsten Ziegeler (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler closed FELIX-3136.
-----------------------------------
> Endless loop: JavaClassDescriptorManager.getJavaClassDescription()
> ------------------------------------------------------------------
>
> Key: FELIX-3136
> URL: https://issues.apache.org/jira/browse/FELIX-3136
> Project: Felix
> Issue Type: Bug
> Components: Maven SCR Plugin, SCR Annotations
> Affects Versions: maven-scr-plugin-1.7.2, scr ant task 1.1.2, scr generator 1.1.2
> Reporter: Daniel Kuffner
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.7.4, scr ant task 1.1.4, scr generator 1.1.4
>
>
> I try to use the Felix SCR generator library in a intellij plugin. I
> created subclass the JavaClassDescriptorManager to return the sources
> for the current build module. I have more or less copy cat the code
> form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
> will go into a endless loop if I return a source file which doesn't have a Component annotation.
> The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
> 398 while ( result == null && index < javaClasses.length )
> 399 {
> 400 final JavaClass javaClass = javaClasses[index];
> 401 if ( javaClass.getFullyQualifiedName().equals( className ) )
> 402 {
> // <SNIP> NO loop break condition in case javaClass is not annotated.
> 424 }
> 425 else
> 426 {
> 427 index++;
> 428 }
> 429 }
> I think by increasing the index always would resolve the bug.
> Addtional Information:
> parse JavaDoc tags disabled
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (FELIX-3136) Endless loop:
JavaClassDescriptorManager.getJavaClassDescription()
Posted by "Carsten Ziegeler (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved FELIX-3136.
-------------------------------------
Resolution: Fixed
Many thanks for reporting this Daniel!
I fixed the problem in revision 1176879 - a possible workaround for you is to turn on parseJavadocs.
> Endless loop: JavaClassDescriptorManager.getJavaClassDescription()
> ------------------------------------------------------------------
>
> Key: FELIX-3136
> URL: https://issues.apache.org/jira/browse/FELIX-3136
> Project: Felix
> Issue Type: Bug
> Components: Maven SCR Plugin, SCR Annotations
> Affects Versions: maven-scr-plugin-1.7.2, scr ant task 1.1.2, scr generator 1.1.2
> Reporter: Daniel Kuffner
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.7.4, scr ant task 1.1.4, scr generator 1.1.4
>
>
> I try to use the Felix SCR generator library in a intellij plugin. I
> created subclass the JavaClassDescriptorManager to return the sources
> for the current build module. I have more or less copy cat the code
> form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
> will go into a endless loop if I return a source file which doesn't have a Component annotation.
> The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
> 398 while ( result == null && index < javaClasses.length )
> 399 {
> 400 final JavaClass javaClass = javaClasses[index];
> 401 if ( javaClass.getFullyQualifiedName().equals( className ) )
> 402 {
> // <SNIP> NO loop break condition in case javaClass is not annotated.
> 424 }
> 425 else
> 426 {
> 427 index++;
> 428 }
> 429 }
> I think by increasing the index always would resolve the bug.
> Addtional Information:
> parse JavaDoc tags disabled
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (FELIX-3136) Endless loop:
JavaClassDescriptorManager.getJavaClassDescription()
Posted by "Carsten Ziegeler (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler updated FELIX-3136:
------------------------------------
Component/s: Maven SCR Plugin
Affects Version/s: maven-scr-plugin-1.7.2
scr ant task 1.1.2
Fix Version/s: scr generator 1.1.4
scr ant task 1.1.4
maven-scr-plugin-1.7.4
> Endless loop: JavaClassDescriptorManager.getJavaClassDescription()
> ------------------------------------------------------------------
>
> Key: FELIX-3136
> URL: https://issues.apache.org/jira/browse/FELIX-3136
> Project: Felix
> Issue Type: Bug
> Components: Maven SCR Plugin, SCR Annotations
> Affects Versions: maven-scr-plugin-1.7.2, scr ant task 1.1.2, scr generator 1.1.2
> Reporter: Daniel Kuffner
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.7.4, scr ant task 1.1.4, scr generator 1.1.4
>
>
> I try to use the Felix SCR generator library in a intellij plugin. I
> created subclass the JavaClassDescriptorManager to return the sources
> for the current build module. I have more or less copy cat the code
> form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
> will go into a endless loop if I return a source file which doesn't have a Component annotation.
> The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
> 398 while ( result == null && index < javaClasses.length )
> 399 {
> 400 final JavaClass javaClass = javaClasses[index];
> 401 if ( javaClass.getFullyQualifiedName().equals( className ) )
> 402 {
> // <SNIP> NO loop break condition in case javaClass is not annotated.
> 424 }
> 425 else
> 426 {
> 427 index++;
> 428 }
> 429 }
> I think by increasing the index always would resolve the bug.
> Addtional Information:
> parse JavaDoc tags disabled
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (FELIX-3136) Endless loop:
JavaClassDescriptorManager.getJavaClassDescription()
Posted by "Daniel Kuffner (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kuffner updated FELIX-3136:
----------------------------------
Description:
I try to use the Felix SCR generator library in a intellij plugin. I
created subclass the JavaClassDescriptorManager to return the sources
for the current build module. I have more or less copy cat the code
form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
will go into a endless loop if I return a source file which doesn't have a Component annotation.
The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
398 while ( result == null && index < javaClasses.length )
399 {
400 final JavaClass javaClass = javaClasses[index];
401 if ( javaClass.getFullyQualifiedName().equals( className ) )
402 {
// <SNIP> NO loop break condition in case javaClass is not annotated.
424 }
425 else
426 {
427 index++;
428 }
429 }
I think by increasing the index always would resolve the bug.
Addtional Information:
parse JavaDoc tags disabled
was:
I try to use the Felix SCR generator library in a intellij plugin. I
created subclass the JavaClassDescriptorManager to return the sources
for the current build module. I have more or less copy cat the code
form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
will go into a endless loop if I return a source file which doesn't have a Component annotation.
The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
{code}
398 while ( result == null && index < javaClasses.length )
399 {
400 final JavaClass javaClass = javaClasses[index];
401 if ( javaClass.getFullyQualifiedName().equals( className ) )
402 {
// <SNIP> NO loop break condition in case javaClass is not annotated.
424 }
425 else
426 {
427 index++;
428 }
429 }
{code}
I think by increasing the index always would resolve the bug.
Addtional Information:
parse JavaDoc tags disabled
> Endless loop: JavaClassDescriptorManager.getJavaClassDescription()
> ------------------------------------------------------------------
>
> Key: FELIX-3136
> URL: https://issues.apache.org/jira/browse/FELIX-3136
> Project: Felix
> Issue Type: Bug
> Components: SCR Annotations
> Affects Versions: scr generator 1.1.2
> Reporter: Daniel Kuffner
>
> I try to use the Felix SCR generator library in a intellij plugin. I
> created subclass the JavaClassDescriptorManager to return the sources
> for the current build module. I have more or less copy cat the code
> form the ANT SCR. It seems like that the JavaClassDescriptorManager.getJavaClassDescription method
> will go into a endless loop if I return a source file which doesn't have a Component annotation.
> The problem seems to be in the while loop of the getJavaClassDescription method. The index variable will not increased.
> 398 while ( result == null && index < javaClasses.length )
> 399 {
> 400 final JavaClass javaClass = javaClasses[index];
> 401 if ( javaClass.getFullyQualifiedName().equals( className ) )
> 402 {
> // <SNIP> NO loop break condition in case javaClass is not annotated.
> 424 }
> 425 else
> 426 {
> 427 index++;
> 428 }
> 429 }
> I think by increasing the index always would resolve the bug.
> Addtional Information:
> parse JavaDoc tags disabled
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira