Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: JBuilder 2007/Optimizeit    [ Add a report in this area ]  
Report #:  40897   Status: Reported
Method Viewer
Project:  JBuilder 2007 Build #:  v20061116_0221
Version:    2007 1.0 Submitted By:   Alain AbdulSater
Report Type:  Basic functionality failure Date Reported:  2/19/2007 1:18:26 PM
Severity:    Critical / Show Stopper Last Updated:
Platform:    Windows XP Internal Tracking #:  
Resolution: None  Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 1
Description
When i run code coverage or other OI modules and i click on an entry in order to view where it is in the code an exception is thrown.

Example: In Code Coverage clicking on a method to view the method.

java.lang.ClassCastException:
com.borland.optimizeit.ui.views.source.helper.OptimizeitSourceViewer

            at
com.borland.optimizeit.ui.views.source.helper.OICompilationUnitEditor.startTabConversion(OICompilationUnitEditor.java:1583)

            at
com.borland.optimizeit.ui.views.source.helper.OICompilationUnitEditor.createPartControl(OICompilationUnitEditor.java:1642)

            at
org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)

            at
org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)

            at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)

            at
org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)

            at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)

            at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)

            at
org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)

            at
org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)

            at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)

            at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)

            at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)

            at
com.borland.optimizeit.ui.views.source.helper.EditorUtility.openInEditor(EditorUtility.java:278)

            at
com.borland.optimizeit.ui.views.source.helper.EditorUtility.openInEditor(EditorUtility.java:143)

            at
com.borland.optimizeit.ui.views.source.OpenActionUtil.open(OpenActionUtil.java:51)

            at
com.borland.optimizeit.ui.views.source.OpenAction.run(OpenAction.java:163)

            at
com.borland.optimizeit.ui.views.source.OpenAction.run(OpenAction.java:145)

            at
com.borland.optimizeit.ui.views.source.OpenJavaSource.openWbSource(OpenJavaSource.java:670)

            at
com.borland.optimizeit.ui.views.source.OpenJavaSource.openSource(OpenJavaSource.java:124)

            at
com.borland.optimizeit.ui.views.source.JavaOpenSourceProvider$2.run(JavaOpenSourceProvider.java:73)

            at
org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)

            at
com.borland.optimizeit.ui.views.source.JavaOpenSourceProvider.openSource(JavaOpenSourceProvider.java:69)

            at
com.borland.optimizeit.ui.views.source.JavaOpenSourceProvider.openSource(JavaOpenSourceProvider.java:45)

            at
com.borland.optimizeit.ui.internal.util.OpenSource.openSource(OpenSource.java:32)

            at
com.borland.optimizeit.ui.views.MethodCoverageView$4.handleEvent(MethodCoverageView.java:381)

            at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)

            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)

            at
org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)

            at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)

            at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)

            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)

            at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)

            at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

            at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)

            at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)

            at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)

            at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)

            at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)

            at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)

            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:585)

            at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)

            at org.eclipse.core.launcher.Main.basicRun(Main.java:280)

            at org.eclipse.core.launcher.Main.run(Main.java:977)

            at org.eclipse.core.launcher.Main.main(Main.java:952)



Steps to Reproduce:
Run a program in profile mode and click on a method in code coverage "Method Coverage" tab.
Workarounds
None that i found
Attachment
None
Comments

Doug Daniels at 8/8/2007 6:46:46 AM -
When running Optimize IT code coverage on a JUnit test suite I cannot view code coverage source code.

Here is the error I get when I double click a method:

java.lang.ClassCastException: com.borland.optimizeit.ui.views.source.helper.OptimizeitSourceViewer

at com.borland.optimizeit.ui.views.source.helper.OICompilationUnitEditor.startTabConversion(OICompilationUnitEditor.java:1583)

at com.borland.optimizeit.ui.views.source.helper.OICompilationUnitEditor.createPartControl(OICompilationUnitEditor.java:1642)

at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)

at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)

at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)

at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:214)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2595)

at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2528)

at org.eclipse.ui.internal.WorkbenchPage.access$10(WorkbenchPage.java:2520)

at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2505)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2500)

at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2485)

at com.borland.optimizeit.ui.views.source.helper.EditorUtility.openInEditor(EditorUtility.java:278)

at com.borland.optimizeit.ui.views.source.helper.EditorUtility.openInEditor(EditorUtility.java:143)

at com.borland.optimizeit.ui.views.source.OpenActionUtil.open(OpenActionUtil.java:51)

at com.borland.optimizeit.ui.views.source.OpenAction.run(OpenAction.java:163)

at com.borland.optimizeit.ui.views.source.OpenAction.run(OpenAction.java:145)

at com.borland.optimizeit.ui.views.source.OpenJavaSource.openWbSource(OpenJavaSource.java:670)

at com.borland.optimizeit.ui.views.source.OpenJavaSource.openSource(OpenJavaSource.java:124)

at com.borland.optimizeit.ui.views.source.JavaOpenSourceProvider$2.run(JavaOpenSourceProvider.java:73)

at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)

at com.borland.optimizeit.ui.views.source.JavaOpenSourceProvider.openSource(JavaOpenSourceProvider.java:69)

at com.borland.optimizeit.ui.views.source.JavaOpenSourceProvider.openSource(JavaOpenSourceProvider.java:45)

at com.borland.optimizeit.ui.internal.util.OpenSource.openSource(OpenSource.java:32)

at com.borland.optimizeit.ui.internal.actions.OpenSourceAction.run(OpenSourceAction.java:73)

at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)

at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)

at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)

at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)

at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)

at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)

at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)

at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)

at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)

at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)

at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)

at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)

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:585)

at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)

at org.eclipse.core.launcher.Main.basicRun(Main.java:280)

at org.eclipse.core.launcher.Main.run(Main.java:977)

at org.eclipse.core.launcher.Main.main(Main.java:952)

Server Response from: ETNACODE01