Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 315888

Summary: [infer type arguments] The fix 'Add type arguments to 'AbstractProject'' generated a null change.
Product: [Eclipse Project] JDT Reporter: Philippe Marschall <philippe.marschall>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, Olivier_Thomann
Version: 3.6   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Philippe Marschall CLA 2010-06-05 15:20:45 EDT
What steps will reproduce the problem?
1. Do a Quick Fix "Add Type Arguments" for a raw type warning where it's not possible to add type arguments. I.E. overriding a method where the superclass method has already a raw type argument.


-- Error Details --
Date: Sat Jun 05 21:15:33 CEST 2010
Message: Internal Error
Severity: Error
Product: Eclipse SDK 3.6.0.v201005201744 (org.eclipse.sdk.ide)
Plugin: org.eclipse.jdt.ui
Session Data:
eclipse.buildId=I20100520-1744
java.version=1.6.0_20
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/marschall/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/marschall/.eclipse_keyring -showlocation

This is a continuation of log file /Users/marschall/Documents/workspace/.metadata/.bak_1.log
Created Time: 2010-06-05 21:13:30.953


Exception Stack Trace:
org.eclipse.core.runtime.CoreException: The fix 'Add type arguments to 'AbstractProject'' generated a null change.
	at org.eclipse.jdt.internal.corext.fix.CompilationUnitRewriteOperationsFix.createChange(CompilationUnitRewriteOperationsFix.java:105)
	at org.eclipse.jdt.internal.ui.text.correction.proposals.FixCorrectionProposal.createTextChange(FixCorrectionProposal.java:155)
	at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.createChange(CUCorrectionProposal.java:389)
	at org.eclipse.jdt.internal.ui.text.correction.proposals.ChangeCorrectionProposal.getChange(ChangeCorrectionProposal.java:310)
	at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.getTextChange(CUCorrectionProposal.java:399)
	at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.getAdditionalProposalInfo(CUCorrectionProposal.java:151)
	at org.eclipse.jdt.internal.ui.text.correction.proposals.FixCorrectionProposal.getAdditionalProposalInfo(FixCorrectionProposal.java:133)
	at org.eclipse.jface.text.contentassist.AdditionalInfoController$3.run(AdditionalInfoController.java:106)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Olivier Thomann CLA 2010-06-05 23:25:31 EDT
Move to JDT/UI
Comment 2 Dani Megert CLA 2010-06-07 03:20:05 EDT

*** This bug has been marked as a duplicate of bug 232735 ***