You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/01/18 19:07:04 UTC

DO NOT REPLY [Bug 118815] New: "com.sun.star.configuration.bootstrap.BootstrapContext" broken?

https://issues.apache.org/ooo/show_bug.cgi?id=118815

             Bug #: 118815
        Issue Type: DEFECT
           Summary: "com.sun.star.configuration.bootstrap.BootstrapContext
                    " broken?
    Classification: Code
           Product: framework
           Version: OOo 3.4 Beta
          Platform: PC
        OS/Version: Windows, all
            Status: UNCONFIRMED
          Severity: normal
          Priority: P5
         Component: scripting
        AssignedTo: ab@openoffice.org
        ReportedBy: brinzing@openoffice.org
                CC: ooo-issues@incubator.apache.org


the following vb script will fail with aoo3.
it worked with oo 3.2.

workaround for aoo3.4:
use "Set oContext = oSM.DefaultContext"
instead of "Set oContext =
oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext")"

' vb script
Set oSM = WScript.CreateObject("com.sun.star.ServiceManager")
Set oContext =
oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext")
Set oTDM =
oContext.getValueByName("/singletons/com.sun.star.reflection.theTypeDescriptionManager")
MsgBox "HARD_SPACE: " &
oTDM.getByHierarchicalName("com.sun.star.text.ControlCharacter.HARD_SPACE")

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118815] [API] Deprecate "com.sun.star.configuration.bootstrap.BootstrapContext"

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118815

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|ab@openoffice.org           |arielch@apache.org
            Summary|"com.sun.star.configuration |[API] Deprecate
                   |.bootstrap.BootstrapContext |"com.sun.star.configuration
                   |" broken?                   |.bootstrap.BootstrapContext
                   |                            |"

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118815] [API] Deprecate "com.sun.star.configuration.bootstrap.BootstrapContext"

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118815

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|scripting                   |code
         Issue Type|DEFECT                      |ENHANCEMENT
           Platform|PC                          |All
            Version|OOo 3.4 Beta                |current
            Product|framework                   |api
         OS/Version|Windows, all                |All

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118815] [API] Deprecate "com.sun.star.configuration.bootstrap.BootstrapContext"

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118815

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |STARTED
     Ever Confirmed|0                           |1

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118815] [API] Deprecate "com.sun.star.configuration.bootstrap.BootstrapContext"

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118815

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|STARTED                     |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Ariel Constenla-Haile <ar...@apache.org> 2012-01-19 12:42:00 UTC ---
Fixed in revision 1233320

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118815] "com.sun.star.configuration.bootstrap.BootstrapContext" broken?

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118815

Ariel Constenla-Haile <ar...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arielch@apache.org

--- Comment #1 from Ariel Constenla-Haile <ar...@apache.org> 2012-01-19 01:33:32 UTC ---
(In reply to comment #0)
> the following vb script will fail with aoo3.
> it worked with oo 3.2.
> 
> workaround for aoo3.4:
> use "Set oContext = oSM.DefaultContext"
> instead of "Set oContext =
> oSM.createInstance("com.sun.star.configuration.bootstrap.BootstrapContext")"


I don't get the issue here.
Is it that you can't instantiate this service in particular?
If so, testing in Basic shows this service has been removed:

Sub Main
    Dim oBootstrapContext
    BootstrapContext =
CreateUnoService("com.sun.star.configuration.bootstrap.BootstrapContext")
End Sub

it has been removed when the cfgmgr was rewritten.

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

DO NOT REPLY [Bug 118815] "com.sun.star.configuration.bootstrap.BootstrapContext" broken?

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=118815

brinzing <br...@openoffice.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brinzing@openoffice.org

--- Comment #2 from brinzing <br...@openoffice.org> 2012-01-19 08:26:02 UTC ---
> Is it that you can't instantiate this service in particular?

yes, seems to be removed in aoo3.4. if removal of this service 
was intended, i suggest to fix the api documentation, for example:

http://www.openoffice.org/api/docs/common/ref/com/sun/star/configuration/bootstrap/BootstrapContext.html

-- 
Configure bugmail: https://issues.apache.org/ooo/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.