If you want judges to uphold the law, you must remember that the law allows for jurisprudent behaviour from judges that shape internal problems of the law and legal systems.
That is to be upheld too. There are bad cases that try to use bad laws, this was the one. You seem to be on the other side of this but that doesn't make it so that there was any 'rewriting' done by this judge. He upheld the law as in, sides were not allowed to give proof of infringement based on their own 'specialists'. Because that can turn the court to a circus as is always the case when people end up comparing rectangular shaped objects. This set the tone for the conclusion in a massive patent troll case. This may happen more and more from now on and it will bring needed change.