Bug#845606: marked as done (The Bytecode Should Not Be Targeting Java 1.2)

2017-01-18 Thread Debian Bug Tracking System
Your message dated Wed, 18 Jan 2017 11:48:30 +
with message-id 
and subject line Bug#845606: fixed in asm 5.2-2
has caused the Debian Bug report #845606,
regarding The Bytecode Should Not Be Targeting Java 1.2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
845606: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845606
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libasm-java
Version: 5.1-1
Severity: important

The current package of libasm-java contains classes that targets the
ancient Java 1.2 where generics is not supported. When I was building
a package for Jack (Java Android Compiler Kit) which uses the generics
code in ASM, it yielded the following errors:

```
/android-toolchain-jack/jill/src/com/android/jill/frontend/java/MethodBodyWriter.java:196:
error: type Analyzer does not take parameters
  private final Analyzer analyzer;
^
```

But apparently `org.objectweb.asm.tree.analysis.Analyzer` takes a
type parameter. FYI, `MethodBodyWriter.java` can be found at [1].

So I suspected this was caused by the Java version of the bytecodes,
and I found out that the classes in `asm-all.jar` is for Java 1.2.

By observing the build scripts of ASM I found that it was the
"shrinking" process [2] that changed the classes to Java 1.2 instead
of 1.5 as indicated by `build.xml`. After I applied
`-Dproduct.noshrink=true` to the build command, as the documentation
suggests, Jack was successfully built with the resulting
`asm-all.jar`.

Therefore, I wish the maintainers of this package turn off the
"shrinking" process. According to the ASM documentations [2],
"shrinking" is merely for reducing JAR size, which is not necessary in
this case.

[1]: 
https://android.googlesource.com/toolchain/jack/+/ub-jack-douarn-b8/jill/src/com/android/jill/frontend/java/MethodBodyWriter.java
[2]: http://asm.ow2.org/doc/developer-guide.html#building
--- End Message ---
--- Begin Message ---
Source: asm
Source-Version: 5.2-2

