This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 83826 - Forbid opening of project with new XML schema version in old IDE
Summary: Forbid opening of project with new XML schema version in old IDE
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 53515 (view as bug list)
Depends on: 122655
Blocks:
  Show dependency tree
 
Reported: 2006-08-30 16:00 UTC by pzajac
Modified: 2016-07-07 08:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2006-08-30 16:00:01 UTC
Few example:
Try open project in NetBeans 5.5 from trunk (6.0). A exception is thrown (from
apisupport) The xml schema was changed. 

Try open j2se project from nb 5.0 in nb 4.1 
etc.

Maybe it will be better check the version of schema (\d+) is bigger than for
project type in opened ide.
 
<data xmlns="http://www.netbeans.org/ns/.*/(\d+)">
Comment 1 Jesse Glick 2006-08-30 23:17:43 UTC
May be possible for AntBasedProjectFactorySingleton to perform such a check
automatically.
Comment 2 Milan Kubec 2006-09-14 09:17:24 UTC
Should be done, but for post 5.5 release.
Comment 3 Jesse Glick 2007-06-22 01:18:30 UTC
Not possible to do automatically from AntBasedProjectFactorySingleton. For example, ant/freeform declares its schema
version as /1 although it accepts /2 as well.

Would best be solved using some kind of API "UpdateHelper", modelled after what is used in ant/freeform and
java/j2seproject. Otherwise it would be necessary to insert extra code in every Ant-based project type, leading to code
bloat. Deferring since it is impossible to add such an API now.
Comment 4 Jesse Glick 2007-08-27 20:58:47 UTC
One-off fix for j2seproject, should be replaced with something based on issue #113895 when possible:

Checking in J2SEProject.java;
/shared/data/ccvs/repository/java/j2seproject/src/org/netbeans/modules/java/j2seproject/J2SEProject.java,v  <-- 
J2SEProject.java
new revision: 1.94; previous revision: 1.93
done
Checking in Bundle.properties;
/shared/data/ccvs/repository/java/j2seproject/src/org/netbeans/modules/java/j2seproject/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.33; previous revision: 1.32
done

and for apisupport (NbModuleProject.java 1.156, Bundle.properties 1.8). I don't see a way to do it for freeform
projects; there is no place for natures to throw an IOException without API changes.
Comment 5 Jesse Glick 2008-07-03 14:58:40 UTC
*** Issue 53515 has been marked as a duplicate of this issue. ***
Comment 6 Milan Kubec 2008-08-29 14:42:13 UTC
Jesse, isn't this issue already fixed?
Comment 7 Jesse Glick 2008-08-29 15:53:07 UTC
No, it isn't. As explained in comments, for j2seproject and apisupport.project it is implemented, but not for other
project types. (project.xml validation does not help, because <configuration> processes children as #lax, meaning
unknown namespaces are just ignored.)
Comment 8 Tomas Danek 2012-10-26 10:26:11 UTC
still valid I guess, but P4 IMO...
Comment 9 Martin Balin 2016-07-07 08:37:13 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss