IBM Support

IV75345: JAVA.LANG.ABSTRACTMETHODERROR THROWN WHEN RUNNING SCALA ON JAVA 8

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: java.lang.AbstractMethodError: Test1.testFunc(I)V
            at java.lang.Class.getEnclosingObject(Native Method)
            at java.lang.Class.getEnclosingMethod(Class.java)
            at Test$delayedInit$body.apply(test.scala)
            at scala.Function0$class.apply$mcV$sp(Function0.scala)
            at
    scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.s
    cala)
            at scala.App$$anonfun$main$1.apply(App.scala)
            at scala.App$$anonfun$main$1.apply(App.scala)
            at scala.collection.immutable.List.foreach(List.scala)
            at
    scala.collection.generic.TraversableForwarder$class.foreach(Trav
    ersableForwarder.scala)
            at scala.App$class.main(App.scala)
            at Test$.main(test.scala)
            at Test.main(test.scala)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java)
            at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java)
            at java.lang.reflect.Method.invoke(Method.java)
            at
    scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(Scala
    ClassLoader.scala)
    .
    

Local fix

Problem summary

  • JVM threw a java.lang.AbstractMethodError when the enclosing
    method of an anonymous class is set to an abstract method by
    Scalac.
    

Problem conclusion

  • JVM has been updated to find the enclosing method of an
    anonymous class that has its enclosing method set to an abstract
    method by Scalac.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR2       (8.0.2.0)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV75345

  • Reported component name

    J9 COMMON CODE

  • Reported component ID

    620700127

  • Reported release

    270

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-07-20

  • Closed date

    2015-07-20

  • Last modified date

    2015-09-11

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    J9 COMMON CODE

  • Fixed component ID

    620700127

Applicable component levels

  • R270 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
22 February 2022