Changeset 2243
- Timestamp:
- 06/23/08 10:37:53
(4 months ago)
- Author:
- dsugar
- Message:
fix error generation - wrong 'toString' function was being used - essentially a copy-paste error
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r2144 |
r2243 |
|
| 88 | 88 | public void Visit (Enter i_enter) |
|---|
| 89 | 89 | { |
|---|
| 90 | | String key = toString(); |
|---|
| | 90 | String key = i_enter.toString(); |
|---|
| 91 | 91 | |
|---|
| 92 | 92 | IDomain domStart = i_enter.getStartDomain (); |
|---|
| … | … | |
| 266 | 266 | } |
|---|
| 267 | 267 | |
|---|
| 268 | | m_errHandler.Error ("Access from parent not used by any children", Token, ErrorHandler.ERROR_UNUSED_ACCESS, toString()); |
|---|
| | 268 | m_errHandler.Error ("Access from parent not used by any children", Token, ErrorHandler.ERROR_UNUSED_ACCESS, i_access.toString()); |
|---|
| 269 | 269 | return ; |
|---|
| 270 | 270 | } |
|---|
| … | … | |
| 283 | 283 | + "\"'s access to interface \"" |
|---|
| 284 | 284 | + i_access.GetBaseResource().getName() + "\"", Token, |
|---|
| 285 | | ErrorHandler.ERROR_INVALID_ACCESS, toString()); |
|---|
| | 285 | ErrorHandler.ERROR_INVALID_ACCESS, i_access.toString()); |
|---|
| 286 | 286 | return; |
|---|
| 287 | 287 | } |
|---|
| … | … | |
| 295 | 295 | + "\"'s access to resource \"" |
|---|
| 296 | 296 | + i_access.GetBaseResource().getName() + "\"", Token, |
|---|
| 297 | | ErrorHandler.ERROR_INVALID_ACCESS, toString ()); |
|---|
| | 297 | ErrorHandler.ERROR_INVALID_ACCESS, i_access.toString ()); |
|---|
| 298 | 298 | return; |
|---|
| 299 | 299 | } |
|---|
| … | … | |
| 305 | 305 | + parentToResource.m_bool |
|---|
| 306 | 306 | + ", child permission must also be wrapped by the same boolean", Token, |
|---|
| 307 | | ErrorHandler.ERROR_MISSING_BOOLEAN, toString()); |
|---|
| | 307 | ErrorHandler.ERROR_MISSING_BOOLEAN, i_access.toString()); |
|---|
| 308 | 308 | return; |
|---|
| 309 | 309 | } |
|---|
| … | … | |
| 381 | 381 | { |
|---|
| 382 | 382 | m_errHandler.Error("Access from parent not used by any children", Token, |
|---|
| 383 | | ErrorHandler.ERROR_UNUSED_ACCESS, toString()); |
|---|
| | 383 | ErrorHandler.ERROR_UNUSED_ACCESS, i_access.toString()); |
|---|
| 384 | 384 | return; |
|---|
| 385 | 385 | } |
|---|
| … | … | |
| 390 | 390 | m_errHandler.Warning ("No RDef in the resource " + i_access.getResource().getName() |
|---|
| 391 | 391 | + " defines a " + i_access.getVerb () + " access", Token, |
|---|
| 392 | | ErrorHandler.ERROR_INVALID_ACCESS, toString()); |
|---|
| | 392 | ErrorHandler.ERROR_INVALID_ACCESS, i_access.toString()); |
|---|
| 393 | 393 | } |
|---|
| 394 | 394 | // If the domain and the resource have the same parent, there are no constraints |
|---|
| … | … | |
| 407 | 407 | + "\"'s access to resource \"" |
|---|
| 408 | 408 | + i_access.getResource ().getName() + "\"", Token, |
|---|
| 409 | | ErrorHandler.ERROR_INVALID_ACCESS, toString()); |
|---|
| | 409 | ErrorHandler.ERROR_INVALID_ACCESS, i_access.toString()); |
|---|
| 410 | 410 | return; |
|---|
| 411 | 411 | } |
|---|
| … | … | |
| 418 | 418 | + "\"'s access to resource \"" |
|---|
| 419 | 419 | + i_access.getResource ().getName() + "\"", Token, |
|---|
| 420 | | ErrorHandler.ERROR_CHILD_EXCEED_ACCESS, toString()); |
|---|
| | 420 | ErrorHandler.ERROR_CHILD_EXCEED_ACCESS, i_access.toString()); |
|---|
| 421 | 421 | return; |
|---|
| 422 | 422 | } |
|---|
| … | … | |
| 425 | 425 | { |
|---|
| 426 | 426 | m_errHandler.Error("Constraint violation: child's access: " |
|---|
| 427 | | + toString().replace(Utility.DELIM, ' ') |
|---|
| | 427 | + i_access.toString().replace(Utility.DELIM, ' ') |
|---|
| 428 | 428 | + ", Parent's access: " |
|---|
| 429 | 429 | + parentToResource.toString().replace(Utility.DELIM, ' '), Token); |
|---|
| … | … | |
| 438 | 438 | + parentToResource.m_bool |
|---|
| 439 | 439 | + ", child permission must also be wrapped by the same boolean", Token, |
|---|
| 440 | | ErrorHandler.ERROR_MISSING_BOOLEAN, toString ()); |
|---|
| | 440 | ErrorHandler.ERROR_MISSING_BOOLEAN, i_access.toString ()); |
|---|
| 441 | 441 | return; |
|---|
| 442 | 442 | } |
|---|
| … | … | |
| 538 | 538 | } |
|---|
| 539 | 539 | } |
|---|
| 540 | | |
|---|
| 541 | 540 | } |
|---|
Download in other formats:
* Generating other formats may take time.