1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[240997] - Additional fixes for generics related javac compile error.

This commit is contained in:
Pawel Piech 2008-09-08 19:41:32 +00:00
parent c48cd231b5
commit 1253a42f62

View file

@ -91,23 +91,23 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl, I
* @see MIRunControl
*/
@Immutable
private static class RunControlEvent<V extends IDMContext, T extends MIEvent<? extends IDMContext>> extends AbstractDMEvent<V>
implements IDMEvent<V>, IMIDMEvent
private static class RunControlEvent<V extends IDMContext, T extends IDMContext> extends AbstractDMEvent<V>
implements IDMEvent<V>, IMIDMEvent<T>
{
final private T fMIInfo;
public RunControlEvent(V dmc, T miInfo) {
final private MIEvent<T> fMIInfo;
public RunControlEvent(V dmc, MIEvent<T> miInfo) {
super(dmc);
fMIInfo = miInfo;
}
public T getMIEvent() { return fMIInfo; }
public MIEvent<T> getMIEvent() { return fMIInfo; }
}
/**
* Indicates that the given thread has been suspended.
*/
@Immutable
private static class SuspendedEvent extends RunControlEvent<IExecutionDMContext, MIStoppedEvent>
private static class SuspendedEvent extends RunControlEvent<IExecutionDMContext, IExecutionDMContext>
implements ISuspendedDMEvent
{
SuspendedEvent(IExecutionDMContext ctx, MIStoppedEvent miInfo) {
@ -150,7 +150,7 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl, I
// }
@Immutable
private static class ResumedEvent extends RunControlEvent<IExecutionDMContext, MIRunningEvent>
private static class ResumedEvent extends RunControlEvent<IExecutionDMContext, IExecutionDMContext>
implements IResumedDMEvent
{
ResumedEvent(IExecutionDMContext ctx, MIRunningEvent miInfo) {
@ -158,7 +158,7 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl, I
}
public StateChangeReason getReason() {
switch(getMIEvent().getType()) {
switch(((MIRunningEvent)getMIEvent()).getType()) {
case MIRunningEvent.CONTINUE:
return StateChangeReason.USER_REQUEST;
case MIRunningEvent.NEXT:
@ -195,7 +195,7 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl, I
// }
@Immutable
private static class StartedDMEvent extends RunControlEvent<IExecutionDMContext,MIThreadCreatedEvent>
private static class StartedDMEvent extends RunControlEvent<IExecutionDMContext, IContainerDMContext>
implements IStartedDMEvent
{
StartedDMEvent(IMIExecutionDMContext executionDmc, MIThreadCreatedEvent miInfo) {
@ -204,7 +204,7 @@ public class MIRunControlNS extends AbstractDsfService implements IRunControl, I
}
@Immutable
private static class ExitedDMEvent extends RunControlEvent<IExecutionDMContext,MIThreadExitEvent>
private static class ExitedDMEvent extends RunControlEvent<IExecutionDMContext, IContainerDMContext>
implements IExitedDMEvent
{
ExitedDMEvent(IMIExecutionDMContext executionDmc, MIThreadExitEvent miInfo) {