Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-04-01Bug 560788 - Improve runtime exceptions out of the frameworkS4_16_0_M1I20200421-1800I20200420-1800I20200419-1800I20200418-1800I20200417-1800I20200416-1800I20200416-0410I20200415-1800I20200415-0620I20200415-0200I20200414-1010I20200414-0630I20200413-1800I20200412-1800I20200411-1800I20200411-0950I20200411-0720I20200411-0510I20200411-0300I20200410-2300I20200410-1800I20200409-0200I20200408-1800I20200408-0600I20200407-1800I20200407-1210I20200407-0120I20200406-1800I20200406-0600I20200406-0350I20200406-0120I20200405-1800I20200405-0600I20200404-1800I20200404-1220I20200404-0600I20200404-0330I20200403-1800I20200402-2250I20200402-1800I20200402-0850I20200402-0410I20200401-1800Thomas Watson11-37/+203
Improve exception methods to include information about the bundle related to the exception. This is not an exhaustive change, but it does improve many of the common error that can happen when a bundle is uninstalled or a bundle context is invalid or a service is unregistered. Change-Id: I983a1fb4750f24259df71f73b4646134c3f1cc26 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-04-01Bug 561152 - Make move operation more robustThomas Watson6-59/+100
For staging files into the storage area use Files.move to try atomic moves. Fall back to non-atomic on failure. Also use replace option in case the target exists. Change-Id: Icd645470b25979dc76a7a1d9ea12b3e4837d634d Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-03-24Bug 534130 - Provide a home for Equinox.setupI20200331-1800I20200330-1800I20200329-1800I20200328-1800I20200327-1800I20200326-1800I20200325-1800I20200324-1800Ed Merks1-63/+1
Clean up some of the tasks that no longer apply because the source has been changed to eliminate the need for them. Change-Id: If7e3456dbc6fd9ebd780c87357b327d709df97b7 Signed-off-by: Ed Merks <ed.merks@gmail.com>
2020-03-24Bug 534130 - Provide a home for Equinox.setupEd Merks1-1/+1
Fix the Eclispe Ini redirection to use the correct variable synax too. Change-Id: I631fc3130f12b5af27e34f52b7d66aa03c4c6441 Signed-off-by: Ed Merks <ed.merks@gmail.com> Change-Id: I631fc3130f12b5af27e34f52b7d66aa03c4c6441 Signed-off-by: Ed Merks <ed.merks@gmail.com>
2020-03-24Bug 534130 - Provide a home for Equinox.setupEd Merks1-1/+1
Fix the Eclispe Ini redirection to use the correct variable. Change-Id: Icaa4a1b9199e487065f8faad6756f31b6dd1d225 Signed-off-by: Ed Merks <ed.merks@gmail.com>
2020-03-23Bug 534130 - Provide a home for Equinox.setupEd Merks4-0/+417
Change-Id: Iebe163875f9c494848bad007cfc7cd014d97c263 Signed-off-by: Ed Merks <ed.merks@gmail.com>
2020-03-12Bug 561077 - set install area to user.dir if not loaded from file URLX20200313-0410X20200312-1900I20200323-1800I20200322-1800I20200322-1150I20200322-0300I20200321-1800I20200321-0440I20200320-1800I20200319-1800I20200319-0550I20200318-1800I20200318-1400I20200318-1100I20200317-1800I20200316-1800I20200315-2240I20200315-1800I20200314-1800I20200313-1800I20200313-0810I20200312-1835I20200312-1800Thomas Watson1-2/+9
Change-Id: I89aaf5894cf0b8546333f2b7dc1159733cd6cc2d Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-03-12Bug 561041 - Use workaround to avoid errors on reflecting onX20200312-1530X20200312-1210Thomas Watson1-1/+1
URLClassLoader.addURL Change-Id: I960f40c5a3a268506d7046c0f9de7d4b54873a9b Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-03-11Fix accidental mergeX20200312-0700X20200311-2150X20200311-1900I20200311-1800Thomas Watson0-0/+0
2020-03-10Revert "Merge branch 'master' into osgiR8"X20200311-0820I20200310-1800Thomas Watson98-3698/+361
This reverts commit bf506346ff2c91a60986226f0f26f5c2e7866548, reversing changes made to dabb1b38eaf020bb0f97ea331a3f6c5e5aefe565.
2020-03-10Revert "Update OSGi R8 APIs"Thomas Watson3-17/+5
This reverts commit cee7c1437cc402597ea9120c8631e7594164783a.
2020-03-10Update OSGi R8 APIsThomas Watson3-5/+17
2020-03-10Merge branch 'master' into osgiR8Thomas Watson20-78/+74
2020-03-10Bug 560974 - Fix exception type for null map keyBJ Hargrave2-56/+52
When a Map which does not support null keys receives a null key, the Map contract specified it should throw a NullPointerException. This class instead threw IllegalArgumentException. This change brings this class inline with the Map contract. Change-Id: Ia227aa18ac024f007dfc8ea1a2beaab12de393c2 Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
2020-03-10Bug 560974 - bump version of org.eclipse.osgi for 4.16Thomas Watson4-4/+4
Change-Id: I9c1360abb31123ab02666dca5471eba73a3a32a5 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-03-08Bug 560877 - Version bumps for 4.16 streamY20200309-1300I20200310-0810I20200309-1800I20200309-0810I20200308-1800Alexander Kurtakov4-4/+4
Change-Id: I176eb3632d5016378fb619bd99aef06fcadc9bf4 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-03-06Bug 560876 - Update version number in mac's Eclipse.app for 4.16Y20200308-0700Y20200308-0520X20200306-1900I20200307-1800I20200307-1145Mat Booth1-3/+3
Change-Id: I04367ab990b532d04f246cf63521e5d00ba363f0 Signed-off-by: Mat Booth <mat.booth@redhat.com>
2020-03-06Bug 560872 - POM and product version change for 4.16 releaseMat Booth16-17/+17
Change-Id: I9545bb9bdd28b5a1e5a0b7fcb6d645553fcec9d2 Signed-off-by: Mat Booth <mat.booth@redhat.com>
2020-02-21Bug 559840 - handle duplicate ConnectContent with ConnectBundleFileThomas Watson3-2/+33
We need to make sure we only create one ConnectBundleFile instance per ConnectContent instance. Otherwise our managing of open/close operations will get messed up. Change-Id: I6fa3f9857726a39eaee8e07f7e11abdee9881abb
2020-02-21Bug 559840 - handle connect content for system bundle correctlyThomas Watson3-43/+100
Change-Id: I1809c5fe464b23b445eb4fbd42f5c318dff48c6b
2020-02-19Merge branch 'master' into osgiR8Thomas Watson418-2853/+3003
2020-02-15Convert osgi.tests to JUnit 4.Y20200409-0600Y20200407-0925Y20200407-0635Y20200407-0550Y20200318-0540Y20200317-0225Y20200316-1300Y20200316-0820Y20200314-1405Y20200313-1100Y20200311-0915Y20200310-0525Y20200305-0600Y20200225-1040Y20200219-1055Y20200219-0850Y20200218-1420Y20200218-1210Y20200218-0315Y20200218-0120X20200306-0700X20200305-1900X20200305-0700X20200304-1900X20200304-0700X20200303-1900X20200303-0700X20200302-1900X20200302-0930X20200302-0700X20200301-1900X20200301-0700X20200229-1900X20200229-0700X20200228-1900X20200228-0700X20200228-0520X20200227-1900X20200227-0700X20200227-0130X20200226-0700X20200225-1900X20200225-0700X20200224-1900X20200224-0700X20200223-1900X20200223-0700X20200223-0250X20200222-0700X20200221-1130X20200221-0700X20200221-0440X20200221-0310X20200221-0050X20200220-1900X20200220-0700X20200219-1900X20200219-0700X20200219-0500X20200218-0510X20200217-1120S4_15_0_RC2S4_15_0_RC1S4_15_0_M3R4_15I20200305-0155I20200304-1800I20200304-0600I20200303-1800I20200303-0600I20200302-1800I20200302-0600I20200301-2310I20200301-1800I20200301-0600I20200301-0030I20200229-1800I20200229-0600I20200228-1800I20200226-1800I20200226-0600I20200225-1800I20200225-0600I20200224-1800I20200224-0600I20200223-2335I20200223-1800I20200223-0600I20200222-1800I20200222-0600I20200221-1800I20200219-1800I20200219-0600I20200218-1800I20200218-0600I20200217-1800I20200217-0600I20200216-1800I20200216-1145I20200215-1800Alexander Kurtakov34-523/+613
Had to move to default eclipse formatter as the ancient one used simply had no idea what to do with annotations. Change-Id: I3dc61b31a2a5edf0da03ee17ed03d241c1178607 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-14Bug 559829 - [OSGi R8] connect tags for osgi.connect must propagate toAnjum Fatima2-9/+23
other BSN capabilities Change-Id: I9e18599cf4add93626e98d4cce6241cf9258619f Signed-off-by: Anjum Fatima <anjum.eclipse@gmail.com>
2020-02-14Bug 559118 - Don't fail with runtime exception when substitutes are notI20200215-0600I20200214-1800Thomas Watson1-5/+13
handled correctly This doesn't impact the framework, but the resolver is also registered as a service and used by others. The original fix would cause a runtime exception if no sources could be found for a blamed used capability. The previous resolver implementation would silently ignore the source and it would not impact the used class space. This still produces a valid class space according to what the resolve context is giving the resolver to work with. We will just log an info message if this happens. Change-Id: I34c61efa33a703c66763197146d09a62f09f9ad8
2020-02-12Bug 560070 - [resolver] resolving in batch can override substitedI20200214-0620I20200213-1800I20200213-1520I20200213-1210I20200213-1100I20200213-0640Thomas Watson4-14/+86
packages Change-Id: Ieb07bfa4d7ba17cc22859f1ed4f12889e23efbfe Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-02-11Bug 559840 - [OSGi R8] Bundle install or update with stream mustAnjum Fatima8-118/+174
override calls to ModuleConnector Change-Id: I224f899acb57946b6a24c46dd591571555de4c18 Signed-off-by: Anjum Fatima <anjum.eclipse@gmail.com>
2020-02-07Bug 558963 - Run Whitespace removal cleanup batch operation on EquinoxI20200212-1810I20200212-1800I20200212-1420I20200212-0910I20200211-1800I20200210-1800I20200209-1800I20200208-1800I20200207-1800Thomas Watson399-2321/+2321
bundles Change-Id: I349e141aac1259d952661b543e01449e6eb7dd47 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-02-07Bug 558963 - update version for 4.15 releaseThomas Watson2-2/+2
Change-Id: I3042fbe44295816148284aad93061a0674324904 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-02-07Merge branch 'master' into osgiR8Thomas Watson6-11/+99
2020-02-07Bug 559926 - ClassNotFoundException thrown for previously definedThomas Watson6-11/+99
classes when dynamic import takes over Change-Id: I7c5a786ac2de02353c058782e6867f272f88b8e2 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-02-05Update connect api to remove return thisThomas Watson3-14/+7
The API is not really a good candidate for chaining and the return of this makes it awkward. Change-Id: Iad1bcb1cd347f5887817d3e62a0d78d398631421 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-02-04Rename of ConnectFramework to ModuleConnectorThomas Watson23-133/+143
also rename getModule method to connect Change-Id: Iaa7488f7a6b0e462293486f2a60b02458afcfee5 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-01-31Bug 559634 - [OSGi R8] ConnectBundleFile.getConnectHeaders() callsAnjum Fatima3-8/+68
ConnectContent.getHeaders() without ensuring open is called. Change-Id: Ia2a96fa74a364f5a1d4270a3b450c23b016abe23 Signed-off-by: Anjum Fatima <anjum.eclipse@gmail.com>
2020-01-21Bug 552573: Reverse the order of the BundleActivators stop() in theAnjum Fatima12-5/+257
framework implementation which keeps the track of BundleActivators. Change-Id: I37142e7f9354861259338a87f7964eb41970f421 Signed-off-by: Anjum Fatima <anjum.eclipse@gmail.com>
2020-01-17Merge branch 'master' into osgiR8Thomas Watson43-422/+671
2020-01-17Only format changed linesY20200204-0035Y20200130-0045Y20200127-1055Y20200126-2245Y20200121-0055Y20200120-2315Y20200120-0020I20200206-1805I20200205-1800I20200205-0030I20200204-1800I20200203-1800I20200202-1800I20200201-1800I20200131-1800I20200130-1800I20200129-1800I20200129-0935I20200129-0100I20200128-1805I20200127-1800I20200126-1800I20200126-0250I20200125-1805I20200124-1800I20200123-1800I20200123-0525I20200123-0430I20200122-1805I20200121-2225I20200121-1805I20200120-1800I20200120-0715I20200120-0530I20200120-0445I20200120-0355I20200120-0115I20200119-2330I20200119-1800I20200118-1800I20200117-1800Thomas Watson1-0/+16
With the recent change to the formatter we are getting lots of noise on the save action Change-Id: I872a53725229a24318c2f30ddb2a67273946eb0b Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-01-14Bug 559118 - Add testcase and fix reexport uses constraint checkI20200116-1800I20200116-0930I20200116-0330I20200116-0310I20200115-1800Thomas Watson2-41/+122
This is a testcase that reproduces the issue found in bug 558895. When an exporter of a split package requires multiple bundles that also export the split package and that bundle does a reexport on one of the parts it can cause resolution issues for uses constraints. The actual problem is with reexport itself. The reexporting bundle does not have to also export the package to cause the issue. The problem is that each part of the package pulled in from the require-reexport is checked in isolation with the using bundles wire to the same package name. This is incorrect because that is only a subset of the actual used package from the perspective of the exported package that is using the split package. The fix is to record all the package parts for the split used package from the wiring of the bundle exporting the package that uses the split package. That way during the compatibility check we can accurately use the set of sources for the split package that the exporting bundle is using. Change-Id: I5d6194adabc7c04fe990d663ad1dd6bb77f2ac39 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-01-14Remove redundant type arguments in osgi.tests.I20200114-1805Alexander Kurtakov38-284/+320
Change-Id: I192d24bf559330e059993971c662aac11f1c2cf6 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-01-13Bug 559097 - Compile warnings in I20200113-0130Y20200114-0045I20200113-1800Alexander Kurtakov4-97/+233
Fix rt.equinox.framework warnings. Had to change formatter for org.eclipse.osgi to eclipse as there is no "core" shipped to everyone and it can vary from user to user in case one created his own. Change-Id: I67be4f9c749598506011023428005a775f673178 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-01-10Merge branch 'master' into osgiR8Thomas Watson17-539/+531
2020-01-10Bug 559036 - [log] add configuration to avoid capturing log entryI20200113-0130I20200112-1800I20200111-1800I20200111-0325I20200111-0230I20200110-1805Thomas Watson7-24/+75
location Change-Id: Id605511bca7f6a00cbcab26c27cbf851fce36ff0 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-01-10Bug 558929 - Must handle relative FilePermission pathsThomas Watson4-67/+190
Both ConditionalPermissionAdmin and PermissionAdmin must handle relative paths be relative to a bundles data area. Change-Id: Ic9565bf368d9cad8b2676e0b2a1bb6d1b1d77cec Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2020-01-09filter: Improvements to FilterImplBJ Hargrave1-408/+248
The implementation is updated to better exploit the String type of value. We don't need to pass it as a parameter since it is a final field in the object. We also don't need to cast it to String since it is already known to be a String. This then leads to refactoring of the FilterImpl sub-type hierarchy. Change-Id: I57c94dd772f776fb6d7cbbbc12eb3d3f129c6386 Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
2020-01-07Bug 558612 - The tests for canWrite have the undesirable side-effect ofY20200108-0435S4_15_0_M1I20200110-0905I20200110-0200I20200109-2350I20200108-2240I20200108-0600I20200108-0025I20200107-1800Ed Merks4-40/+5
changing File.lastModified Change-Id: I9491069acd200cc8a7e9063d753c04a0ffb0fa1b Signed-off-by: Ed Merks <ed.merks@gmail.com>
2020-01-06Silence empty block warning in osgi.tests.I20200107-0600Alexander Kurtakov1-1/+18
This creates only noise in the workbench. Change-Id: Icec52e2cef7d365b25d1a1a36f5389f8d804504d Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-12-19Bug 558476 - [OSGi R8] Add configuration files for nativeThomas Watson4-0/+156
Adding Graal Substrate native image configuration resources Change-Id: I0451ffd3bc91ebbe77553f1f7db525c8bc46df86 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2019-12-19Bug 552573 - Need to use the original BundleFileWrapperChainThomas Watson1-6/+7
When a ConnectContent does not provide headers then the original BundleFileWrapperChain should be used to find the bundle manifest. Change-Id: I1627aa7ecec3caa5f66bc2d001cf3affc726ff2a Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
2019-12-18Bug 552573 - Use ConnectContent.getHeaders() Map for theAnjum Fatima3-2/+86
Bundle.getHeaders Dictionary Change-Id: Ib0ed63c1f21015f14ab719b78759587724f83b7a Signed-off-by: Anjum Fatima <anjum.eclipse@gmail.com>
2019-12-18Merge branch 'master' into osgiR8Thomas Watson1-6/+2
2019-12-18Bug 558371 - Avoid use of MethodHandleY20200103-2350I20200106-1805I20200106-0600I20200105-1800I20200105-0955I20200105-0600I20200104-1800I20200104-0625I20200104-0600I20200103-1800I20200102-1800I20200101-1800I20191231-1800I20191230-1800I20191229-2200I20191229-1800I20191228-1800I20191227-1800I20191226-1800I20191225-1800I20191224-1800I20191223-1800I20191222-1800I20191221-2205I20191221-1800I20191220-1805I20191219-1800I20191218-1805Thomas Watson1-6/+2
Use of method handles does not seem to improve performance. In my testing it actually makes things slower on Java 8. Particularly the use of MethodHandle for calling the constructor for the value to match against. Substrate also doesn't like the use of MethodHandles in the FilterImpl. For now I think we should avoid using them unless they show a clear performance win. Change-Id: I220cb2cde0a7c5bf948db6e34f8d337e3a4ce0f8 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>

Back to the top