+#ifdef TITAN_RUNTIME_2
+ /** Encode with JSON encoding negative test.
+ * @return the length of the encoding
+ * @param p_err_descr erroneous type descriptor
+ * @param p_td type descriptor
+ * @param p_tok JSON tokenizer for the encoded data
+ * @note Basetype::JSON_encode_negtest throws an error. */
+ virtual int JSON_encode_negtest(const Erroneous_descriptor_t* p_err_descr, const TTCN_Typedescriptor_t& p_td,
+ JSON_Tokenizer& p_tok) const;
+#endif
+