<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/eclipse-metrics/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/eclipse-metrics/bugs/</id><updated>2016-07-19T19:24:30.903000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>#19 Invalid input exception</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/19/?limit=25#c4b8" rel="alternate"/><published>2016-07-19T19:24:30.903000Z</published><updated>2016-07-19T19:24:30.903000Z</updated><author><name>Brian Brooks</name><uri>https://sourceforge.net/u/bbrooks/</uri></author><id>https://sourceforge.net5f6552524335c44e973d6e45a5018ed9aa5222e0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I encountered the same defect with Eclipse Mars SP2 (eclipse.buildId=4.5.2.M20160212-1500)...&lt;br/&gt;
metrics plugin version 1.3.8.20100730-001&lt;br/&gt;
java version "1.8.0_66"&lt;/p&gt;
&lt;p&gt;!ENTRY net.sourceforge.metrics 4 4 2016-07-19 14:21:08.935&lt;br/&gt;
!MESSAGE Invalid source in AbstractLinesOfCode&lt;br/&gt;
!STACK 0&lt;br/&gt;
org.eclipse.jdt.core.compiler.InvalidInputException: Invalid_Character_Constant&lt;br/&gt;
        at org.eclipse.jdt.internal.core.util.PublicScanner.getNextToken(PublicScanner.java:1428)&lt;br/&gt;
        at net.sourceforge.metrics.calculators.AbstractLinesOfCode.calculateNumberOfLines(AbstractLinesOfCode.java:75)&lt;br/&gt;
        at net.sourceforge.metrics.calculators.AbstractLinesOfCode.calculate(AbstractLinesOfCode.java:39)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.AbstractMetricSource.invokeCalculators(AbstractMetricSource.java:514)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.AbstractMetricSource.calculate(AbstractMetricSource.java:174)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.AbstractMetricSource.recurse(AbstractMetricSource.java:325)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.Dispatcher.calculateAbstractMetricSource(Dispatcher.java:136)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.TypeMetrics.initializeTypeChildrenMethodPart(TypeMetrics.java:150)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.TypeMetrics.initializeTypeChildren(TypeMetrics.java:98)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.TypeMetrics.initializeChildren(TypeMetrics.java:94)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.AbstractMetricSource.recurse(AbstractMetricSource.java:315)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.Dispatcher.calculateAbstractMetricSource(Dispatcher.java:136)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.CompilationUnitMetrics.initializeChildren(CompilationUnitMetrics.java:101)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.AbstractMetricSource.recurse(AbstractMetricSource.java:315)&lt;br/&gt;
        at net.sourceforge.metrics.core.sources.Dispatcher.calculateAbstractMetricSource(Dispatcher.java:112)&lt;br/&gt;
        at net.sourceforge.metrics.builder.MetricsBuilder$ChangedCommand.execute(MetricsBuilder.java:555)&lt;br/&gt;
        at net.sourceforge.metrics.builder.MetricsBuilder$CalculatorThread.run(MetricsBuilder.java:779)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>fields referenced through 'this' ignored</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/24/" rel="alternate"/><published>2011-12-28T23:37:53Z</published><updated>2011-12-28T23:37:53Z</updated><author><name>Tony Edgin</name><uri>https://sourceforge.net/u/tedgin/</uri></author><id>https://sourceforge.net0ccd0d4b3de82c358d039fb90ac3415a6aa09120</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I just noticed that the fields referenced through the this pointer are ignored in the Henderson-Sellers lack of cohesion measure.&lt;/p&gt;
&lt;p&gt;For instance.&lt;/p&gt;
&lt;p&gt;this.aField; // ignored&lt;br /&gt;
aField; // not ignored&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error prevents Histograms and Dashboard output</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/23/" rel="alternate"/><published>2011-07-08T14:21:48Z</published><updated>2011-07-08T14:21:48Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netd18e35a46857796469d5137472c6047cc99ff63e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When generating HTML output with Histograms and Dashboard selected, I see the following error message:&lt;/p&gt;
&lt;p&gt;"Found class com.sun.image.codec.jpeg.JPEGImageEncoder, but interface was expected"&lt;/p&gt;
&lt;p&gt;and no output is generated.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Angle brackets appear in method name</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/22/" rel="alternate"/><published>2011-07-08T13:31:11Z</published><updated>2011-07-08T13:31:11Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net419c797c5b02c0f73e51a041884a3ae2d3b19ec4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The code I'm analysing includes the following static initializer block:&lt;/p&gt;
&lt;p&gt;static {&lt;br /&gt;
try {&lt;br /&gt;
exportStaticMethods();&lt;br /&gt;
} catch (Exception ex) {&lt;br /&gt;
Log.error(ex.getMessage(), ex);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;This results in the following line in the XML output:&lt;/p&gt;
&lt;p&gt;&amp;lt;method name="&amp;lt;init&amp;gt;" line="46" NLS="1"/&amp;gt;&lt;/p&gt;
&lt;p&gt;The angle brackets in the name are not valid XML (according to Firefox), so the file has to be edited before use.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>incorrect number of classes/types reported </title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/21/" rel="alternate"/><published>2011-06-04T22:36:00Z</published><updated>2011-06-04T22:36:00Z</updated><author><name>Radu Vanciu</name><uri>https://sourceforge.net/u/raduvanciu/</uri></author><id>https://sourceforge.netf62ad10af3232ea8f8163c4e44b720b7e4c5c92a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I used metrics for getting the metrics  of ATMExample, and the number of classes reported  in Summary Statistics is 57.  However, 65 class files are generated when the project is compiled. Also, the file types.csv reports 67 types.&lt;/p&gt;
&lt;p&gt;I found the following duplications in types.csv: &lt;/p&gt;
&lt;p&gt;PACKAGE TYPE    LINE&lt;br /&gt;
banking Receipt$(anonymous)   59&lt;br /&gt;
banking Receipt$1   59&lt;br /&gt;
simulation  SimulatedBank$Failure   236&lt;br /&gt;
simulation  SimulatedBank.Failure   236&lt;/p&gt;
&lt;p&gt;The source code of ATMExample is available here: &lt;a href="http://www.cs.gordon.edu/local/courses/cs211/atmexample.tar" rel="nofollow"&gt;http://www.cs.gordon.edu/local/courses/cs211/atmexample.tar&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>metric computation on full build should run in backgroun</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/20/" rel="alternate"/><published>2010-08-23T14:20:06Z</published><updated>2010-08-23T14:20:06Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net46393ddba08ed10eccaa5e84e58563e0ea88e1b9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;On a large project it takes some time for all metrics to be computed. This appears to be a blocking operation. Is there any reason it can't be offered to run in the background? This is hit, for example, if a metric configuration setting (e.g. a threshold) is changed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Invalid input exception</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/19/" rel="alternate"/><published>2010-06-14T09:18:07Z</published><updated>2010-06-14T09:18:07Z</updated><author><name>Volker Stolz</name><uri>https://sourceforge.net/u/volkersf/</uri></author><id>https://sourceforge.net7358702d620440a38698fc93421718fdeffcde40</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Unfortunately the exception doesn't include on which file.&lt;/p&gt;
&lt;p&gt;org.eclipse.jdt.core.compiler.InvalidInputException: Invalid_Character_Constant&lt;br /&gt;
at org.eclipse.jdt.internal.core.util.PublicScanner.getNextToken(PublicScanner.java:1362)&lt;br /&gt;
at net.sourceforge.metrics.calculators.AbstractLinesOfCode.calculateNumberOfLines(AbstractLinesOfCode.java:74)&lt;br /&gt;
at net.sourceforge.metrics.calculators.AbstractLinesOfCode.calculate(AbstractLinesOfCode.java:39)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.AbstractMetricSource.invokeCalculators(AbstractMetricSource.java:487)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.AbstractMetricSource.calculate(AbstractMetricSource.java:167)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.AbstractMetricSource.recurse(AbstractMetricSource.java:305)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.Dispatcher.calculateAbstractMetricSource(Dispatcher.java:132)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.TypeMetrics.initializeChildren(TypeMetrics.java:79)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.AbstractMetricSource.recurse(AbstractMetricSource.java:297)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.Dispatcher.calculateAbstractMetricSource(Dispatcher.java:132)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.CompilationUnitMetrics.initializeChildren(CompilationUnitMetrics.java:86)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.AbstractMetricSource.recurse(AbstractMetricSource.java:297)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.Dispatcher.calculateAbstractMetricSource(Dispatcher.java:109)&lt;br /&gt;
at net.sourceforge.metrics.builder.MetricsBuilder$ChangedCommand.execute(MetricsBuilder.java:509)&lt;br /&gt;
at net.sourceforge.metrics.builder.MetricsBuilder$CalculatorThread.run(MetricsBuilder.java:713)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Index OOB for inner classes</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/18/" rel="alternate"/><published>2010-06-14T09:16:54Z</published><updated>2010-06-14T09:16:54Z</updated><author><name>Volker Stolz</name><uri>https://sourceforge.net/u/volkersf/</uri></author><id>https://sourceforge.net3b6f22361c9d9fc8e048c483946c9556c96cad97</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;java.lang.ArrayIndexOutOfBoundsException: 0&lt;br /&gt;
at net.sourceforge.metrics.core.sources.CompilationUnitMetrics.addInnerClasses(CompilationUnitMetrics.java:100)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.CompilationUnitMetrics.initializeChildren(CompilationUnitMetrics.java:88)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.AbstractMetricSource.recurse(AbstractMetricSource.java:297)&lt;br /&gt;
at net.sourceforge.metrics.core.sources.Dispatcher.calculateAbstractMetricSource(Dispatcher.java:109)&lt;br /&gt;
at net.sourceforge.metrics.builder.MetricsBuilder$ChangedCommand.execute(MetricsBuilder.java:509)&lt;br /&gt;
at net.sourceforge.metrics.builder.MetricsBuilder$CalculatorThread.run(MetricsBuilder.java:713)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>eclipse 3.5.1</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/17/" rel="alternate"/><published>2010-02-18T18:44:54Z</published><updated>2010-02-18T18:44:54Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net0e322795abf3803c730d0c0f18abe893d99fe4c9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi,&lt;br /&gt;
thanks for writing this code!  my friend sent me some stats and i think it is really useful, so thanks!&lt;/p&gt;
&lt;p&gt;i am running eclipse 3.5.1 on linux and i don't have the 'metrics' option under the project properties (nor under global properties), and as thus, i don't see the metrics in the problems view.&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Index Out Of Bounds thrown for static blocks</title><link href="https://sourceforge.net/p/eclipse-metrics/bugs/16/" rel="alternate"/><published>2009-10-22T13:21:38Z</published><updated>2009-10-22T13:21:38Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net2952f4d7baba9ea27131da45003af3cae2d786e4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This is the root cause of my 'Index Out of R' defect... By tinkering I have found that the writeMethodInfo method of com.stateofflow.eclipse.metrics.export.csv.RowWriter is throwing an index out of bounds exception for static blocks as these have no method name, or more importantly a '(' to search for. My tinkering has shown the return value of methodInfo.getName() in these cases to be &amp;lt;init&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>