[jira] [Commented] (ATLAS-1155) Errors in Eclipse when I bring in the latest code
[ https://issues.apache.org/jira/browse/ATLAS-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15502363#comment-15502363 ] Shwetha G S commented on ATLAS-1155: +1 > Errors in Eclipse when I bring in the latest code > - > > Key: ATLAS-1155 > URL: https://issues.apache.org/jira/browse/ATLAS-1155 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.8-incubating >Reporter: David Radley >Assignee: David Radley > Fix For: 0.8-incubating > > Attachments: atlas1155.patch > > > I have brought the latest atlas code into an Eclipse environment and see an > error in GraphBackedDiscoveryService, > line 154 > scala.collection.immutable.List.empty()); it says method empty is ambiguous. > if I replace this expression with null it complies. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (ATLAS-1155) Errors in Eclipse when I bring in the latest code
[ https://issues.apache.org/jira/browse/ATLAS-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15496316#comment-15496316 ] David Radley commented on ATLAS-1155: - Googling around it seems that is is not good practice to create Scala empty lists in Java. The error I reported is reported by many jvms and I could not get rid of the error in an Eclipse environment. The patch I created is to introduce a second Scala constructor which defaults the last parameter to an empty list in Scala. I now call this new constructor when there are no rows. I also saw an error that required me to add a cast in this project- I have fixed that as well. > Errors in Eclipse when I bring in the latest code > - > > Key: ATLAS-1155 > URL: https://issues.apache.org/jira/browse/ATLAS-1155 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.8-incubating >Reporter: David Radley >Assignee: David Radley > Fix For: 0.8-incubating > > Attachments: atlas1155.patch > > > I have brought the latest atlas code into an Eclipse environment and see an > error in GraphBackedDiscoveryService, > line 154 > scala.collection.immutable.List.empty()); it says method empty is ambiguous. > if I replace this expression with null it complies. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (ATLAS-1155) Errors in Eclipse when I bring in the latest code
[ https://issues.apache.org/jira/browse/ATLAS-1155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15465198#comment-15465198 ] David Radley commented on ATLAS-1155: - Replacing the empty statement with JavaConversions.asScalaBuffer(new ArrayList()).toList() Looks like it should work. But it complains that "The type scala.Cloneable cannot be resolved. It is indirectly referenced from required .class files". I am not familiar enough yet with the Maven setup to bring in this dependant jar. I get this error running the command line packging as well. I also notice that TypesUtil in atlas-typesystem uses this construct and is marked as an error. > Errors in Eclipse when I bring in the latest code > - > > Key: ATLAS-1155 > URL: https://issues.apache.org/jira/browse/ATLAS-1155 > Project: Atlas > Issue Type: Bug >Affects Versions: 0.8-incubating >Reporter: David Radley > Fix For: 0.8-incubating > > Attachments: atlas.patch > > > I have brought the latest atlas code into an Eclipse environment and see an > error in GraphBackedDiscoveryService, > line 154 > scala.collection.immutable.List.empty()); it says method empty is ambiguous. > if I replace this expression with null it complies. -- This message was sent by Atlassian JIRA (v6.3.4#6332)