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 248788 - Fix of #247926 breaks IDE based on NB platform
Summary: Fix of #247926 breaks IDE based on NB platform
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-21 08:05 UTC by Alexander Simon
Modified: 2014-11-21 22:35 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 Alexander Simon 2014-11-21 08:05:23 UTC
Studio IDE is broken after the fix
Comment 1 Jaroslav Havlin 2014-11-21 08:10:04 UTC
Svata, can you please evaluate this issue? Thank you.
Comment 2 Jaroslav Havlin 2014-11-21 08:12:28 UTC
> Studio IDE is broken after the fix
Alexander, can you please provide some details?
Comment 3 Alexander Simon 2014-11-21 08:28:17 UTC
See hudson build:
http://enum.ru.oracle.com:8080/hudson/job/pythia-sputnik-single-platform-trunk/
Comment 4 Alexander Simon 2014-11-21 08:48:06 UTC
Are you have a script to change dependencies?
Studio modules has 80 modules that depend on org.openide.util.base.
Comment 5 Alexander Simon 2014-11-21 09:12:52 UTC
Jaroslav,
Could you conform that it should be fix like this:
                 <dependency>
-                    <code-name-base>org.openide.util</code-name-base>
+                    <code-name-base>org.openide.util.ui</code-name-base>
                     <build-prerequisite/>
                     <compile-dependency/>
                     <run-dependency>
-                        <specification-version>8.0</specification-version>
+                        <specification-version>8.29.2</specification-version>
                     </run-dependency>
                 </dependency>
                 <dependency>
-                    <code-name-base>org.openide.util.base</code-name-base>
+                    <code-name-base>org.openide.util</code-name-base>
                     <build-prerequisite/>
                     <compile-dependency/>
                     <run-dependency>
-                        <specification-version>9.2</specification-version>
+                        <specification-version>9.3</specification-version>
                     </run-dependency>
                 </dependency>
for each module that have a dependency on "org.openide.util.base"?
If it is true I can do that fix.

Thanks in advance
Alexander
Comment 6 Jaroslav Havlin 2014-11-21 09:20:05 UTC
> Could you conform that it should be fix like this:
I think this fix should work correctly, but please wait for Svata's confirmation.
Comment 7 Alexander Simon 2014-11-21 10:39:07 UTC
fixed in sputnik repository, change set:
13732:979e9a71324e
Comment 8 Svata Dedic 2014-11-21 22:35:59 UTC
btw - I did that change (renaming dependency codenamebase) in bulk in jet-main repository when integrating the util.base > util > util.ui rename.

There's an semi-automated way how to recover from split module; usually we provide module-auto-deps + entry in nbbuild/templates/common.xml which causes auto-injection of additional compile-time or runtime dependencies for modules that depend on old version of something. 
ant -Dfix.dependencies.modules=codenamebase-that-was-changed fix-dependencies can be run to change/upgrade dependencies according to nbbuild/templates/common.xml entries. It's routinely run on NB repositories as validation tests for nbms-and-javadoc require that no stable module uses the auto-injection mechanism.

It's necessary then to increment spec versions of affected modules so proper versions are autoupdated - no automated tasks for this step so far.