tag:blogger.com,1999:blog-7025390077222270096.post2380735792796027822..comments2023-12-19T13:37:03.195+00:00Comments on Code from an English Coffee Drinker: SVGRoundTrip, Part 3: Convert SVG to Java 2DMarkhttp://www.blogger.com/profile/02418527698793489162noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7025390077222270096.post-9529077051472476662011-06-21T20:12:00.714+01:002011-06-21T20:12:00.714+01:00I ran into another size issue when testing this wi...I ran into another size issue when testing this with a large svg file:<br />Too many constants, the constant pool for would exceed 65536 entries.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7025390077222270096.post-9893981439680776772011-05-19T23:29:56.983+01:002011-05-19T23:29:56.983+01:00Hey Mark,
I have checked out the source but have n...Hey Mark,<br />I have checked out the source but have not looked through it to closely yet. Out of curiosity I tried to find what other limitations there are on class files and found this reference: <br /><br />http://java.sun.com/docs/books/jvms/second_edition/html/ClassFile.doc.html#88659<br /><br />Looks like 16-bits of things is a pretty common theme, but nothing seems to suggest classes themselves have a max file size. The spec says each method is a max of 65535 bytes and a class can have up to 65535 methods which gives 4GB of head room. Seems like splitting into multiple methods should be a useable option (I never want to touch anything resembling a 4GB svg) :)<br /><br />If I decide to jump into it ill post back here. Maybe you could host on a Google code? You could just use the wiki/ bug tracker or host in the svn/mercurial. Haven't seen Jenkins before, pretty interesting.rajsitehttps://www.blogger.com/profile/05418973402615021841noreply@blogger.comtag:blogger.com,1999:blog-7025390077222270096.post-22959101694035936042011-05-19T09:59:41.678+01:002011-05-19T09:59:41.678+01:00Hi Milando, glad to hear you think the library is ...Hi Milando, glad to hear you think the library is going to be useful. The class size issue is a real pain. I do have some ideas for splitting but if you have some thoughts that would be really helpful as well.<br /><br />I don't have a bug tracker at the moment (although maybe I should), but feel free to use the comments on here to post bugs/fixes/suggestions etc. You can find all the source in the SVN server (link at the top) and the library is being built by Jenkins as well (link also above).Markhttps://www.blogger.com/profile/02418527698793489162noreply@blogger.comtag:blogger.com,1999:blog-7025390077222270096.post-56998465451503457422011-05-18T19:09:22.573+01:002011-05-18T19:09:22.573+01:00Hey Mark! This library looks very interesting and ...Hey Mark! This library looks very interesting and I am trying to use it for similar reasons (batik is slooow)<br />I have been playing with the library and I found one bug, when generating an the Java2D class using this svg: http://upload.wikimedia.org/wikipedia/en/2/20/UofTsystem_seal.svg<br /><br />I get the following error from the generated class: The code of method paint(Graphics2D) is exceeding the 65535 bytes limit<br /><br />Apparently there is a size limit to the number of characters in a method in Java! who knew? lol<br />I am going to try and split the method into multiple calls to see if that helps, and maybe the library can be changed to do that automagically ;)<br /><br />Do you have a bugtracker, etc?rajsitehttps://www.blogger.com/profile/05418973402615021841noreply@blogger.com