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.
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+)">
May be possible for AntBasedProjectFactorySingleton to perform such a check automatically.
Should be done, but for post 5.5 release.
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.
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.
*** Issue 53515 has been marked as a duplicate of this issue. ***
Jesse, isn't this issue already fixed?
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.)
still valid I guess, but P4 IMO...
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