Community
Participate
Working Groups
Using I20081118-1720, I got this error running the api tooling performance tests inside my workspace. You have to run them as ui tests since they required the external tool builder to run. java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1938) at org.eclipse.test.internal.performance.InternalPerformanceMeter.printSample(InternalPerformanceMeter.java:139) at org.eclipse.test.internal.performance.InternalPerformanceMeter.commit(InternalPerformanceMeter.java:97) at org.eclipse.test.performance.PerformanceTestCase.commitMeasurements(PerformanceTestCase.java:151) at org.eclipse.jdt.core.tests.junit.extension.TestCase.commitMeasurements(TestCase.java:764) at org.eclipse.pde.api.tools.builder.tests.performance.ApiDescriptionTests.testCleanVisit(ApiDescriptionTests.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130)
It didn't fail again on the next run. But if this path is possible in the code, it should be protected.
Created attachment 118444 [details] Proposed patch
Released both in HEAD and R3_4_maintenance streams.