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
{{ message }}
Repository navigation
Make j2bugzilla able to handle multiple values "alias" field #14
Since Bugzilla release 5.0, bugs can now have multiple aliases assigned to them. Before each bug could only have a single value. So j2bugzilla crash when try to get alias from a bug;
Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to java.lang.String
at com.j2bugzilla.base.Bug.getAlias(Bug.java:109)
Is it possible to make j2bugzilla handle alias properly?
Activity
ivan-arriola commentedon Sep 12, 2016
@mmmarq It will provably because now returns some type of collection of alias instead, it will be necessary to check the returning type and, apparently doesn't seems to handle similar types, mentioned here: https://github.com/TomRK1089/j2bugzilla/blob/f11efa4497f83e51373e590b0fa525a3408c9aa6/src/main/java/com/j2bugzilla/base/Bug.java#L47, it would be good idea to handle both versions of the api, single and collection.