アーティクル - CS382596

モデル化された enumeratedType は tools.xml で (正常に) コンパイルされましたが、「未解決のコンパイルの問題:」というエラーのため使用できません。

修正日: 31-Jan-2023   


注記:ここに記載されている情報は、お客様の利便性向上のため機械翻訳ソフトを使用しています。PTCは、ここに記載されている情報の翻訳の正確性について、一切の責任を負いませんので、ご了承ください。英語の原文を参照するには、こちら。この機械翻訳に関する詳細は、こちら。
お知らせいただき、ありがとうございます。この機械翻訳をレビューします。

適用対象

  • Windchill PDMLink 12.0.2.8

説明

  • モデル化されたクラスは正常にコンパイルされましたが、エラーのため使用できません
"The import com.ptc.windchill.annotations.metadata.GenAsEnumeratedType cannot be resolved"

また
Caused by: java.lang.Error: Unresolved compilation problem:
    GenAsEnumeratedType is not an annotation type

    at ext.ts.the.modelled.enums.MySize.<init>(MySize.java:21)
    at ext.ts.the.modelled.enums._MySize.<clinit>(_MySize.java:8)
    at java.base/java.lang.Class.forName0(Native Method)
    at java.base/java.lang.Class.forName(Class.java:315)
    at wt.workflow.definer.WfVariableInfo.getVariableClass(WfVariableInfo.java:1009)
    at com.ptc.windchill.enterprise.initiateworkflow.service.impl.InitiateWorkflowServiceImpl.getTemplate(InitiateWorkflowServiceImpl.java:254)
    at com.ptc.enterprise.initiateworkflow.rest.InitiateWorkflowResource.getTemplate(InitiateWorkflowResource.java:177)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:138)
    at org.jboss.resteasy.core.ResourceMethodInvoker.internalInvokeOnTarget(ResourceMethodInvoker.java:546)
    at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTargetAfterFilter(ResourceMethodInvoker.java:435)
    at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$invokeOnTarget$0(ResourceMethodInvoker.java:396)
    at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:358)
    at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:398)
    at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:365)
    at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:338)
    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:440)
    ... 50 more
  • compiling with
    ant -f bin\tools.xml class -Dclass.includes=ext/ts/the/modelled/enums/**

最新バージョンはこちらを参照ください CS382596