com4j
  1. com4j
  2. COM4J-45

[PATCH] Support Double conversion from Holder in StandardComMethod.getDefaultConversion()

    Details

    • Type: Task Task
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: runtime
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      45

      Description

      When attempting to use a Holder<Double> object, an IllegalAnnotationException
      was thrown in StandardComMethod.getDefaultConversion(). I added an if statement
      for Holder<Double>. Wouldn't it be a good idea to add conversions for all basic
      types explicitly?

      Nilesh Raghuvanshi

      Exception in thread "main" com4j.IllegalAnnotationException: no default
      conversion available for com4j.Holder<java.lang.Double>
      at com4j.StandardComMethod.getDefaultConversion
      (StandardComMethod.java:189)
      at com4j.MethodIntrospector.getParamConversation
      (MethodIntrospector.java:36)
      at com4j.StandardComMethod.<init>(StandardComMethod.java:77)
      at com4j.Wrapper.createComMethod(Wrapper.java:145)
      at com4j.Wrapper.getMethod(Wrapper.java:131)
      at com4j.Wrapper.invoke(Wrapper.java:119)
      at $Proxy5.get_TimeElement(Unknown Source)
      at MTM.DataCardTest$1.handleEvent(DataCardTest.java:53)
      at org.eclipse.swt.ole.win32.OleEventTable.sendEvent
      (OleEventTable.java:55)
      at org.eclipse.swt.ole.win32.OleEventSink.notifyListener
      (OleEventSink.java:144)
      at org.eclipse.swt.ole.win32.OleEventSink.Invoke(OleEventSink.java:119)
      at org.eclipse.swt.ole.win32.OleEventSink.access$1(OleEventSink.java:96)
      at org.eclipse.swt.ole.win32.OleEventSink$1.method6
      (OleEventSink.java:70)
      at org.eclipse.swt.internal.ole.win32.COMObject.callback6
      (COMObject.java:117)
      at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
      at org.eclipse.swt.internal.ole.win32.IDispatch.Invoke
      (IDispatch.java:64)
      at org.eclipse.swt.ole.win32.OleAutomation.invoke
      (OleAutomation.java:434)
      at org.eclipse.swt.ole.win32.OleAutomation.invoke
      (OleAutomation.java:374)
      at MTM.DataCardTest.main(DataCardTest.java:85)

        Activity

        Hide
        kohsuke added a comment -

        Did you forget to attach the patch, or did the java.net conversion fail to preserve that?

        Show
        kohsuke added a comment - Did you forget to attach the patch, or did the java.net conversion fail to preserve that?
        Hide
        slyval added a comment -

        I am also getting the same error - com4j.IllegalAnnotationException: no default conversion available for com4j.Holder<java.lang.Double>, as I am using .

        below are the details of the dependncy in my pom:
        <dependency>
        <groupId>org.jvnet.com4j</groupId>
        <artifactId>tlbimp</artifactId>
        <version>20080105</version>
        </dependency>

        Is the patch available?

        Show
        slyval added a comment - I am also getting the same error - com4j.IllegalAnnotationException: no default conversion available for com4j.Holder<java.lang.Double>, as I am using . below are the details of the dependncy in my pom: <dependency> <groupId>org.jvnet.com4j</groupId> <artifactId>tlbimp</artifactId> <version>20080105</version> </dependency> Is the patch available?

          People

          • Assignee:
            kohsuke
            Reporter:
            itsraghu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: