Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.VerifyError: class com.restphone.IsList$ overrides final method canEqual. #5171

Closed
scabug opened this issue Nov 9, 2011 · 7 comments
Assignees
Labels
Milestone

Comments

@scabug
Copy link

scabug commented Nov 9, 2011

Fails in 2.91. Also fails with scala-2.9.2.r25964-b20111108042542.

Get:
[error] (run-main) java.lang.VerifyError: class com.restphone.IsList$ overrides final method canEqual.(Ljava/lang/Object;)Z
java.lang.VerifyError: class com.restphone.IsList$ overrides final method canEqual.(Ljava/lang/Object;)Z
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at com.restphone.TypeBuilder$.extractType$1(TypeBuilder.scala:34)
at com.restphone.TypeBuilder$.innerToList$1(TypeBuilder.scala:46)
at com.restphone.TypeBuilder$$anonfun$getDescendents$1$1.apply(TypeBuilder.scala:29)
at com.restphone.TypeBuilder$$anonfun$getDescendents$1$1.apply(TypeBuilder.scala:29)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:200)
at scala.collection.immutable.List.flatMap(List.scala:45)
at com.restphone.TypeBuilder$.getDescendents$1(TypeBuilder.scala:29)
at com.restphone.TypeBuilder$.innerToList$1(TypeBuilder.scala:48)
at com.restphone.TypeBuilder$$anonfun$getDescendents$1$1.apply(TypeBuilder.scala:29)
at com.restphone.TypeBuilder$$anonfun$getDescendents$1$1.apply(TypeBuilder.scala:29)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:200)
at scala.collection.immutable.List.flatMap(List.scala:45)
at com.restphone.TypeBuilder$.getDescendents$1(TypeBuilder.scala:29)
at com.restphone.TypeBuilder$.innerToList$1(TypeBuilder.scala:48)
at com.restphone.TypeBuilder$$anonfun$getDescendents$1$1.apply(TypeBuilder.scala:29)
at com.restphone.TypeBuilder$$anonfun$getDescendents$1$1.apply(TypeBuilder.scala:29)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:200)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:200)
at scala.collection.immutable.List.flatMap(List.scala:45)
at com.restphone.TypeBuilder$.getDescendents$1(TypeBuilder.scala:29)
at com.restphone.TypeBuilder$.innerToList$1(TypeBuilder.scala:48)
at com.restphone.TypeBuilder$.toList(TypeBuilder.scala:53)
at com.restphone.TypeBuilder$.doit(TypeBuilder.scala:58)
at com.restphone.ParserApp$delayedInit$body.apply(XmlImportApp.scala:27)
at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:60)
at scala.App$$anonfun$main$1.apply(App.scala:60)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:30)
at scala.App$class.main(App.scala:60)
at com.restphone.ParserApp$.main(XmlImportApp.scala:5)
at com.restphone.ParserApp.main(XmlImportApp.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
java.lang.RuntimeException: Nonzero exit code: 1
at scala.sys.package$.error(package.scala:27)
at scala.Predef$.error(Predef.scala:66)
[error] {file:/C:/cygwin/home/james/workspace/Deleteme3/}default-867d1f/compile:run: Nonzero exit code: 1
[error] Total time: 10 s, completed Nov 9, 2011 12:05:31 AM

If I rebuild with scala-2.10.0.r25972-b20111109023956 I don't see the problem.

Similar to:
#4931
#5105
#4575
#1055
#1037

But I can't tell if this should be a reopen of one of those or a new issue.

Also similar to this discussion:

https://groups.google.com/forum/#!topic/scala-user/LLBs0ocrMjA

@scabug
Copy link
Author

scabug commented Nov 9, 2011

Imported From: https://issues.scala-lang.org/browse/SI-5171?orig=1
Reporter: James Moore (james-at-restphone.com)
Affected Versions: 2.9.1
Other Milestones: 2.10.0
Attachments:

@scabug
Copy link
Author

scabug commented Nov 9, 2011

James Moore (james-at-restphone.com) said:
This is a scratch project. Don't try to make sense of the code. It does repro the problem reliably though, using "sbt run"

@scabug
Copy link
Author

scabug commented Nov 9, 2011

James Moore (james-at-restphone.com) said:
here's a much smaller repro case:

package com.restphone

abstract sealed class ArgNumber
case object IsList extends ArgNumber
case object ArgNumber

object Testing extends App {
println(IsList)
}

@scabug
Copy link
Author

scabug commented Nov 24, 2011

@paulp said:
Confirmed present in 2.9.1 and absent in trunk; tagging for 2.9.2.

@scabug
Copy link
Author

scabug commented Feb 22, 2012

@khernyo said (edited on Feb 22, 2012 9:00:33 PM UTC):
Test case in a1d8029

@scabug
Copy link
Author

scabug commented Feb 22, 2012

@khernyo said (edited on Feb 22, 2012 9:01:03 PM UTC):
I just realized this might need a fix for 2.9.2, so reopening. Sorry for the noise.

@scabug
Copy link
Author

scabug commented Dec 8, 2012

@retronym said:
Closing as fixed in 2.10.0.

@scabug scabug closed this as completed Dec 8, 2012
@scabug scabug added the bytecode label Apr 7, 2017
@scabug scabug added this to the 2.10.0-M2 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants