Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4661052

generics: spurious Map.Entry doesnt take parameters error followed by crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • tools
    • generic
    • solaris_8

      Subject:
                Re: Crash in 1.2 prototype compiler.
          Date:
                Thu, 21 Mar 2002 05:05:11 -0500 (EST)
         From:
                "C. Scott Ananian" <###@###.###>
            To:
                ###@###.###


      Here's another similar example (attached) which also demonstrates an odd
      'Map.Entry doesn't take parameters' bug I've been seeing. As before,
      I strongly suspect that the source file in question is buggy (due to the
      API change) but the compiler doesn't tell me that, it just crashes.

      To see: unpack, cd to bug1, run the commands in 'build-cmd'.

      Output is appended, for your convenience.
        --scott

      [I've seen this bogus 'Map.Entry' message before, w/ the original 1_0-ea
       compiler, but haven't gotten a minimal example to debug it. Previously,
       adding other files to the command-line 'fixed' the problem; probably
       one of them forced the import of the 'correct' Map.Entry. It is probably
       worthwhile debugging the Map.Entry problem *before* fixing the crash
       (as fixing the crash might make it go away) since I believe these are
       two *separate* issues, er, bugs.]

      plutonium insurgent Khaddafi Ft. Meade hack security Kojarena TASS
      Yeltsin jihad Minister COBRA JANE $400 million in gold bullion blowfish
                    ( http://lesser-magoo.lcs.mit.edu/~cananian )

      ------ output of bug1 compile -----
      Util/Default.java:196: type java.util.Map.Entry does not take parameters
          public static <K,V> Map.Entry<K,V> entry(final K key, final V value) {
                                       ^
      An exception has occurred in the compiler (1.4.0). Please file a bug at the Java Developer Connection (
      http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program
      and the following diagnostic in your report. Thank you.
      java.lang.ClassCastException: com.sun.tools.javac.v8.code.Type$ForAll
              at com.sun.tools.javac.v8.comp.Attr.adjustAbstractMethod(Attr.java:209)
              at com.sun.tools.javac.v8.comp.Attr.implementInterfaceMethods(Attr.java:245)
              at com.sun.tools.javac.v8.comp.Attr.implementInterfaceMethods(Attr.java:248)
              at com.sun.tools.javac.v8.comp.Attr.implementInterfaceMethods(Attr.java:248)
              at com.sun.tools.javac.v8.comp.Attr.implementInterfaceMethods(Attr.java:248)
              at com.sun.tools.javac.v8.comp.Attr.attribClassBody(Attr.java:2005)
              at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1984)
              at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1948)
              at com.sun.tools.javac.v8.comp.Attr.visitClassDef(Attr.java:414)
              at com.sun.tools.javac.v8.tree.Tree$ClassDef.accept(Tree.java:391)
              at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:288)
              at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:322)
              at com.sun.tools.javac.v8.comp.Attr.visitNewClass(Attr.java:1122)
              at com.sun.tools.javac.v8.tree.Tree$NewClass.accept(Tree.java:757)
              at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:288)
              at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:303)
              at com.sun.tools.javac.v8.comp.Attr.visitReturn(Attr.java:825)
              at com.sun.tools.javac.v8.tree.Tree$Return.accept(Tree.java:697)
              at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:288)
              at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:322)
              at com.sun.tools.javac.v8.comp.Attr.attribStats(Attr.java:338)
              at com.sun.tools.javac.v8.comp.Attr.visitBlock(Attr.java:534)
              at com.sun.tools.javac.v8.tree.Tree$Block.accept(Tree.java:479)
              at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:288)
              at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:322)
              at com.sun.tools.javac.v8.comp.Attr.visitMethodDef(Attr.java:481)
              at com.sun.tools.javac.v8.tree.Tree$MethodDef.accept(Tree.java:425)
              at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:288)
              at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:322)
              at com.sun.tools.javac.v8.comp.Attr.attribClassBody(Attr.java:2045)
              at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1984)
              at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1948)
              at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:352)
              at com.sun.tools.javac.v8.Main.compile(Main.java:451)
              at com.sun.tools.javac.Main.compile(Main.java:36)
              at com.sun.tools.javac.Main.main(Main.java:27)


      begin 644 bug1.tgz
      M'XL( /2NF3P ^T;:W/;-C)?XU^Q]75B.;%I4O+C8L5)?:Z:<=X3N[GIW+0W
      M% 592"A"1Y!VU$[^^^T"! A2E&PE<>YZ)S0=BP1VL=A=[ -8]O.+8.?.[3;?
      MWVT?[.WA7S\XV//=OZ;=\0]V=_<[[8/./OX.VG[GX [LW3)=JN4R"U. .U&8
      MA D/DWGCKNO_D[8^R?_GC,>WJ 1+R7^W3?(_V-M=R?];M%+^)R*.691QD<BO
      MK O+R-_?ZZ#\]]J=8"7_;]&:Y7_<EUD:1MG+<-)+LG3JO0\OP\^>PP]\?W]W
      M=Y[\]]H'NX[\@SM^.^BT_3O@?\5USFW_Y_+?V8%&86]!E+(P8P,XSQG\Q/K0
      M[D"P?]C9/=S=A^#APX?0GX)ARAJB.1&3:<HO1AFT3C;UB!,/SB*197"LA\$C
      M _!#&.?CA'N3E"<1RT3BL4'^F-"\X!%+),Z;)P.60C9BD+%T+$$,U</35S_#
      MTS<ONB 9@Y/7;WXY??44AB*% <M"'DMO;1)&'\(+!J,PG0C$3-KM.=K=75OC
      MXXE(,Z"%>CEUX]J[:SOW[Z_!?206Z10#]KC.F$<[ZC5DX0<F<>TI(Z+&0F:&
      MN(LT3RX8(;D2Z0?@R:6(+W$M/ &9]Z,XE)(G%P7ZRNR>.X,'\)-("0WRC(_'
      M>1;V8P:,AFS!5.20,,0JDGB*W9.8C;&KP'K!LN=LVMHL4&DD@[+S'7*>V6X]
      M$X2XB@$?\OHT8]P=$,92$)KZ3+*.K*MX,&##,(^S<GA(7,>N5%S)8DT:P<^)
      MS"<D"#9X/6&I&M?[&+$)_3 $$@3]_T.89R,D=7FE(N!+EDJBXOO3P>$<A;^$
      MP&OC?P&T?;^]@__:!]!N'[9W#X..U73H?9S ]W!_9VV2]V,>05@@ R7=&=R/
      MGF^]>USR0D(I:]7SQQI@0\V#MRS+TT0J'GY@N+=$FC(Y$<F 5"83V,&E%HY'
      M\Q-<G8;G8,3?;<1[2?):C!E.M2J/P\D$NQ4:Y"#N)@E]QA)(V5B03@]3,58C
      M^[C?"!%"0 N- KWC&<E3I!O2(M RU]!694 8P6]N*4 D#)6GV.V<=ED< ^XT
      MBX;,PI G;#"7">^@5'.7#9,XC-@-^0!7/!NIH7+"(MP9;& IT, MH=0TC)TE
      M(/=:?T]Q[5*I>WXQTE@5-[U-@/-1N9 ^&X67'#6ZLE3\:U<(O"(*)8(P1K,MF"I16%0S(FD61;,(+!9G'?;=#ZG2'A#Q8![3M-X4$!6)O -K(MYIZ$W4][O*
      M$J %NX*%!L ([].,)H<PRL=ALDV<4!8K91.DR9H:PU#B0N-^.<M23;S^T5)D
      M%2M=NTL#6RVSD0".CI(\CC>?K-.?]<.RPRL1;,(#6#]:AP<.>*&"L^!%APM>
      M7^J)&$]0ZV55!4'TWZ,3,\IIE97<'_M7'L8\FY:R,^S24L_2G)E-5^C5!;_$
      M_5S@Y%(9>G(%X<3BT/C)@2A'?*7%S9$PRW--8CBV>EKG=E^(F*'E5!3*UFL]
      MGU!,M]806 !':DW=RMLV/B*Y+>HY.D*@0DRTG**+^.IV#7$6ZB/X/Q #XFU9
      MC)L@NLCGNU&812.,5,AHGX0RLVH'I*155#2^JATL\(P::/'"$]V#T]5[#L$9
      M[15,<(:A[MR[5\%;49P:YFJ?P6TTJH*]>#FK7*Y'0)LR M**8GN3*BW>/!Q%
      M3E G".3NG&()M=4#/ $?Z;0,*$$WX;<2IK9F V,6YD"9U7Q:^T_'SO\+K<S_
      M?M1QVY>E>HUM<?[7]@_V.R;_VS]0YW][[2!8Y7_?HF'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]FU?-S+D]=C_6<%_/?JDQM[!:RX960B7[*B(O<H(R=C:5]=<@05[.Q='M^</,97?SIR!TDVTPTEE A>Z22F;KHJ^K&*NM.A'+$&WNVITS$WV6IC\;6OJ;
      MH1GJ%\(5!W>-).IP4AV&FJVZS$<,ZZZ667U:_Z^I8E;^OY_S>+ =C0>W,P?Y
      M_X/Y_M_O^/O6_[?WR?]W]H.]E?__%NTOW^WT>;(C1VO?/SM[&^S^>'IV_G9'
      M1BF?9'*']GP$VP/P8/L"MJ7(4PQ1 V\7']_#XK 1;O95\>?.Z]91KKX$6+55
      ;6[556[556[556[556[55N[;]&PL.T)@ 4
       
      end

            gafter Neal Gafter (Inactive)
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: