1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-14 19:55:45 +02:00

If casting of variable to a type or array causes an error, the status of the variable is set to "error" and it can't be reset by subsequent castings.

This commit is contained in:
Mikhail Khodjaiants 2005-03-17 22:00:31 +00:00
parent ec263f76dc
commit 011cd84a92
2 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-03-17 Mikhail Khodjaiants
If casting of variable to a type or array causes an error, the status
of the variable is set to "error" and it can't be reset by subsequent castings.
* CVariable.java
2005-02-24 Mikhail Khodjaiants 2005-02-24 Mikhail Khodjaiants
Applied patch from Tracy Miranda (bug 86540: NPE in CProjectSourceLocation). Applied patch from Tracy Miranda (bug 86540: NPE in CProjectSourceLocation).
Check for the project and synchronization are added to "initializeFolders". Check for the project and synchronization are added to "initializeFolders".

View file

@ -522,7 +522,9 @@ public class CVariable extends AbstractCVariable implements ICDIEventListener {
if ( getShadow() != null ) if ( getShadow() != null )
getShadow().dispose( true ); getShadow().dispose( true );
setShadow( newVar ); setShadow( newVar );
fireChangeEvent( DebugEvent.STATE ); // If casting of variable to a type or array causes an error, the status
// of the variable is set to "error" and it can't be reset by subsequent castings.
resetValue();
} }
} }
@ -611,7 +613,9 @@ public class CVariable extends AbstractCVariable implements ICDIEventListener {
if ( getShadow() != null ) if ( getShadow() != null )
getShadow().dispose( true ); getShadow().dispose( true );
setShadow( newVar ); setShadow( newVar );
fireChangeEvent( DebugEvent.STATE ); // If casting of variable to a type or array causes an error, the status
// of the variable is set to "error" and it can't be reset by subsequent castings.
resetValue();
} }
} }
@ -628,7 +632,9 @@ public class CVariable extends AbstractCVariable implements ICDIEventListener {
InternalVariable iv = getOriginal(); InternalVariable iv = getOriginal();
if ( iv != null ) if ( iv != null )
iv.invalidateValue(); iv.invalidateValue();
fireChangeEvent( DebugEvent.STATE ); // If casting of variable to a type or array causes an error, the status
// of the variable is set to "error" and it can't be reset by subsequent castings.
resetValue();
} }
/* /*