Bug 186113

Summary: [model] classpath variable deprecation messages not initialized when called
Product: [Eclipse Project] JDT Reporter: Benno Baumgartner <benno.baumgartner>
Component: CoreAssignee: Frederic Fusier <frederic_fusier>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jerome_lanneluc, markus.kell.r
Version: 3.3   
Target Milestone: 3.4 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch
none
New proposed patch none

Description Benno Baumgartner CLA 2007-05-09 06:19:54 EDT
I20070503-1400

1. Start workspace
2. call JavaCore.getClasspathVariableDeprecationMessage("JRE_LIB")
Is:
 null
Should:
 return deprecation message for JRE_LIB

Problem seams to be that deprecatedVariables is only initialized in JavaCore#getClasspathVariableInitializer(...).
Comment 1 Frederic Fusier CLA 2007-08-17 10:52:07 EDT
Created attachment 76309 [details]
Proposed patch
Comment 2 Frederic Fusier CLA 2007-08-18 13:54:34 EDT
Created attachment 76373 [details]
New proposed patch

Better patch as it does not need to initialize classpath variable to return the deprecation message.

Note that this patch also includes the fix for bug 200449.
Comment 3 Frederic Fusier CLA 2007-08-18 14:01:19 EDT
Released for 3.4M2 in HEAD stream.
Comment 4 Eric Jodet CLA 2007-09-18 01:11:36 EDT
(In reply to comment #3)
Verified for 3.4 M2 using build I20070917-0010.