You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@groovy.transform.CompileStaticvoidtest(CharSequencecs) {
if (cs instanceofSerializable) {
cs
}
}
The inferred type for "cs" within the if block is the type disjunction "CharSequence+Serializable". Hovering over "cs" produces an error:
java.lang.IllegalArgumentException: <UnionType:java.lang.CharSequence+java.io.Serializable>
at org.eclipse.jdt.core.Signature.encodeQualifiedName(Signature.java:1373)
at org.eclipse.jdt.core.Signature.encodeTypeSignature(Signature.java:1495)
at org.eclipse.jdt.core.Signature.createCharArrayTypeSignature(Signature.java:1095)
at org.eclipse.jdt.core.Signature.createTypeSignature(Signature.java:1293)
at org.eclipse.jdt.core.Signature.createTypeSignature(Signature.java:1320)
at org.eclipse.jdt.groovy.core.util.GroovyUtils.getTypeSignatureWithoutGenerics(GroovyUtils.java:259)
at org.eclipse.jdt.groovy.core.util.GroovyUtils.getTypeSignature(GroovyUtils.java:202)
at org.codehaus.groovy.eclipse.codebrowsing.requestor.CodeSelectRequestor.handleMatch(CodeSelectRequestor.java:254)
at org.codehaus.groovy.eclipse.codebrowsing.requestor.CodeSelectRequestor.acceptASTNode(CodeSelectRequestor.java:144)
The text was updated successfully, but these errors were encountered:
Consider the following:
The inferred type for "cs" within the if block is the type disjunction "CharSequence+Serializable". Hovering over "cs" produces an error:
The text was updated successfully, but these errors were encountered: