Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 404170 - Access Error trying to access vpg when creating a conflict error message in AddOnlyToUseStatementRefactoring
Summary: Access Error trying to access vpg when creating a conflict error message in A...
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Refactoring Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: 8.1   Edit
Assignee: Jeffrey Overbey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-22 12:57 EDT by Louis Orenstein CLA
Modified: 2013-05-01 10:21 EDT (History)
3 users (show)

See Also:


Attachments
proposed patch (1.41 KB, text/plain)
2013-03-22 12:58 EDT, Louis Orenstein CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Orenstein CLA 2013-03-22 12:57:50 EDT
After applying changes for bug 399565 I noticed the following error when trying to use the "Add Only Clause to Use Statement" refactoring when a conflict error should be shown in the Preview window:

Root exception:
java.lang.NoSuchFieldError: vpg
	at org.eclipse.photran.internal.core.refactoring.AddOnlyToUseStmtRefactoring.access$4(AddOnlyToUseStmtRefactoring.java:52)
	at org.eclipse.photran.internal.core.refactoring.AddOnlyToUseStmtRefactoring$ConflictingBindingErrorHandler.addConflictError(AddOnlyToUseStmtRefactoring.java:446)
	at org.eclipse.photran.internal.core.refactoring.infrastructure.FortranResourceRefactoring$CheckForConflictBindings.checkForConflictingDefinitionOrShadowing(FortranResourceRefactoring.java:913)
	at org.eclipse.photran.internal.core.refactoring.infrastructure.FortranResourceRefactoring$CheckForConflictBindings.check(FortranResourceRefactoring.java:899)
	at org.eclipse.photran.internal.core.refactoring.infrastructure.FortranResourceRefactoring.checkForConflictingBindings(FortranResourceRefactoring.java:808)
	at org.eclipse.photran.internal.core.refactoring.AddOnlyToUseStmtRefactoring.checkConflictingBindings(AddOnlyToUseStmtRefactoring.java:313)
	at org.eclipse.photran.internal.core.refactoring.AddOnlyToUseStmtRefactoring.doCheckFinalConditions(AddOnlyToUseStmtRefactoring.java:287)
	at org.eclipse.rephraserengine.core.vpg.refactoring.VPGRefactoring.checkFinalConditions(VPGRefactoring.java:154)
Comment 1 Louis Orenstein CLA 2013-03-22 12:58:41 EDT
Created attachment 228930 [details]
proposed patch

I confirm that:

(a) I wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others
(b) I have the right to contribute the code to Eclipse
(c) I have included the EPL license header in all source files.
Comment 2 Jeffrey Overbey CLA 2013-05-01 10:21:13 EDT
Committed to master for Photran 8.1/Kepler.

Thanks, Louis!