From 20529980c67aa8327c81ccc45f3763d9b7da6475 Mon Sep 17 00:00:00 2001 From: Andreas Gal Date: Wed, 30 Jul 2014 17:25:07 -0700 Subject: [PATCH] parse and ignore deprecated attribute --- classfile/classfile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classfile/classfile.js b/classfile/classfile.js index cb4abb8d..4f531227 100644 --- a/classfile/classfile.js +++ b/classfile/classfile.js @@ -84,6 +84,10 @@ var getClassImage = function(classBytes) { attribute.type = ATTRIBUTE_TYPES.Synthetic; return attribute; + case ATTRIBUTE_TYPES.Deprecated: + attribute.type = ATTRIBUTE_TYPES.Deprecated; + return attribute; + default: throw new Error("This attribute type is not supported yet. [" + JSON.stringify(item) + "]"); }