ftrifin / xtext-utils

Automatically exported from code.google.com/p/xtext-utils
0 stars 0 forks source link

FluentIssueCollection: StringIndexOutOfBoundsException when issue has no valid URI to problem #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The method getIssueSummary() will raise an StringIndexOutOfBoundsException when 
Issue#uriToProblem has no valid value. In the case the error occured the issue 
carries the value "#//".

The summary should be created fail-safe in this case.

Daemon Thread [Thread-1] (Suspended (exception 
StringIndexOutOfBoundsException))   
    String.charAt(int) line: 686    
    ModelImpl(BasicEObjectImpl).eObjectForURIFragmentSegment(String) line: 514  
    XbaseResource(ResourceImpl).getEObject(List<String>) line: 782  
    XbaseResource(ResourceImpl).getEObject(String) line: 758    
    XtextResource.access$1(XtextResource, String) line: 1   
    XtextResource$1.getEObject(String) line: 97 
    DefaultFragmentProvider.getEObject(Resource, String, IFragmentProvider$Fallback) line: 26   
    XbaseResource(XtextResource).getEObject(String) line: 259   
    XbaseResource(LazyLinkingResource).getEObject(String) line: 203 
    FluentIssueCollection.getIssueSummary(Resource, Issue) line: 347    
    FluentIssueCollection.dumpIssue(Resource, Issue) line: 343  
    RdalangTest(XtextTest).dumpUnassertedIssues() line: 543 
    RdalangTest(XtextTest).after() line: 156    
    NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]  
    NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39  
    DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25  
    Method.invoke(Object, Object...) line: 597  
    FrameworkMethod$1.runReflectiveCall() line: 44  
    FrameworkMethod$1(ReflectiveCallable).run() line: 15    
    FrameworkMethod.invokeExplosively(Object, Object...) line: 41   
    RunAfters.evaluate() line: 37   
    XtextRunner$1.evaluate() line: 52   
    XtextRunner(BlockJUnit4ClassRunner).runNotIgnored(FrameworkMethod, EachTestNotifier) line: 79   
    XtextRunner(BlockJUnit4ClassRunner).runChild(FrameworkMethod, RunNotifier) line: 71 
    XtextRunner(BlockJUnit4ClassRunner).runChild(Object, RunNotifier) line: 49  
    ParentRunner$3.run() line: 193  
    ParentRunner$1.schedule(Runnable) line: 52  
    XtextRunner(ParentRunner<T>).runChildren(RunNotifier) line: 191 
    ParentRunner<T>.access$000(ParentRunner, RunNotifier) line: 42  
    ParentRunner$2.evaluate() line: 184 
    RunBefores.evaluate() line: 28  
    XtextRunner(ParentRunner<T>).run(RunNotifier) line: 236 
    JUnit4TestMethodReference(JUnit4TestReference).run(TestExecution) line: 50  
    TestExecution.run(ITestReference[]) line: 38    
    RemoteTestRunner.runTests(String[], String, TestExecution) line: 467    
    RemoteTestRunner.runTests(TestExecution) line: 683  
    RemoteTestRunner.run() line: 390    
    RemoteTestRunner.main(String[]) line: 197   

Original issue reported on code.google.com by karsten....@googlemail.com on 2 Aug 2011 at 9:31

GoogleCodeExporter commented 9 years ago

Original comment by karsten....@googlemail.com on 2 Aug 2011 at 9:36