Community
Participate
Working Groups
Following bug 97272, the classpath variables are not exported if the workspace is closed and reopened. Steps to reproduce: 1) Start a fresh workspace 2) Create a new classpath variable 3) Export all preferences. 4) Check that the new classpath variable is exported 5) Close the workspace 6) Open it again 7) Export again all preferences 8) The classpath variables are not exported anymore
The fix would be to not remove the variable from the preferences in JavaModelManager#loadVariableAndContainers() (ligne 1787)
+1 for RC2
Changed JavaModelManager#loadVariablesAndContainers() to remove the variable from the preferences only in the case of CP_ENTRY_IGNORE. Also changed JavaModelManager#variablePut(...) to remove the variable from the preferences if the path is null. Added regression tests OptionTest#test10() and test11().
Verified in N20050609-0010 + JDT/Core HEAD
Verified for 3.1 RC2 using build I20050610-0010