[forge-issues] [JBoss JIRA] (FORGE-1691) Create JavaCompiledResource to support Roaster class file parsing
George Gastaldi (JIRA)
issues at jboss.org
Wed Jun 1 15:40:00 EDT 2016
[ https://issues.jboss.org/browse/FORGE-1691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi closed FORGE-1691.
----------------------------------
Resolution: Won't Do
Roaster works only on Java Source files. No plans to support compiled classes so far.
> Create JavaCompiledResource to support Roaster class file parsing
> ------------------------------------------------------------------
>
> Key: FORGE-1691
> URL: https://issues.jboss.org/browse/FORGE-1691
> Project: Forge
> Issue Type: Feature Request
> Components: Parsers / File Manipulation
> Affects Versions: 2.2.0.Final
> Reporter: Lincoln Baxter III
> Fix For: 3.x Future
>
>
> lincolnthree, here is the final JavaResource interface: http://paste2.org/cIKJ48Hm
> lincolnthree
> 6:08 gastaldi: why accept javasource and return T extends javatype?
> gastaldi
> 6:09 because JavaSource is a Source and JavaType can be anything
> 6:09 hmm
> 6:09 yeah, that's weird
> 6:09 a JavaType should allow its contents to be saved
> 6:10 even if it's a binary one
> lincolnthree
> 6:10 gastaldi: ah makes sense!
> 6:10 very good
> mbenson
> 6:11 but then does a JavaResource *not* necessarily correspond to a .java file?
> gastaldi
> 6:12 now it can correspond to a .class file
> 6:12 also
> 6:12 hmmm
> 6:13 perhaps we should have a JavaBinaryResource instead
> lincolnthree
> 6:13 yeah probably
> gastaldi
> 6:13 JavaCompiledResource
> lincolnthree
> 6:13 +1
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the forge-issues
mailing list