We believe that the bug you reported is fixed in the latest version of
asm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 845...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg  (supplier of updated asm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Wed, 18 Jan 2017 12:17:49 +0100
Source: asm
Binary: libasm-java libasm-java-doc
Architecture: source all
Version: 5.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 

Changed-By: Emmanuel Bourg 
Description:
 libasm-java - Java bytecode manipulation framework
 libasm-java-doc - Java bytecode manipulation framework (documentation)
Closes: 845606
Changes:
 asm (5.2-2) unstable; urgency=medium
 .
   * Team upload.
   * Replaced the asm-all symlink with the real jar and re-enabled shrinking
 (Closes: #845606)
   * Build the jar files with bnd to always have up to date OSGi metadata
 and ensure their contents match with upstream binaries.
   * Fixed the links to the JDK classes in the javadoc
 (classpath-doc -> default-jdk-doc)
Checksums-Sha1:
 ee045dcdcac2d25176d2b24cacde463302ac41cd 2064 asm_5.2-2.dsc
 9d7c6219f40c49a65bfb0ad9e42e37e56e08b10e 5480 asm_5.2-2.debian.tar.xz
 be7bb44fdd9a41fdb427dafa094dc765da9618d5 9393 asm_5.2-2_amd64.buildinfo
 c7db5469bdbffa8f7b8b416137305776d45cb914 379298 libasm-java-doc_5.2-2_all.deb
 9084332520e0596936e9c0a81cc7f426d4ae12a9 596422 libasm-java_5.2-2_all.deb
Checksums-Sha256:
 b538b059680f4238570dc116cb8f55aef174b80e10e34831e29ec214bf1de17c 2064 
asm_5.2-2.dsc
 fe023858ea691169c436773bd391a596f0db9e84b2bb78173f9d44d511619d45 5480 
asm_5.2-2.debian.tar.xz
 55feb205f653e75dea3117de80cef86fa16d293dcb1af5e7cb616a6bb6075c48 9393 
asm_5.2-2_amd64.buildinfo
 91283f98ba331a07dc8e9f353c9ecc71bac046093f61ed384856bc3c6c26f141 379298 
libasm-java-doc_5.2-2_all.deb
 2874a53efb2a20fb32fc599d6f0c8c2a933c2de7f45f86060d189b0ec2f8e259 596422 
libasm-java_5.2-2_all.deb
Files:
 5d6d4a42f11b038bdae1c4482464c1f2 2064 java optional asm_5.2-2.dsc
 c9d3d5fb2020a73b53b7ea986de015b8 5480 java optional asm_5.2-2.debian.tar.xz
 afa941e39a0703fc23aaa74f5f

Bug#845606: marked as done (The Bytecode Should Not Be Targeting Java 1.2)

2017-01-05 Thread Debian Bug Tracking System
Your message dated Fri, 06 Jan 2017 01:33:37 +
with message-id 
and subject line Bug#845606: fixed in asm 5.2-1
has caused the Debian Bug report #845606,
regarding The Bytecode Should Not Be Targeting Java 1.2
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
845606: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=845606
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libasm-java
Version: 5.1-1
Severity: important

The current package of libasm-java contains classes that targets the
ancient Java 1.2 where generics is not supported. When I was building
a package for Jack (Java Android Compiler Kit) which uses the generics
code in ASM, it yielded the following errors:

```
/android-toolchain-jack/jill/src/com/android/jill/frontend/java/MethodBodyWriter.java:196:
error: type Analyzer does not take parameters
  private final Analyzer analyzer;
^
```

But apparently `org.objectweb.asm.tree.analysis.Analyzer` takes a
type parameter. FYI, `MethodBodyWriter.java` can be found at [1].

So I suspected this was caused by the Java version of the bytecodes,
and I found out that the classes in `asm-all.jar` is for Java 1.2.

By observing the build scripts of ASM I found that it was the
"shrinking" process [2] that changed the classes to Java 1.2 instead
of 1.5 as indicated by `build.xml`. After I applied
`-Dproduct.noshrink=true` to the build command, as the documentation
suggests, Jack was successfully built with the resulting
`asm-all.jar`.

Therefore, I wish the maintainers of this package turn off the
"shrinking" process. According to the ASM documentations [2],
"shrinking" is merely for reducing JAR size, which is not necessary in
this case.

[1]: 
https://android.googlesource.com/toolchain/jack/+/ub-jack-douarn-b8/jill/src/com/android/jill/frontend/java/MethodBodyWriter.java
[2]: http://asm.ow2.org/doc/developer-guide.html#building
--- End Message ---
--- Begin Message ---
Source: asm
Source-Version: 5.2-1

We believe that the bug you reported is fixed in the latest version of
asm, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 845...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg  (supplier of updated asm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Format: 1.8
Date: Fri, 06 Jan 2017 02:11:13 +0100
Source: asm
Binary: libasm-java libasm-java-doc
Architecture: source all
Version: 5.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 

Changed-By: Emmanuel Bourg 
Description:
 libasm-java - Java bytecode manipulation framework
 libasm-java-doc - Java bytecode manipulation framework (documentation)
Closes: 845606
Changes:
 asm (5.2-1) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Emmanuel Bourg ]
   * New upstream release
   * Build with the DH sequencer instead of CDBS
   * debian/copyright: Credited Eugene Kuleshov
   * Standards-Version updated to 3.9.8
   * Switch to debhelper level 10
 .
   [ tony mancill ]
   * Apply patch to disable the shrink step during the build and thereby
 avoid shipping 1.2 bytecode.  (Closes: #845606)
 - Thanks to 殷啟聰 .
Checksums-Sha1:
 a542a9dd80c3580d814bffe300e21c8b775bdca2 2059 asm_5.2-1.dsc
 e78ce2766c43a9ceef83a077c6937a4f406d065d 14738652 asm_5.2.orig.tar.xz
 96fa9a0d161938b464fdea36dacba95853c90f78 7000 asm_5.2-1.debian.tar.xz
 ab723f3f27662d2f8245ba410b755b17755bdda2 9228 asm_5.2-1_amd64.buildinfo
 8ad6e66c7ef5026433b699d932f746e7b08a 379124 libasm-java-doc_5.2-1_all.deb
 217dd7c02ad78be0ebb8385051ef8a8a65a81de8 1046852 libasm-java_5.2-1_all.deb
Checksums-Sha256:
 3d4f7b0c60e989b179488d8c65490ee074d3918c6bdbc615f27942eb442a6568 2059 
asm_5.2-1.dsc
 01e72fdb55c44ebb9980c705a32a458cc2f063ef3606006f80dcce96f00b2979 14738652 
asm_5.2.orig.tar.xz
 4c568717bf03152c8ca915544063bf2034667214f08d3c5db0edcd96a0090452 7000 
asm_5.2-1.debian.tar.xz
 d44630baeb7e8f36bedeaa6030bdc3ec9673810f4a6c82d9ef5e36b06eeb1083 9228 
asm_5.2-1_amd64.buildinfo
 47ecf6bbb3bfb1a58ad7afc383236d78dbba2829e459b9ffeb45971de793b234 379124 
libasm-java-doc_5.2-1_all.deb
 bd806367797b36509de14a058703209c102693b0156a1