Github user zellerh commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/31#discussion_r35039577
  
    --- Diff: core/sql/langman/LmLangManagerJava.cpp ---
    @@ -694,6 +712,52 @@ void LmLanguageManagerJava::initialize(LmResult 
&result,
         return;
       }
     
    +  jc = (jclass) jni->FindClass("org/trafodion/sql/udr/UDR");
    +  if (jc)
    +  {
    +    udrClass_ = (jclass) jni->NewGlobalRef(jc);
    +    jni->DeleteLocalRef(jc);
    +  }
    +  else
    +  {
    +    exceptionReporter_->insertDiags(diagsArea_,
    +                                    -LME_JVM_SYS_CLASS_ERROR,
    +                                    "org.trafodion.sql.udr.UDR");
    +    result = LM_ERR;
    +    return;
    +  }
    +
    +  // this class is used in JNI calls from Java UDRs to C++ code that
    +  // gets and emits rows
    +  jc = (jclass) jni->FindClass("org/trafodion/sql/udr/UDR$QueueStateInfo");
    +  if (jc)
    +  {
    +    udrQueueStateField_ = jni->GetFieldID(
    +         jc,
    +         "queueState_",
    +         "I");
    +
    +    if (jni->ExceptionOccurred() ||
    +        udrQueueStateField_ == NULL)
    +      {
    +        exceptionReporter_->insertDiags(diagsArea_,
    +                                        -LME_JVM_SYS_CLASS_ERROR,
    +                                        
"org/trafodion/sql/udr/UDR$QueueStateInfo");
    +        result = LM_ERR;
    +        return;
    --- End diff --
    
    Thanks, I'll fix that.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to